From 2128ef3a4b6bb989323200578b230dfb1e178c2e Mon Sep 17 00:00:00 2001 From: Stephen Blott Date: Tue, 13 Feb 2018 14:43:25 +0000 Subject: Make the reload command accept a count. Move the `reload` command to the background page and make it accept a count prefix. Fixes #674. Althought the demand for this is low and the use cases limited, it is a very vim-ish extension to the existing command. --- content_scripts/mode_normal.coffee | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) (limited to 'content_scripts') diff --git a/content_scripts/mode_normal.coffee b/content_scripts/mode_normal.coffee index 1fe0618e..0cfcfc66 100644 --- a/content_scripts/mode_normal.coffee +++ b/content_scripts/mode_normal.coffee @@ -59,10 +59,7 @@ NormalModeCommands = scrollLeft: (count) -> Scroller.scrollBy "x", -1 * Settings.get("scrollStepSize") * count scrollRight: (count) -> Scroller.scrollBy "x", Settings.get("scrollStepSize") * count - # Page state. - reload: (count, options) -> - hard = options.registryEntry.options.hard ? false - window.location.reload(hard) + # Tab navigation: back, forward. goBack: (count) -> history.go(-count) goForward: (count) -> history.go(count) -- cgit v1.2.3