From 68e7fc2fef3f9cbd4da4a89fa12915d4e683b439 Mon Sep 17 00:00:00 2001 From: mitchell <70453897+667e-11@users.noreply.github.com> Date: Sat, 21 Sep 2019 08:51:10 -0400 Subject: Added back "Paste Reindent", but as a separate menu/key/command from "Paste". --- modules/textadept/keys.lua | 3 +++ 1 file changed, 3 insertions(+) (limited to 'modules/textadept/keys.lua') 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
Shift+Del |⌘X
⇧⌦|^X |Cut -- Ctrl+C
Ctrl+Ins |⌘C |^C |Copy -- Ctrl+V
Shift+Ins |⌘V |^V |Paste +-- Ctrl+Shift+V |⌘⇧V |M-V |Paste Reindent -- Ctrl+D |⌘D |None |Duplicate line -- Del |⌦
^D |Del
^D |Delete -- Alt+Del |^⌦ |M-Del
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') -- cgit v1.2.3