diff options
author | 2011-07-14 17:14:39 -0400 | |
---|---|---|
committer | 2011-07-14 17:14:39 -0400 | |
commit | 7914dd7447d1b05d5c377c1b010bc4cae2d47844 (patch) | |
tree | 2917fc16b6427a99f5e89e6405c8a5c7026d42c4 /modules | |
parent | 93e209737bf988a55972def61c4734590527d5f9 (diff) | |
download | textadept-7914dd7447d1b05d5c377c1b010bc4cae2d47844.tar.gz textadept-7914dd7447d1b05d5c377c1b010bc4cae2d47844.zip |
Added Upper and Lower menu commands for selection case.
Diffstat (limited to 'modules')
-rw-r--r-- | modules/textadept/keys.conf | 2 | ||||
-rw-r--r-- | modules/textadept/keys.osx.conf | 2 | ||||
-rw-r--r-- | modules/textadept/menu.lua | 3 |
3 files changed, 7 insertions, 0 deletions
diff --git a/modules/textadept/keys.conf b/modules/textadept/keys.conf index a7b7b8fa..48f28260 100644 --- a/modules/textadept/keys.conf +++ b/modules/textadept/keys.conf @@ -49,6 +49,8 @@ Transpose Characters = ct Join Lines = cJ Convert Indentation = % Selection +Upper Case Selection = +Lower Case Selection = Enclose as XML Tags = a< Enclose as Single XML Tag = a> Enclose in Double Quotes = a" diff --git a/modules/textadept/keys.osx.conf b/modules/textadept/keys.osx.conf index 406a0cd3..c5481a6a 100644 --- a/modules/textadept/keys.osx.conf +++ b/modules/textadept/keys.osx.conf @@ -49,6 +49,8 @@ Transpose Characters = mt Join Lines = mj Convert Indentation = % Selection +Upper Case Selection = +Lower Case Selection = Enclose as XML Tags = m< Enclose as Single XML Tag = m> Enclose in Double Quotes = m" diff --git a/modules/textadept/menu.lua b/modules/textadept/menu.lua index a1c0c217..af0cd4a9 100644 --- a/modules/textadept/menu.lua +++ b/modules/textadept/menu.lua @@ -159,6 +159,9 @@ menubar = { menuitem('Join Lines', m_editing.join_lines), menuitem('Convert Indentation', m_editing.convert_indentation), { title = L('Selection'), + menuitem('Upper Case Selection', _buffer.upper_case), + menuitem('Lower Case Selection', _buffer.lower_case), + SEPARATOR, menuitem('Enclose as XML Tags', function() m_editing.enclose('<', '>') local buffer = buffer |