diff options
author | 2009-02-22 22:55:06 -0500 | |
---|---|---|
committer | 2009-02-22 22:55:06 -0500 | |
commit | bf802c64d24f8e3a2cb71c6d7c1c07ac14b12bd4 (patch) | |
tree | dd2d2613707122ec535e95f3d3c2a9420d8ef92c /core/ext/key_commands.lua | |
parent | 4a245bd4c1db90045988035facad3e55d2b6f45d (diff) | |
download | textadept-bf802c64d24f8e3a2cb71c6d7c1c07ac14b12bd4.tar.gz textadept-bf802c64d24f8e3a2cb71c6d7c1c07ac14b12bd4.zip |
Added key commands and menu items to navigate 'Find in Files' list.
Diffstat (limited to 'core/ext/key_commands.lua')
-rw-r--r-- | core/ext/key_commands.lua | 21 |
1 files changed, 16 insertions, 5 deletions
diff --git a/core/ext/key_commands.lua b/core/ext/key_commands.lua index 803fa2cd..4a40ea5a 100644 --- a/core/ext/key_commands.lua +++ b/core/ext/key_commands.lua @@ -22,7 +22,7 @@ if not MAC then --[[ C: B D H I J K L U A: A B C D E F G H J K L M N P R S T U V W X Y Z - CS: A B C D F G H I J K L M N O Q T U V X Y Z + CS: A B C D G H I J K L M N O Q T U V X Y Z SA: A B C D E F G H I J K L M N O P Q R S T U V W X Y Z CA: A B C D E F G H J K L M N O Q R S T U V W X Y Z CSA: A B C D E F G H J K L M N O P Q R S T U V W X Y Z @@ -96,6 +96,9 @@ if not MAC then -- 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. + -- Find in Files is ai when find pane is focused. + -- TODO: { t.find.goto_file_in_list, true } + -- TODO: { t.find.goto_file_in_list, false } keys.cg = { m_editing.goto_line } -- Tools @@ -202,9 +205,9 @@ else C: J L U W X Z A: B D E H I J K L U CS: C D G H I J K L M O Q S T U V W X Y Z - SA: A B C D F H I J K L M N O Q R T U V X - CA: A C E G J K L M N O Q R S T U V W X Y Z - CSA: A C D E G H J K L M N O P Q R S T U V W X Y Z + SA: A B C D H I J K L M N O Q R T U V X + CA: A C E J K L M N O Q R S T U V W X Y Z + CSA: A C D E H J K L M N O P Q R S T U V W X Y Z ]]-- keys.clear_sequence = 'aesc' @@ -276,7 +279,15 @@ else keys.ag = { t.find.call_find_next } keys.sag = { t.find.call_find_prev } keys.ar = { t.find.call_replace } - keys.cg = { m_editing.goto_line } + keys.saf = { + function() + t.find.in_files = true + t.find.focus() + end + } + keys.cag = { t.find.goto_file_in_list, true } + keys.csag = { t.find.goto_file_in_list, false } + keys.cg = { m_editing.goto_line } -- Tools keys['f2'] = { t.command_entry.focus } |