mirror of
https://github.com/atom/atom.git
synced 2026-01-23 22:08:08 -05:00
Remove random space
This commit is contained in:
@@ -1,7 +1,6 @@
|
||||
{ipcRenderer} = require 'electron'
|
||||
|
||||
module.exports = ({commandRegistry, commandInstaller, config, notificationManager}) ->
|
||||
|
||||
commandRegistry.add 'atom-workspace',
|
||||
'pane:show-next-recently-used-item': -> @getModel().getActivePane().activateNextRecentlyUsedItem()
|
||||
'pane:show-previous-recently-used-item': -> @getModel().getActivePane().activatePreviousRecentlyUsedItem()
|
||||
@@ -32,13 +31,13 @@ module.exports = ({commandRegistry, commandInstaller, config, notificationManage
|
||||
'application:unhide-all-applications': -> ipcRenderer.send('command', 'application:unhide-all-applications')
|
||||
'application:new-window': -> ipcRenderer.send('command', 'application:new-window')
|
||||
'application:new-file': -> ipcRenderer.send('command', 'application:new-file')
|
||||
'application:open': ->
|
||||
'application:open': ->
|
||||
defaultPath = atom.workspace.getActiveTextEditor()?.getPath() ? atom.project.getPaths()?[0]
|
||||
ipcRenderer.send('open-command', 'application:open', defaultPath)
|
||||
'application:open-file': ->
|
||||
'application:open-file': ->
|
||||
defaultPath = atom.workspace.getActiveTextEditor()?.getPath() ? atom.project.getPaths()?[0]
|
||||
ipcRenderer.send('open-command', 'application:open-file', defaultPath)
|
||||
'application:open-folder': ->
|
||||
'application:open-folder': ->
|
||||
defaultPath = atom.workspace.getActiveTextEditor()?.getPath() ? atom.project.getPaths()?[0]
|
||||
ipcRenderer.send('open-command', 'application:open-folder', defaultPath)
|
||||
'application:open-dev': -> ipcRenderer.send('command', 'application:open-dev')
|
||||
|
||||
Reference in New Issue
Block a user