mirror of
https://github.com/gryf/pentadactyl-pm.git
synced 2026-02-12 23:15:46 +01:00
Replace :abc, :comc, :mapc with :unab!, :delc!, :unmap!. Add bang to :styt, :delsty, ...
This commit is contained in:
@@ -636,14 +636,18 @@ var Styles = Module("Styles", {
|
||||
{
|
||||
name: ["dels[tyle]"],
|
||||
desc: "Remove a user style sheet",
|
||||
action: function (sheet) sheet.remove()
|
||||
action: function (sheet) sheet.remove(),
|
||||
}
|
||||
].forEach(function (cmd) {
|
||||
commands.add(cmd.name, cmd.desc,
|
||||
function (args) {
|
||||
dactyl.assert(args.bang ^ !!(args[0] || args[1] || args["-name"] || args["-index"]),
|
||||
"Argument or ! required");
|
||||
|
||||
args["-group"].find(args["-name"], args[0], args.literalArg, args["-index"])
|
||||
.forEach(cmd.action);
|
||||
}, {
|
||||
bang: true,
|
||||
completer: function (context, args) {
|
||||
let uris = util.visibleURIs(window.content);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user