diff options
author | 2014-11-24 21:15:21 -0500 | |
---|---|---|
committer | 2014-11-24 21:15:21 -0500 | |
commit | 31399755d49c4501335e6c7146b06ee49f0e61bd (patch) | |
tree | 6e1e9921420447a593aad89b45bc5acad7529dcd | |
parent | dc57cc98d89d6579e1e8968643dc78207f702b1f (diff) | |
download | textadept-31399755d49c4501335e6c7146b06ee49f0e61bd.tar.gz textadept-31399755d49c4501335e6c7146b06ee49f0e61bd.zip |
Use Bash syntax highlighting for "filter through" via the command entry.
-rw-r--r-- | modules/textadept/keys.lua | 2 | ||||
-rw-r--r-- | modules/textadept/menu.lua | 3 |
2 files changed, 3 insertions, 2 deletions
diff --git a/modules/textadept/keys.lua b/modules/textadept/keys.lua index a8ae30d9..eae664c8 100644 --- a/modules/textadept/keys.lua +++ b/modules/textadept/keys.lua @@ -403,7 +403,7 @@ keys[not OSX and not CURSES and 'c/' or 'm/'] = editing.block_comment keys.ct = editing.transpose_chars keys[not OSX and (not CURSES and 'cJ' or 'mj') or 'cj'] = editing.join_lines keys[not OSX and (not CURSES and 'c|' or 'c\\') - or 'm|'] = {ui.command_entry.enter_mode, 'filter_through'} + or 'm|'] = {ui.command_entry.enter_mode, 'filter_through', 'bash'} -- Select. keys[not CURSES and 'cM' or 'mM'] = {editing.match_brace, 'select'} keys[not OSX and not CURSES and 'c<' diff --git a/modules/textadept/menu.lua b/modules/textadept/menu.lua index 500136ce..3e66ed27 100644 --- a/modules/textadept/menu.lua +++ b/modules/textadept/menu.lua @@ -58,7 +58,8 @@ local menubar = { {_L['Toggle _Block Comment'], editing.block_comment}, {_L['T_ranspose Characters'], editing.transpose_chars}, {_L['_Join Lines'], editing.join_lines}, - {_L['_Filter Through'], {ui.command_entry.enter_mode, 'filter_through'}}, + {_L['_Filter Through'], + {ui.command_entry.enter_mode, 'filter_through', 'bash'}}, { title = _L['_Select'], {_L['Select to _Matching Brace'], {editing.match_brace, 'select'}}, {_L['Select between _XML Tags'], {editing.select_enclosed, '>', '<'}}, |