diff options
| author | mrmr1993 | 2017-10-24 19:30:02 +0100 |
|---|---|---|
| committer | mrmr1993 | 2017-10-27 20:34:55 +0100 |
| commit | 6fcfde0b561e43955ef35ea3a91ed483cedfff4f (patch) | |
| tree | cf3505b52f17e2e34de3cd39b9797a201b04305d /content_scripts/mode_normal.coffee | |
| parent | d330ebd648914802453fa1e818ef9dc52de739c8 (diff) | |
| download | vimium-6fcfde0b561e43955ef35ea3a91ed483cedfff4f.tar.bz2 | |
Move normal mode find commands into normal mode file
Diffstat (limited to 'content_scripts/mode_normal.coffee')
| -rw-r--r-- | content_scripts/mode_normal.coffee | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/content_scripts/mode_normal.coffee b/content_scripts/mode_normal.coffee index a7a8a8b6..652adc3c 100644 --- a/content_scripts/mode_normal.coffee +++ b/content_scripts/mode_normal.coffee @@ -100,6 +100,14 @@ NormalModeCommands = enterVisualLineMode: -> new VisualLineMode userLaunchedMode: true + enterFindMode: -> + Marks.setPreviousPosition() + new FindMode() + + # Find. + performFind: (count) -> FindMode.findNext false for [0...count] by 1 + performBackwardsFind: (count) -> FindMode.findNext true for [0...count] by 1 + root = exports ? (window.root ?= {}) root.NormalMode = NormalMode root.NormalModeCommands = NormalModeCommands |
