From 7914dd7447d1b05d5c377c1b010bc4cae2d47844 Mon Sep 17 00:00:00 2001 From: mitchell <70453897+667e-11@users.noreply.github.com> Date: Thu, 14 Jul 2011 17:14:39 -0400 Subject: Added Upper and Lower menu commands for selection case. --- core/locale.conf | 2 ++ modules/textadept/keys.conf | 2 ++ modules/textadept/keys.osx.conf | 2 ++ modules/textadept/menu.lua | 3 +++ 4 files changed, 9 insertions(+) diff --git a/core/locale.conf b/core/locale.conf index eab424a0..77e25d7d 100644 --- a/core/locale.conf +++ b/core/locale.conf @@ -122,6 +122,8 @@ Transpose Characters = T_ranspose Characters Join Lines = _Join Lines Convert Indentation = Convert _Indentation Selection = Selectio_n +Upper Case Selection = _Upper Case Selection +Lower Case Selection = _Lower Case Selection Enclose as XML Tags = Enclose as _XML Tags Enclose as Single XML Tag = Enclose as Single XML _Tag Enclose in Double Quotes = Enclose in _Double Quotes 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 -- cgit v1.2.3