aboutsummaryrefslogtreecommitdiff
path: root/doc/manual/9_Preferences.md
diff options
context:
space:
mode:
authormitchell <70453897+667e-11@users.noreply.github.com>2011-07-13 20:51:17 -0400
committermitchell <70453897+667e-11@users.noreply.github.com>2011-07-13 20:51:17 -0400
commit8ecc8aa21bf61063a8e2d0ef29a78d4a62616d29 (patch)
treeffe7a2317ddb80c558f28039a3120c8a3876afaa /doc/manual/9_Preferences.md
parent57101e2742f9385602c367fc054363c1e52e33a2 (diff)
downloadtextadept-8ecc8aa21bf61063a8e2d0ef29a78d4a62616d29.tar.gz
textadept-8ecc8aa21bf61063a8e2d0ef29a78d4a62616d29.zip
Refactored key commands and added menu accelerators.
Key commands are now in keys.conf and keys.osx.conf which are loaded by the _m.textadept.menu module.
Diffstat (limited to 'doc/manual/9_Preferences.md')
-rw-r--r--doc/manual/9_Preferences.md21
1 files changed, 16 insertions, 5 deletions
diff --git a/doc/manual/9_Preferences.md b/doc/manual/9_Preferences.md
index 579874c6..e917a55c 100644
--- a/doc/manual/9_Preferences.md
+++ b/doc/manual/9_Preferences.md
@@ -70,19 +70,30 @@ You can add global snippets to `snippets` such as:
snippets['file'] = '%<buffer.filename>'
snippets['path'] = "%<(buffer.filename or ''):match('^.+[/\\]')>"
-So typing `file` or `path` and then pressing `Tab` will insert the snippet.
+So typing `file` or `path` and then pressing `Tab` (`⇥` on Mac OSX) will insert
+the snippet.
##### Key Commands
-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
+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/modules/textadept/` folder and modify that.
+
+You can also modify key commands from within your your `~/.textadept/init.lua`
+or from a file loaded by `~/.textadept/init.lua`. For example maybe you want
`Alt+N` to create a new buffer instead of `Ctrl+N`:
keys.an = new_buffer
keys.cn = nil
+If you choose to exclude loading the menu like in the 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`.
+
## Locale
Most messages displayed by Textadept are localized. `core/locale.conf` contains