diff --git a/Donators b/Donators index e72f0c91..5c555568 100644 --- a/Donators +++ b/Donators @@ -2,8 +2,8 @@ Note: If you don't wish to appear on this list when making a donation, please tell me. 2008: -* Kurtis Rader * Andrew Pantyukhin +* Kurtis Rader 2007: * Richard Terrell diff --git a/content/commands.js b/content/commands.js index 89985686..2d25f5b5 100644 --- a/content/commands.js +++ b/content/commands.js @@ -2115,7 +2115,7 @@ vimperator.Commands = function () //{{{ ":set option+={value}, :set option^={value} and :set option-={value} " + "adds/multiplies/subtracts {value} from a number option and appends/prepends/removes {value} from a string option.
" + ":set all shows the current value of all options and :set all& resets all options to their default values.
", - completer: function (filter) { return vimperator.completion.option(filter); } + completer: function (filter, special) { return vimperator.completion.option(filter, special); } } )); // TODO: sclose instead? diff --git a/content/completion.js b/content/completion.js index 5706b605..ae55e647 100644 --- a/content/completion.js +++ b/content/completion.js @@ -279,7 +279,7 @@ vimperator.Completion = function () //{{{ substrings = []; for (var command in vimperator.commands) helpArray.push([command.longNames.map(function ($_) { return ":" + $_; }), command.shortHelp]); - options = this.option(filter, true); + options = this.option(filter, false, true); helpArray = helpArray.concat(options.map(function ($_) { return [ $_[0].map(function ($_) { return "'" + $_ + "'"; }), @@ -346,7 +346,7 @@ vimperator.Completion = function () //{{{ return [0, buildLongestStartingSubstring(completions, filter)]; }, - option: function (filter, unfiltered) + option: function (filter, special, unfiltered) { substrings = []; var optionCompletions = []; @@ -369,6 +369,9 @@ vimperator.Completion = function () //{{{ return options; } + if (special) + alert(":set! completion will complete about:config options"); + if (!filter) { var options = []; @@ -698,7 +701,7 @@ vimperator.Completion = function () //{{{ { matches = str.match(/^:*\d*\w+!?\s+/); exLength = matches ? matches[0].length : 0; - [start, completions] = command.completer.call(this, args); + [start, completions] = command.completer.call(this, args, special); } return [exLength + start, completions]; }