view enso/config.py @ 60:09cc6fd3ddd2

Added a really basic plugin architecture. Also implemented a rc-file mechanism whereby the ~/.ensorc file is interpreted as a Python file and run before Enso starts. It's intended to make any changes it wants to the default enso.config--such as adding to config.PLUGINS--before Enso starts running.
author Atul Varma <varmaa@toolness.com>
date Wed, 27 Feb 2008 11:35:04 -0800
parents d3c0220c5895
children
line wrap: on
line source

# Configuration settings for Enso.  Eventually this will take
# localization into account too (or we can make a separate module for
# such strings).

# The keycode for the quasimode key.
# TODO: Where are keycodes specified?
QUASIMODE_KEYCODE = 1

# Whether the Quasimode is actually modal ("sticky").
IS_QUASIMODE_MODAL = False

# Amount of time, in seconds (float), to wait from the time
# that the quasimode begins drawing to the time that the
# suggestion list begins to be displayed.  Setting this to a
# value greater than 0 will effectively create a
# "spring-loaded suggestion list" behavior.
QUASIMODE_SUGGESTION_DELAY = 0.2

# The maximum number of suggestions to display in the quasimode.
QUASIMODE_MAX_SUGGESTIONS = 6

# The minimum number of characters the user must type before the
# auto-completion mechanism engages.
QUASIMODE_MIN_AUTOCOMPLETE_CHARS = 2

# The message displayed when the user types some text that is not a command.
BAD_COMMAND_MSG = "<p><command>%s</command> is not a command.</p>"\
                  "%s"

# Minimum number of characters that should have been typed into the 
# quasimode for a bad command message to be shown. 
BAD_COMMAND_MSG_MIN_CHARS = 2

# The captions for the above message, indicating commands that are related
# to the command the user typed.
ONE_SUGG_CAPTION = "<caption>Did you mean <command>%s</command>?</caption>"

# The string that is displayed in the quasimode window when the user
# first enters the quasimode.
QUASIMODE_DEFAULT_HELP = u"Welcome to Enso! Enter a command, " \
    u"or type \u201chelp\u201d for assistance."

# The string displayed when the user has typed some characters but there
# is no matching command.
QUASIMODE_NO_COMMAND_HELP = "There is no matching command. "\
    "Use backspace to delete characters."

# Message XML for the Splash message shown when Enso first loads.
OPENING_MSG_XML = "<p>Welcome to <command>Enso</command>!</p>" + \
    "<caption>Copyright &#169; 2008 Humanized, Inc.</caption>"

# Message XML displayed when the mouse hovers over a mini message.
MINI_MSG_HELP_XML = "<p>The <command>hide mini messages</command>" \
    " and <command>put</command> commands control" \
    " these mini-messages.</p>"

# List of modules/packages that support the provider interface to
# provide required platform-specific functionality to Enso.
PROVIDERS = ["enso_osx"]

# List of modules/packages that support the plugin interface to
# extend Enso.  The plugins are loaded in the order that they
# are specified in this list.
PLUGINS = []