diff --git a/common/content/mappings.js b/common/content/mappings.js index 509cd23f..f81aaa62 100644 --- a/common/content/mappings.js +++ b/common/content/mappings.js @@ -482,6 +482,7 @@ var Mappings = Module("mappings", { args["-description"], Command.bindMacro(args, "-keys", function (params) params), { + arg: args["-arg"], count: args["-count"], noremap: args["-builtin"], persist: !args["-nopersist"], @@ -506,6 +507,10 @@ var Mappings = Module("mappings", { hereDoc: true, literal: 1, options: [ + { + names: ["-arg", "-a"], + description: "Accept an argument after the requisite key press", + }, { names: ["-builtin", "-b"], description: "Execute this mapping as if there were no user-defined mappings" diff --git a/common/locale/en-US/map.xml b/common/locale/en-US/map.xml index 9d3b319f..e4b6256f 100644 --- a/common/locale/en-US/map.xml +++ b/common/locale/en-US/map.xml @@ -114,11 +114,13 @@
+
-arg
Accept an argument after the requisite key press. Sets the arg parameter to the result. (short name -a)
-builtin
Execute this mapping as if there were no user-defined mappings (short name -b)
-
-count
Accept a count before the requisite key press (short name -c)
+
-count
Accept a count before the requisite key press. Sets the count parameter to the result. (short name -c)
-description
A description of this mapping (short name -d)
-ex
Execute rhs as an Ex command rather than keys (short name -e)
-javascript
Execute rhs as JavaScript rather than keys (short names -js, -j)
+
-literal=n
Parse the nth argument without specially processing any quote or meta characters. (short name -l)
-modes
Create this mapping in the given modes (short names -mode, -m)
-nopersist
Do not save this mapping to an auto-generated rc file (short name -n)
-silent
Do not echo any generated keys to the command line (short name -s, also <silent> for Vim compatibility)
diff --git a/common/modules/downloads.jsm b/common/modules/downloads.jsm index 5dbbc897..234028e2 100644 --- a/common/modules/downloads.jsm +++ b/common/modules/downloads.jsm @@ -7,7 +7,7 @@ Components.utils.import("resource://dactyl/bootstrap.jsm"); defineModule("downloads", { exports: ["Download", "Downloads", "downloads"], - use: ["io", "prefs", "services", "template", "util"] + use: ["io", "prefs", "services", "util"] }, this); Cu.import("resource://gre/modules/DownloadUtils.jsm", this); diff --git a/common/modules/finder.jsm b/common/modules/finder.jsm index 89fee398..45d98e24 100644 --- a/common/modules/finder.jsm +++ b/common/modules/finder.jsm @@ -7,7 +7,7 @@ Components.utils.import("resource://dactyl/bootstrap.jsm"); defineModule("finder", { exports: ["RangeFind", "RangeFinder", "rangefinder"], - use: ["prefs", "services", "util"] + use: ["services", "util"] }, this); /** @instance rangefinder */ @@ -242,6 +242,8 @@ var RangeFinder = Module("rangefinder", { }, options: function (dactyl, modules, window) { const { options, rangefinder } = modules; + const { prefs } = require("prefs"); + // prefs.safeSet("accessibility.typeaheadfind.autostart", false); // The above should be sufficient, but: https://bugzilla.mozilla.org/show_bug.cgi?id=348187 prefs.safeSet("accessibility.typeaheadfind", false); diff --git a/pentadactyl/NEWS b/pentadactyl/NEWS index 6eefd36b..1120da54 100644 --- a/pentadactyl/NEWS +++ b/pentadactyl/NEWS @@ -78,7 +78,9 @@ buffer. [b6] - Added :mapgroup command and -group flag to :map, :unmap, and :mapclear. [b6] + - Added -arg flag to :map. [b6] - :extensions has been replaced with a more powerful :addons. + - Added -literal flag to :command. [b6] - Added :cookies command. [b3] - :extadd now supports remote URLs as well as local files on Firefox 4. [b2] - Added :if/:elseif/:else/:endif conditionals. [b3]