From 2c634d9b2324c760007d59d5cafd97a364125991 Mon Sep 17 00:00:00 2001 From: Stephen Blott Date: Sat, 20 Feb 2016 09:44:57 +0000 Subject: Add `count` command option. Examples: map j scrollDown count=10 map q removeTab count=999 --- background_scripts/main.coffee | 2 ++ 1 file changed, 2 insertions(+) (limited to 'background_scripts/main.coffee') diff --git a/background_scripts/main.coffee b/background_scripts/main.coffee index 5601b20d..283fa454 100644 --- a/background_scripts/main.coffee +++ b/background_scripts/main.coffee @@ -573,6 +573,8 @@ checkKeyQueue = (keysToCheck, tabId, frameId) -> """ if runCommand + # Account for any command-option "count". + count *= registryEntry.options.count ? 1 if not registryEntry.isBackgroundCommand chrome.tabs.sendMessage tabId, name: "executePageCommand" -- cgit v1.2.3