diff options
author | 2011-08-09 19:02:52 -0400 | |
---|---|---|
committer | 2011-08-09 19:02:52 -0400 | |
commit | 7082dbf7ef227c8534150c331a4567bf9e3868e5 (patch) | |
tree | c9faf369105d122c530ec197c5da60f0773a23a0 /modules | |
parent | 1bcff530cb40197c6614adda566c8be639023a5c (diff) | |
download | textadept-7082dbf7ef227c8534150c331a4567bf9e3868e5.tar.gz textadept-7082dbf7ef227c8534150c331a4567bf9e3868e5.zip |
Swap Replace/Replace All and Run/Compile key bindings.
Replace/Replace All is destructive so it should not be easily accessible where
it can be mistakenly pressed.
Diffstat (limited to 'modules')
-rw-r--r-- | modules/textadept/keys.lua | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/modules/textadept/keys.lua b/modules/textadept/keys.lua index 573782bc..3533d061 100644 --- a/modules/textadept/keys.lua +++ b/modules/textadept/keys.lua @@ -116,9 +116,9 @@ if not RESETTING then constantize_menu_buffer_functions() end Mac OSX menu key commands. Unassigned keys (~ denotes keys reserved by the operating system): - c: A B C ~ JkK ~M N p ~ tT U V Xy ) ] } * ~~\n~~ - ca: aAbBcC~DeE F ~HiIjJkK L~MnN pPq~rRsStTuUvVwWxXyYzZ_"'()[]{}<>*+-/= \n~~ - m: cC D gG H J K L oO qQ v xXyYzZ_ ) ] } * / + m: A B C ~ JkK ~M N p ~ tT U V Xy ) ] } * ~~\n~~ + ma: aAbBcC~DeE F ~HiIjJkK L~MnN pPq~rRsStTuUvVwWxXyYzZ_"'()[]{}<>*+-/= \n~~ + c: cC D gG H J K L oO qQ v xXyYzZ_ ) ] } * / CTRL = 'c' (Command ⌘) ALT = 'a' (Alt/option ⌥) @@ -194,8 +194,8 @@ keys.cg = gui.find.find_next if not OSX then keys.f3 = keys.cg end keys.cG = gui.find.find_prev if not OSX then keys.sf3 = keys.cG end -keys.cr = gui.find.replace -keys.cR = gui.find.replace_all +keys[not OSX and 'car' or 'mr'] = gui.find.replace +keys[not OSX and 'caR' or 'mR'] = gui.find.replace_all -- Find Next is an when find pane is focused. -- Find Prev is ap when find pane is focused. -- Replace is ar when find pane is focused. @@ -210,8 +210,8 @@ keys.cj = m_editing.goto_line -- Tools. keys.ce = gui.command_entry.focus keys.cE = utils.select_command -keys[not OSX and 'car' or 'mr'] = m_textadept.run.run -keys[not OSX and 'caR' or 'mR'] = m_textadept.run.compile +keys.cr = m_textadept.run.run +keys.cR = m_textadept.run.compile keys['c|'] = m_textadept.filter_through.filter_through -- Adeptsense. keys[not OSX and 'c ' or 'aesc'] = m_textadept.adeptsense.complete_symbol |