1
0
mirror of https://github.com/gryf/pentadactyl-pm.git synced 2025-12-22 14:27:58 +01:00

add an initial implementation of :sidebar

This commit is contained in:
Doug Kearns
2007-09-17 13:26:33 +00:00
parent 29eb144617
commit b261cb851a
3 changed files with 38 additions and 0 deletions

View File

@@ -461,6 +461,17 @@ vimperator.completion = (function() // {{{
return build_longest_common_substring(items, filter);
}, //}}}
get_sidebar_completions: function(filter) //{{{
{
var menu = document.getElementById("viewSidebarMenu")
var nodes = [];
for (var i = 0; i < menu.childNodes.length; i++)
nodes.push([[menu.childNodes[i].label], ""]);
return build_longest_starting_substring(nodes, filter);
}, //}}}
exTabCompletion: function(str) //{{{
{
var [count, cmd, special, args] = vimperator.commands.parseCommand(str);