Mercurial > enso_core
view enso/config.py @ 39:30686583595d
Modified the default enso configuration so that the re-posting of key events for single-key quasimode sessions is possible.
author | Atul Varma <varmaa@toolness.com> |
---|---|
date | Sun, 24 Feb 2008 13:23:56 -0600 |
parents | 5e4c680f49a3 |
children | 78bb785c992e |
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 Enso.</p>" # 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>" PROVIDERS = [] def _initDefaultProviders(): import logging DEFAULT_PROVIDER_MODULES = ["enso_osx"] for moduleName in DEFAULT_PROVIDER_MODULES: try: module = __import__( moduleName ) PROVIDERS.append( module ) logging.info( "Added provider %s." % moduleName ) except ImportError: logging.info( "Skipping provider %s." % moduleName ) _initDefaultProviders()