[Boa Constr] Shell enhancements part 2
Status: Beta
Brought to you by:
riaan
From: Patrick K. O'B. <po...@or...> - 2001-06-11 18:22:01
|
I dug a little more into PythonWin because they are also using Scintilla, and I found that they use a configuration file with the excerpts I've pasted below. Then I looked for something similar in boa and couldn't find anything. I looked at PrefsKeys.py, PrefsMSW.py and ShellEditor.py but didn't see anything that stood out as relevant. I think a keybinding configuration file would be nice. PythonWin lets you have a configuration file that is based on another and overrides it (kind of like inheritance). That way you leave the default bindings file alone. I like that approach. An example of that is included below as well. Is any of this doable? Reasonable? Desireable (to anyone else)? --- [Keys] # Auto-complete, call-tips, etc. Alt+/ = <<expand-word>> Ctrl+Space = <<expand-word>> Shift+( = <<paren-open>> Shift-) = <<paren-close>> Up = <<check-calltip-cancel>> Down = <<check-calltip-cancel>> Left = <<check-calltip-cancel>> Right = <<check-calltip-cancel>> . = KeyDot [Keys:Interactive] # Key bindings specific to the interactive window. # History for the interactive window Ctrl+Up = <<history-previous>> Ctrl+Down = <<history-next>> Enter = ProcessEnter Ctrl+Enter = ProcessEnter Shift+Enter = ProcessEnter Esc = ProcessEsc Alt+I = WindowBack # Toggle back to previous window. Home = InteractiveHome # A sample Event defined in this file. Shift+Home = InteractiveHomeExtend # A sample Event defined in this file. --- Sample custom configuration that provides keybindings like IDLE: [General] # We base this configuration on the default config. # You can list "Based On" as many times as you like Based On = default [Keys] # Only list keys different to default. # Note you may wish to rebind some of the default # Pythonwin keys to "Beep" or "DoNothing" Alt+L = LocateSelectedFile Ctrl+Q = AppExit # Other non-default Pythonwin keys Alt+A = EditSelectAll Alt+M = LocateModule # Movement Ctrl+D = GotoEndOfFile # Tabs and other indent features Alt+T = <<toggle-tabs>> Ctrl+[ = <<indent-region>> Ctrl+] = <<dedent-region>> [Keys:Interactive] Alt+P = <<history-previous>> Alt+N = <<history-next>> --- Patrick K. O'Brien Orbtech "I am, therefore I think." |