1
0
mirror of https://github.com/gryf/pentadactyl-pm.git synced 2026-01-06 10:44:13 +01:00

Better handling of operations on list options with complex types. Closes #37.

This commit is contained in:
Kris Maglione
2015-04-25 12:48:31 -07:00
parent aee0c79752
commit 61df94e750
5 changed files with 16 additions and 6 deletions

View File

@@ -682,7 +682,6 @@ var Bookmarks = Module("bookmarks", {
context.format = history.format;
context.title = [/*L*/keyword + " Quick Search"];
context.keys = { text: "url", description: "title", icon: "icon" };
// context.background = true;
context.compare = CompletionContext.Sort.unsorted;
context.generate = function () {
let [begin, end] = item.url.split("%s");

View File

@@ -394,11 +394,12 @@ var CommandMode = Class("CommandMode", {
commandline.hideCompletions();
let result = this.command;
modes.delay(function () {
if (!this.keepCommand || commandline.silent || commandline.quiet)
commandline.hide();
if (!waiting)
this[this.accepted ? "onSubmit" : "onCancel"](commandline.command);
this[this.accepted ? "onSubmit" : "onCancel"](result);
if (commandline.messageCount === this.messageCount)
commandline.clearMessage();
}, this);

View File

@@ -953,7 +953,6 @@ var Dactyl = Module("dactyl", XPCOM(Ci.nsISupportsWeakReference, ModuleBase), {
// decide where to load the first url
switch (where) {
case dactyl.NEW_TAB:
if (!dactyl.has("tabs"))
return open(loc, dactyl.NEW_WINDOW);