From 713fe60d74b3b96b20c40aab04e57352d03a886e Mon Sep 17 00:00:00 2001 From: Justin Mecham Date: Sun, 11 Feb 2018 19:15:39 -0500 Subject: [PATCH 1/3] Removed Cmd-K as a keybinding for clearing the terminal. I hope to be able to restore this, but right now it conflicts with a whole slew of keybindings in Atom on the Mac. --- keymaps/terminal.json | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/keymaps/terminal.json b/keymaps/terminal.json index 1d62a5d..cea995f 100644 --- a/keymaps/terminal.json +++ b/keymaps/terminal.json @@ -4,7 +4,6 @@ }, "terminal-view": { "cmd-c": "terminal:copy", - "cmd-v": "terminal:paste", - "cmd-k": "terminal:clear" + "cmd-v": "terminal:paste" } } From e3f6bc67dd7a84435b6beb5c0bc459bff230fc9b Mon Sep 17 00:00:00 2001 From: Sylvain Dumont Date: Tue, 13 Feb 2018 15:07:48 +0100 Subject: [PATCH 2/3] platform specific bindings --- keymaps/terminal.json | 23 ++++++++++++++++++++--- 1 file changed, 20 insertions(+), 3 deletions(-) diff --git a/keymaps/terminal.json b/keymaps/terminal.json index cea995f..7dca6e6 100644 --- a/keymaps/terminal.json +++ b/keymaps/terminal.json @@ -1,9 +1,26 @@ { - "atom-workspace": { + ".platform-darwin atom-workspace": { "cmd-shift-t": "terminal:open" }, - "terminal-view": { + ".platform-darwin terminal-view": { "cmd-c": "terminal:copy", - "cmd-v": "terminal:paste" + "cmd-v": "terminal:paste", + "cmd-k": "terminal:clear" + }, + ".platform-win32 atom-workspace": { + "alt-shift-t": "terminal:open" + }, + ".platform-win32 terminal-view": { + "ctrl-c": "terminal:copy", + "ctrl-v": "terminal:paste", + "ctrl-k": "terminal:clear" + }, + ".platform-linux atom-workspace": { + "alt-shift-t": "terminal:open" + }, + ".platform-linux terminal-view": { + "ctrl-c": "terminal:copy", + "ctrl-v": "terminal:paste", + "ctrl-k": "terminal:clear" } } From 56f9b97d09781b80cb6cd5accb5d235ec3800f21 Mon Sep 17 00:00:00 2001 From: Sylvain Dumont Date: Tue, 13 Feb 2018 15:59:45 +0100 Subject: [PATCH 3/3] better copy/paste keybindings --- keymaps/terminal.json | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/keymaps/terminal.json b/keymaps/terminal.json index 7dca6e6..48238c2 100644 --- a/keymaps/terminal.json +++ b/keymaps/terminal.json @@ -5,22 +5,22 @@ ".platform-darwin terminal-view": { "cmd-c": "terminal:copy", "cmd-v": "terminal:paste", - "cmd-k": "terminal:clear" + "cmd-shift-k": "terminal:clear" }, ".platform-win32 atom-workspace": { "alt-shift-t": "terminal:open" }, ".platform-win32 terminal-view": { - "ctrl-c": "terminal:copy", - "ctrl-v": "terminal:paste", - "ctrl-k": "terminal:clear" + "ctrl-shift-c": "terminal:copy", + "ctrl-shift-v": "terminal:paste", + "ctrl-shift-k": "terminal:clear" }, ".platform-linux atom-workspace": { "alt-shift-t": "terminal:open" }, ".platform-linux terminal-view": { - "ctrl-c": "terminal:copy", - "ctrl-v": "terminal:paste", - "ctrl-k": "terminal:clear" + "ctrl-shift-c": "terminal:copy", + "ctrl-shift-v": "terminal:paste", + "ctrl-shift-k": "terminal:clear" } }