aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authormitchell <70453897+667e-11@users.noreply.github.com>2011-08-10 16:29:28 -0400
committermitchell <70453897+667e-11@users.noreply.github.com>2011-08-10 16:29:28 -0400
commitfd4ead5b37598a950419b5a7cf2a0671ddef3c5e (patch)
treeee581b6e0738d59f159300bef7d529f8860a03c4
parent6b5b649948732b60b522261e2a6ec14e0f30bb73 (diff)
downloadtextadept-fd4ead5b37598a950419b5a7cf2a0671ddef3c5e.tar.gz
textadept-fd4ead5b37598a950419b5a7cf2a0671ddef3c5e.zip
Change bindings for switching buffers and views on Mac OSX.
-rw-r--r--doc/manual/14_Appendix.md8
-rw-r--r--modules/textadept/keys.lua8
2 files changed, 8 insertions, 8 deletions
diff --git a/doc/manual/14_Appendix.md b/doc/manual/14_Appendix.md
index cb3ada08..f876b166 100644
--- a/doc/manual/14_Appendix.md
+++ b/doc/manual/14_Appendix.md
@@ -95,8 +95,8 @@ Ctrl+Alt+Shift+O|⌘⌥⇧O |Snapopen current directory
Ctrl+I |⌘I |Show style
**Buffer** |||
-Ctrl+Tab |^\` |Next buffer
-Ctrl+Shift+Tab |^~ |Previous buffer
+Ctrl+Tab |^⇥ |Next buffer
+Ctrl+Shift+Tab |^⇧⇥ |Previous buffer
Ctrl+B |⌘B |Switch to buffer...
None |None |Tab width: 2
None |None |Tab width: 3
@@ -115,8 +115,8 @@ Ctrl+Alt+L |⌘⌥L |Select lexer...
F5 |F5 |Refresh syntax highlighting
**View** |||
-Ctrl+Alt+Tab |^⇥ |Next view
-Ctrl+Alt+Shift+Tab |^⇧⇥ |Previous view
+Ctrl+Alt+N |^⌥⇥ |Next view
+Ctrl+Alt+P |^⌥⇧⇥ |Previous view
Ctrl+Alt+Shift+S |^⇧S |Split view vertical
Ctrl+Alt+S |^S |Split view horizontal
Ctrl+Alt+W |^W |Unsplit view
diff --git a/modules/textadept/keys.lua b/modules/textadept/keys.lua
index 9a715fa7..52ab0db1 100644
--- a/modules/textadept/keys.lua
+++ b/modules/textadept/keys.lua
@@ -234,8 +234,8 @@ keys[not OSX and 'caO' or 'maO'] = utils.snapopen_filedir
keys[not OSX and 'ci' or 'mi'] = utils.show_style
-- Buffer.
-keys[not OSX and 'c\t' or 'c`'] = { _view.goto_buffer, _view, 1, false }
-keys[not OSX and 'cs\t' or 'c~'] = { _view.goto_buffer, _view, -1, false }
+keys['c\t'] = { _view.goto_buffer, _view, 1, false }
+keys['cs\t'] = { _view.goto_buffer, _view, -1, false }
keys[not OSX and 'cb' or 'mb'] = gui.switch_buffer
-- Indentation.
-- TODO: { utils.set_indentation, 2 }
@@ -258,8 +258,8 @@ keys[not OSX and 'cal' or 'mal'] = m_textadept.mime_types.select_lexer
keys.f5 = { _buffer.colourise, _buffer, 0, -1 }
-- View.
-keys[not OSX and 'can' or 'c\t'] = { gui.goto_view, 1, false }
-keys[not OSX and 'cap' or 'cs\t'] = { gui.goto_view, -1, false }
+keys[not OSX and 'can' or 'ca\t'] = { gui.goto_view, 1, false }
+keys[not OSX and 'cap' or 'cas\t'] = { gui.goto_view, -1, false }
keys[not OSX and 'caS' or 'cS'] = { _view.split, _view }
keys[not OSX and 'cas' or 'cs'] = { _view.split, _view, false }
keys[not OSX and 'caw' or 'cw'] = { _view.unsplit, _view }