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)
|
@singleton()[alias] = (args) => @singleton()[name](args)
|
||||||
|
|
||||||
@getCommands: () =>
|
@getCommands: () =>
|
||||||
Object.keys(@singleton())
|
Object.keys(Ex.singleton()).concat(Object.keys(Ex.prototype)).filter((cmd, index, list) ->
|
||||||
|
list.indexOf(cmd) == index
|
||||||
|
)
|
||||||
|
|
||||||
quit: ->
|
quit: ->
|
||||||
atom.workspace.getActivePane().destroyActiveItem()
|
atom.workspace.getActivePane().destroyActiveItem()
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue