From 31399755d49c4501335e6c7146b06ee49f0e61bd Mon Sep 17 00:00:00 2001 From: mitchell <70453897+667e-11@users.noreply.github.com> Date: Mon, 24 Nov 2014 21:15:21 -0500 Subject: Use Bash syntax highlighting for "filter through" via the command entry. --- modules/textadept/keys.lua | 2 +- modules/textadept/menu.lua | 3 ++- 2 files changed, 3 insertions(+), 2 deletions(-) (limited to 'modules') 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, '>', '<'}}, -- cgit v1.2.3