diff options
author | 2011-07-15 18:15:38 -0400 | |
---|---|---|
committer | 2011-07-15 18:15:38 -0400 | |
commit | e47613b24a9efa61a967a8e723b470bd510b6bca (patch) | |
tree | cea7f76318410a87d1996d3586fcb2fd668d04b2 | |
parent | 7914dd7447d1b05d5c377c1b010bc4cae2d47844 (diff) | |
download | textadept-e47613b24a9efa61a967a8e723b470bd510b6bca.tar.gz textadept-e47613b24a9efa61a967a8e723b470bd510b6bca.zip |
Added menu and keys for moving lines up and down.
-rw-r--r-- | core/locale.conf | 2 | ||||
-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 |
4 files changed, 9 insertions, 0 deletions
diff --git a/core/locale.conf b/core/locale.conf index 77e25d7d..8403e44f 100644 --- a/core/locale.conf +++ b/core/locale.conf @@ -133,6 +133,8 @@ Enclose in Brackets = Enclose in _Brackets Enclose in Braces = Enclose in B_races Grow Selection = _Grow Selection Shrink Selection = _Shrink Selection +Move Selected Lines Up = _Move Selected Lines Up +Move Selected Lines Down = Move Selected Lines Do_wn Select = _Select Select between XML Tags = Select between _XML Tags Select in XML Tag = Select in XML _Tag diff --git a/modules/textadept/keys.conf b/modules/textadept/keys.conf index 48f28260..ab9f9bb6 100644 --- a/modules/textadept/keys.conf +++ b/modules/textadept/keys.conf @@ -60,6 +60,8 @@ Enclose in Brackets = a[ Enclose in Braces = a{ Grow Selection = c+ Shrink Selection = c_ +Move Selected Lines Up = csup +Move Selected Lines Down = csdown % Select Select between XML Tags = c< Select in XML Tag = c> diff --git a/modules/textadept/keys.osx.conf b/modules/textadept/keys.osx.conf index c5481a6a..deb9d623 100644 --- a/modules/textadept/keys.osx.conf +++ b/modules/textadept/keys.osx.conf @@ -60,6 +60,8 @@ Enclose in Brackets = m[ Enclose in Braces = m{ Grow Selection = c+ Shrink Selection = c_ +Move Selected Lines Up = msdown +Move Selected Lines Down = msup % Select Select between XML Tags = c< Select in XML Tag = c> diff --git a/modules/textadept/menu.lua b/modules/textadept/menu.lua index af0cd4a9..bf2db3e5 100644 --- a/modules/textadept/menu.lua +++ b/modules/textadept/menu.lua @@ -178,6 +178,9 @@ menubar = { SEPARATOR, menuitem('Grow Selection', { m_editing.grow_selection, 1 }), menuitem('Shrink Selection', { m_editing.grow_selection, -1 }), + SEPARATOR, + menuitem('Move Selected Lines Up', _buffer.move_selected_lines_up), + menuitem('Move Selected Lines Down', _buffer.move_selected_lines_down), }, { title = L('Select'), menuitem('Select between XML Tags', |