Get Ex commands from instance and prototype
This commit is contained in:
parent
70a1987cf7
commit
d609005810
1 changed files with 3 additions and 1 deletions
|
|
@ -110,7 +110,9 @@ class Ex
|
|||
@singleton()[alias] = (args) => @singleton()[name](args)
|
||||
|
||||
@getCommands: () =>
|
||||
Object.keys(@singleton())
|
||||
Object.keys(Ex.singleton()).concat(Object.keys(Ex.prototype)).filter((cmd, index, list) ->
|
||||
list.indexOf(cmd) == index
|
||||
)
|
||||
|
||||
quit: ->
|
||||
atom.workspace.getActivePane().destroyActiveItem()
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue