mirror of
https://github.com/atom/atom.git
synced 2026-01-22 13:28:01 -05:00
Add command to open user keymap in an editor
This commit is contained in:
@@ -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) ->
|
||||
|
||||
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user