mirror of
https://github.com/gryf/pentadactyl-pm.git
synced 2026-01-06 13:04:12 +01:00
Add :pin and :unpin. Closes issue #344.
This commit is contained in:
@@ -960,7 +960,13 @@ var Dactyl = Module("dactyl", XPCOM(Ci.nsISupportsWeakReference, ModuleBase), {
|
||||
if (obj instanceof Command) {
|
||||
link = function (cmd) <ex>{cmd}</ex>;
|
||||
args = obj.parseArgs("", CompletionContext(str || ""));
|
||||
spec = function (cmd) cmd + (obj.bang ? <oa>!</oa> : <></>);
|
||||
spec = function (cmd) <>{
|
||||
obj.count ? <oa>count</oa> : <></>
|
||||
}{
|
||||
cmd
|
||||
}{
|
||||
obj.bang ? <oa>!</oa> : <></>
|
||||
}</>;
|
||||
}
|
||||
else if (obj instanceof Map) {
|
||||
spec = function (map) obj.count ? <><oa>count</oa>{map}</> : <>{map}</>;
|
||||
|
||||
Reference in New Issue
Block a user