diff options
author | 2011-07-15 18:15:38 -0400 | |
---|---|---|
committer | 2011-07-15 18:15:38 -0400 | |
commit | e47613b24a9efa61a967a8e723b470bd510b6bca (patch) | |
tree | cea7f76318410a87d1996d3586fcb2fd668d04b2 /modules | |
parent | 7914dd7447d1b05d5c377c1b010bc4cae2d47844 (diff) | |
download | textadept-e47613b24a9efa61a967a8e723b470bd510b6bca.tar.gz textadept-e47613b24a9efa61a967a8e723b470bd510b6bca.zip |
Added menu and keys for moving lines up and down.
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 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', |