aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authormitchell <70453897+667e-11@users.noreply.github.com>2011-07-14 17:14:39 -0400
committermitchell <70453897+667e-11@users.noreply.github.com>2011-07-14 17:14:39 -0400
commit7914dd7447d1b05d5c377c1b010bc4cae2d47844 (patch)
tree2917fc16b6427a99f5e89e6405c8a5c7026d42c4
parent93e209737bf988a55972def61c4734590527d5f9 (diff)
downloadtextadept-7914dd7447d1b05d5c377c1b010bc4cae2d47844.tar.gz
textadept-7914dd7447d1b05d5c377c1b010bc4cae2d47844.zip
Added Upper and Lower menu commands for selection case.
-rw-r--r--core/locale.conf2
-rw-r--r--modules/textadept/keys.conf2
-rw-r--r--modules/textadept/keys.osx.conf2
-rw-r--r--modules/textadept/menu.lua3
4 files changed, 9 insertions, 0 deletions
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