From 87e723e33bad1abc73d69ae26a3493a5a6dbb14c Mon Sep 17 00:00:00 2001 From: Kirill Nikitin Date: Fri, 9 May 2014 05:34:47 +0400 Subject: [PATCH] :penguin: Fix #2103, #2100 Update platform bindings for linux/win. --- keymaps/base.cson | 4 ---- keymaps/darwin.cson | 6 ++++++ keymaps/linux.cson | 9 +++++++-- keymaps/win32.cson | 7 ++++++- 4 files changed, 19 insertions(+), 7 deletions(-) diff --git a/keymaps/base.cson b/keymaps/base.cson index 1cdff64ce..adf6990c5 100644 --- a/keymaps/base.cson +++ b/keymaps/base.cson @@ -1,9 +1,5 @@ '.editor': # Platform Bindings - 'alt-left': 'editor:move-to-beginning-of-word' - 'alt-right': 'editor:move-to-end-of-word' - 'alt-shift-left': 'editor:select-to-beginning-of-word' - 'alt-shift-right': 'editor:select-to-end-of-word' 'home': 'editor:move-to-first-character-of-line' 'end': 'editor:move-to-end-of-screen-line' 'shift-home': 'editor:select-to-first-character-of-line' diff --git a/keymaps/darwin.cson b/keymaps/darwin.cson index 83aa31bd7..6aed88ea2 100644 --- a/keymaps/darwin.cson +++ b/keymaps/darwin.cson @@ -94,6 +94,12 @@ 'cmd-9': 'pane:show-item-9' '.editor': + # Platform Bindings + 'alt-left': 'editor:move-to-beginning-of-word' + 'alt-right': 'editor:move-to-end-of-word' + 'alt-shift-left': 'editor:select-to-beginning-of-word' + 'alt-shift-right': 'editor:select-to-end-of-word' + # Apple Specific 'cmd-backspace': 'editor:backspace-to-beginning-of-line' 'cmd-shift-backspace': 'editor:backspace-to-beginning-of-line' diff --git a/keymaps/linux.cson b/keymaps/linux.cson index 7126fd4ed..474829da3 100644 --- a/keymaps/linux.cson +++ b/keymaps/linux.cson @@ -60,8 +60,13 @@ 'ctrl-k ctrl-right': 'window:focus-pane-on-right' '.workspace .editor': - # Windows specific - 'ctrl-delete': 'editor:backspace-to-beginning-of-word' + # Platform Bindings + 'ctrl-left': 'editor:move-to-beginning-of-word' + 'ctrl-right': 'editor:move-to-end-of-word' + 'ctrl-shift-left': 'editor:select-to-beginning-of-word' + 'ctrl-shift-right': 'editor:select-to-end-of-word' + 'ctrl-backspace': 'editor:backspace-to-beginning-of-word' + 'ctrl-delete': 'editor:delete-to-end-of-word' # Sublime Parity 'ctrl-a': 'core:select-all' diff --git a/keymaps/win32.cson b/keymaps/win32.cson index fa348f4a7..91545a99c 100644 --- a/keymaps/win32.cson +++ b/keymaps/win32.cson @@ -58,7 +58,12 @@ 'ctrl-k ctrl-right': 'window:focus-pane-on-right' '.workspace .editor': - # Windows specific + # Platform Bindings + 'ctrl-left': 'editor:move-to-beginning-of-word' + 'ctrl-right': 'editor:move-to-end-of-word' + 'ctrl-shift-left': 'editor:select-to-beginning-of-word' + 'ctrl-shift-right': 'editor:select-to-end-of-word' + 'ctrl-backspace': 'editor:backspace-to-beginning-of-word' 'ctrl-delete': 'editor:backspace-to-beginning-of-word' # Sublime Parity