aboutsummaryrefslogtreecommitdiffstats
path: root/content_scripts/vimium_frontend.coffee
diff options
context:
space:
mode:
authormrmr19932017-10-24 19:30:02 +0100
committermrmr19932017-10-27 20:34:55 +0100
commit6fcfde0b561e43955ef35ea3a91ed483cedfff4f (patch)
treecf3505b52f17e2e34de3cd39b9797a201b04305d /content_scripts/vimium_frontend.coffee
parentd330ebd648914802453fa1e818ef9dc52de739c8 (diff)
downloadvimium-6fcfde0b561e43955ef35ea3a91ed483cedfff4f.tar.bz2
Move normal mode find commands into normal mode file
Diffstat (limited to 'content_scripts/vimium_frontend.coffee')
-rw-r--r--content_scripts/vimium_frontend.coffee11
1 files changed, 1 insertions, 10 deletions
diff --git a/content_scripts/vimium_frontend.coffee b/content_scripts/vimium_frontend.coffee
index 11c952ca..e5de01a3 100644
--- a/content_scripts/vimium_frontend.coffee
+++ b/content_scripts/vimium_frontend.coffee
@@ -438,9 +438,6 @@ selectFoundInputElement = ->
DomUtils.isDOMDescendant(findModeAnchorNode, document.activeElement))
DomUtils.simulateSelect(document.activeElement)
-performFind = (count) -> FindMode.findNext false for [0...count] by 1
-performBackwardsFind = (count) -> FindMode.findNext true for [0...count] by 1
-
getLinkFromSelection = ->
node = window.getSelection().anchorNode
while (node && node != document.body)
@@ -543,11 +540,6 @@ root.goNext = ->
nextStrings = nextPatterns.split(",").filter( (s) -> s.trim().length )
findAndFollowRel("next") || findAndFollowLink(nextStrings)
-# Enters find mode. Returns the new find-mode instance.
-enterFindMode = ->
- Marks.setPreviousPosition()
- new FindMode()
-
root.showHelp = (sourceFrameId) ->
HelpDialog.toggle {sourceFrameId, showAllCommandDetails: false}
@@ -575,8 +567,7 @@ root.Frame = Frame
root.windowIsFocused = windowIsFocused
root.bgLog = bgLog
# These are exported for find mode and link-hints mode.
-extend root, {focusFoundLink, selectFoundInputElement, performFind, performBackwardsFind, enterFindMode,
- focusThisFrame}
+extend root, {focusFoundLink, selectFoundInputElement, focusThisFrame}
# These are exported only for the tests.
extend root, {installModes}
extend window, root unless exports?