diff options
author | 2019-09-21 08:51:10 -0400 | |
---|---|---|
committer | 2019-09-21 08:51:10 -0400 | |
commit | 68e7fc2fef3f9cbd4da4a89fa12915d4e683b439 (patch) | |
tree | 2dd8ae45a84585251b4ee5ea131e450b91cacdcd /modules/textadept/keys.lua | |
parent | c51668199549617d07af4891af9aeae956bdd42c (diff) | |
download | textadept-68e7fc2fef3f9cbd4da4a89fa12915d4e683b439.tar.gz textadept-68e7fc2fef3f9cbd4da4a89fa12915d4e683b439.zip |
Added back "Paste Reindent", but as a separate menu/key/command from "Paste".
Diffstat (limited to 'modules/textadept/keys.lua')
-rw-r--r-- | modules/textadept/keys.lua | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/modules/textadept/keys.lua b/modules/textadept/keys.lua index df4359f7..2d9cc31f 100644 --- a/modules/textadept/keys.lua +++ b/modules/textadept/keys.lua @@ -30,6 +30,7 @@ local M = {} -- Ctrl+X<br/>Shift+Del |⌘X<br/>⇧⌦|^X |Cut -- Ctrl+C<br/>Ctrl+Ins |⌘C |^C |Copy -- Ctrl+V<br/>Shift+Ins |⌘V |^V |Paste +-- Ctrl+Shift+V |⌘⇧V |M-V |Paste Reindent -- Ctrl+D |⌘D |None |Duplicate line -- Del |⌦<br/>^D |Del<br/>^D |Delete -- Alt+Del |^⌦ |M-Del<br/>M-D |Delete word @@ -297,6 +298,8 @@ keys[not OSX and GUI and 'cZ' or 'mZ'] = buffer.redo keys[not OSX and 'cx' or 'mx'] = buffer.cut keys[not OSX and 'cc' or 'mc'] = buffer.copy keys[not OSX and 'cv' or 'mv'] = buffer.paste +keys[not OSX and (GUI and 'cV' or 'mv') + or 'mV'] = textadept.editing.paste_reindent if GUI then keys[not OSX and 'cd' or 'md'] = buffer.line_duplicate end keys.del = buffer.clear keys[not OSX and (GUI and 'adel' or 'mdel') |