aboutsummaryrefslogtreecommitdiff
path: root/modules
diff options
context:
space:
mode:
Diffstat (limited to 'modules')
-rw-r--r--modules/textadept/keys.lua16
-rw-r--r--modules/textadept/menu.lua7
2 files changed, 3 insertions, 20 deletions
diff --git a/modules/textadept/keys.lua b/modules/textadept/keys.lua
index bd389775..c6713377 100644
--- a/modules/textadept/keys.lua
+++ b/modules/textadept/keys.lua
@@ -41,14 +41,9 @@ local M = {}
-- Ctrl+T |^T |^T |Transpose characters
-- Ctrl+Shift+J |^J |M-J |Join lines
-- Ctrl+| |⌘| |^\ |Filter text through
--- Ctrl+Shift+M |^⇧M |M-S-M |Select to matching brace
+-- Ctrl+Shift+M |^⇧M |M-S-M |Select between delimiters
-- Ctrl+< |⌘< |M-< |Select between XML tags
-- Ctrl+> |⌘> |None |Select in XML tag
--- Ctrl+" |⌘" |M-" |Select in double quotes
--- Ctrl+' |⌘' |M-' |Select in single quotes
--- Ctrl+( |⌘( |M-( |Select in parentheses
--- Ctrl+[ |⌘[ |M-[ |Select in brackets
--- Ctrl+{ |⌘{ |M-{ |Select in braces
-- Ctrl+Shift+D |⌘⇧D |M-S-W |Select word
-- Ctrl+Shift+N |⌘⇧N |M-S-N |Select line
-- Ctrl+Shift+P |⌘⇧P |M-S-P |Select paragraph
@@ -316,19 +311,12 @@ keys[not OSX and (GUI and 'c|' or 'c\\')
or 'm|'] = m_edit[_L['_Filter Through']][2]
-- Select.
local m_sel = m_edit[_L['_Select']]
-keys[GUI and 'cM' or 'mM'] = m_sel[_L['Select to _Matching Brace']][2]
+keys[GUI and 'cM' or 'mM'] = m_sel[_L['Select between _Matching Delimiters']][2]
keys[not OSX and GUI and 'c<'
or 'm<'] = m_sel[_L['Select between _XML Tags']][2]
if GUI then
keys[not OSX and 'c>' or 'm>'] = m_sel[_L['Select in XML _Tag']][2]
end
-keys[not OSX and GUI and "c'"
- or "m'"] = m_sel[_L['Select in _Single Quotes']][2]
-keys[not OSX and GUI and 'c"'
- or 'm"'] = m_sel[_L['Select in _Double Quotes']][2]
-keys[not OSX and GUI and 'c(' or 'm('] = m_sel[_L['Select in _Parentheses']][2]
-keys[not OSX and GUI and 'c[' or 'm['] = m_sel[_L['Select in _Brackets']][2]
-keys[not OSX and GUI and 'c{' or 'm{'] = m_sel[_L['Select in B_races']][2]
keys[not OSX and (GUI and 'cD' or 'mW') or 'mD'] = textadept.editing.select_word
keys[not OSX and GUI and 'cN' or 'mN'] = textadept.editing.select_line
keys[not OSX and GUI and 'cP' or 'mP'] = textadept.editing.select_paragraph
diff --git a/modules/textadept/menu.lua b/modules/textadept/menu.lua
index 7b2f2a81..672ddfa9 100644
--- a/modules/textadept/menu.lua
+++ b/modules/textadept/menu.lua
@@ -106,14 +106,9 @@ local default_menubar = {
end},
{
title = _L['_Select'],
- {_L['Select to _Matching Brace'], sel_enc},
+ {_L['Select between _Matching Delimiters'], sel_enc},
{_L['Select between _XML Tags'], function() sel_enc('>', '<') end},
{_L['Select in XML _Tag'], function() sel_enc('<', '>') end},
- {_L['Select in _Single Quotes'], function() sel_enc("'", "'") end},
- {_L['Select in _Double Quotes'], function() sel_enc('"', '"') end},
- {_L['Select in _Parentheses'], function() sel_enc('(', ')') end},
- {_L['Select in _Brackets'], function() sel_enc('[', ']') end},
- {_L['Select in B_races'], function() sel_enc('{', '}') end},
{_L['Select _Word'], textadept.editing.select_word},
{_L['Select _Line'], textadept.editing.select_line},
{_L['Select Para_graph'], textadept.editing.select_paragraph}