diff options
Diffstat (limited to 'modules/textadept')
-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', |