aboutsummaryrefslogtreecommitdiff
path: root/doc/manual/9_Preferences.md
diff options
context:
space:
mode:
authormitchell <70453897+667e-11@users.noreply.github.com>2011-07-29 18:27:06 -0400
committermitchell <70453897+667e-11@users.noreply.github.com>2011-07-29 18:27:06 -0400
commit36675f10b0cefaee7e9451b3eec3dfd715888625 (patch)
tree5a2135ef56b3e52bdf63fb4a82d4cec8c5e41eab /doc/manual/9_Preferences.md
parent32da7ac1a36d2285daa3a0ee280f1730415f04cf (diff)
downloadtextadept-36675f10b0cefaee7e9451b3eec3dfd715888625.tar.gz
textadept-36675f10b0cefaee7e9451b3eec3dfd715888625.zip
Eliminated the need for keys.conf and keys.osx.conf.
Thanks to Robert Gieseke for the idea and prototype code.
Diffstat (limited to 'doc/manual/9_Preferences.md')
-rw-r--r--doc/manual/9_Preferences.md35
1 files changed, 8 insertions, 27 deletions
diff --git a/doc/manual/9_Preferences.md b/doc/manual/9_Preferences.md
index 8e6b0a48..3a19e55b 100644
--- a/doc/manual/9_Preferences.md
+++ b/doc/manual/9_Preferences.md
@@ -75,35 +75,16 @@ the snippet.
##### Key Commands
-The default set of key commands is located in `modules/textadept/keys.conf`
-(`modules/textadept/keys.osx.conf` on Mac OSX) and is loaded by the
-`_m.textadept.menu` module. It is not recommended to edit Textadept's
-`keys.conf` or `keys.osx.conf` for changing the key bindings since your changes
-could be overwritten when updating Textadept. Instead, make a copy in your
-`~/.textadept/` folder and modify that.
-
-Key commands need to be defined manually for keychains or custom functions. You
-can do this in your `~/.textadept/init.lua` or from a file loaded by
-`~/.textadept/init.lua`. For example maybe you want `Ctrl+Shift+A, N` (`⌘⇧A, N`
-on Mac OSX) to create a new buffer instead of `Ctrl+N` (`⌘N`):
-
- keys.cA = {}
- keys.cA.n = new_buffer
+It is not recommended to edit Textadept's `modules/textadept/keys.lua` for
+changing the key bindings since your changes could be overwritten when updating
+Textadept. Instead, modify `keys` from within your `~/.textadept/init.lua` or
+from a file loaded by `~/.textadept/init.lua`. For example maybe you want
+`Ctrl+Shift+N` (`⌘⇧N` on Mac OSX) to create a new buffer instead of `Ctrl+N`
+(`⌘N`):
+
+ keys.cN = new_buffer
keys.cn = nil
-Earlier versions of Textadept manually defined all key commands in
-`modules/textadept/keys.lua` (`keys.cn = new_buffer`, `keys.co = io.open_file`,
-etc.). Now the `menu` module does this automatically by reading the keys in the
-`keys.conf` or `keys.osx.conf` files mentioned earlier. Of course you can still
-use Lua to define commands as demonstrated above. In fact, if you choose to
-exclude loading the menu like in an earlier example above, you will have to
-specify your own set of key commands! (I happen to do this and keep a copy of
-`~/.textadept/modules/textadept/keys.lua` that is loaded by my
-`~/.textadept/init.lua`.) Please note that key commands are _not_ handled by the
-menu; they are still handled as they always have been. Therefore the keys shown
-in the menu could differ from the actual set of key commands if you use Lua to
-redefine them. Menu keys are shown purely for cosmetic, not functional reasons.
-
## Locale
Most messages displayed by Textadept are localized. `core/locale.conf` contains