From d6090058104eb4ac82946f3ec3058b273b191e5b Mon Sep 17 00:00:00 2001 From: Stuart Quin Date: Thu, 11 Aug 2016 12:55:24 +0100 Subject: [PATCH] Get Ex commands from instance and prototype --- lib/ex.coffee | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/lib/ex.coffee b/lib/ex.coffee index 0e46110..d8b87b2 100644 --- a/lib/ex.coffee +++ b/lib/ex.coffee @@ -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()