function filter(phrase) {
                    var results = fuzzyfind(api.allCommands(), phrase);
                    results = results.filter(function(result) {
                        result.meta = api.identifyCurrentKey(result.path);
                        result.icon = "action";
                        // Let's rename the `cmd` variable using multiple cursors...
                        // There are three instances
                        var command = api.lookup(result.path);
                        // Filter out commands that are language-specific and don't apply to this mode
                        return api.isVisible(session, command);
                    });
                    results.sort(function(a, b) {
                        if (a.score === b.score) {
                            var lastUseA = recentCommands[a.name] || 0;
                            var lastUseB = recentCommands[b.name] || 0;
                            if (lastUseA === lastUseB) {
                                return a.name < b.name ? -1 : 1;
                            } else {
                                return lastUseB - lastUseA;
                            }
                        } else {
                            return b.score - a.score;
                        }
                    });
                    return Promise.resolve(results);
                }
@param path in the form of 'Editor:Select All'
@param definition json object:
 {
     exec: function() { ... },
     readOnly: true
 }