From 52e999fc11922f85afd2b04ab60181a298eb879a Mon Sep 17 00:00:00 2001 From: Kevin Sawicki Date: Fri, 17 Jan 2014 14:19:31 -0800 Subject: [PATCH] Add command to open user keymap in an editor --- src/workspace-view.coffee | 1 + src/workspace.coffee | 4 ++++ 2 files changed, 5 insertions(+) diff --git a/src/workspace-view.coffee b/src/workspace-view.coffee index f67b21f36..dee32fcdc 100644 --- a/src/workspace-view.coffee +++ b/src/workspace-view.coffee @@ -124,6 +124,7 @@ class WorkspaceView extends View @command 'core:save-as', => @saveActivePaneItemAs() @command 'window:open-your-stylesheet', => @model.openUserStylesheet() + @command 'window:open-your-keymap', => @model.openUserKeymap() # Private: handleFocus: (e) -> diff --git a/src/workspace.coffee b/src/workspace.coffee index e9170cd60..52b05bb0c 100644 --- a/src/workspace.coffee +++ b/src/workspace.coffee @@ -42,6 +42,10 @@ class Workspace extends Model openUserStylesheet: -> @open(atom.themes.getUserStylesheetPath()) + # Private: Open ~/.atom/keymap.cson or ~/.atom/keymap.json + openUserKeymap: -> + @open(atom.keymap.getUserKeymapPath()) + # Public: Asynchronously opens a given a filepath in Atom. # # * filePath: A file path