aboutsummaryrefslogtreecommitdiff
path: root/atom/packages/vim-mode/lib/motions/move-to-mark-motion.coffee
diff options
context:
space:
mode:
authorBen Beltran <ben@nsovocal.com>2019-03-14 23:19:58 +0100
committerBen Beltran <ben@nsovocal.com>2019-03-14 23:19:58 +0100
commitb009b50e81b6c1d0d691505b5f5c0418f559bfc0 (patch)
tree5fae800e76219eba28634cb236565f9b4bb7a2f7 /atom/packages/vim-mode/lib/motions/move-to-mark-motion.coffee
parent4efcafab7f0aa454f9ebe767133654bc9f44e12c (diff)
Remove Atom config
Diffstat (limited to 'atom/packages/vim-mode/lib/motions/move-to-mark-motion.coffee')
-rw-r--r--atom/packages/vim-mode/lib/motions/move-to-mark-motion.coffee23
1 files changed, 0 insertions, 23 deletions
diff --git a/atom/packages/vim-mode/lib/motions/move-to-mark-motion.coffee b/atom/packages/vim-mode/lib/motions/move-to-mark-motion.coffee
deleted file mode 100644
index 3603e1e..0000000
--- a/atom/packages/vim-mode/lib/motions/move-to-mark-motion.coffee
+++ /dev/null
@@ -1,23 +0,0 @@
-{MotionWithInput, MoveToFirstCharacterOfLine} = require './general-motions'
-{ViewModel} = require '../view-models/view-model'
-{Point, Range} = require 'atom'
-
-module.exports =
-class MoveToMark extends MotionWithInput
- constructor: (@editor, @vimState, @linewise=true) ->
- super(@editor, @vimState)
- @operatesLinewise = @linewise
- @viewModel = new ViewModel(this, class: 'move-to-mark', singleChar: true, hidden: true)
-
- isLinewise: -> @linewise
-
- moveCursor: (cursor, count=1) ->
- markPosition = @vimState.getMark(@input.characters)
-
- if @input.characters is '`' # double '`' pressed
- markPosition ?= [0, 0] # if markPosition not set, go to the beginning of the file
- @vimState.setMark('`', cursor.getBufferPosition())
-
- cursor.setBufferPosition(markPosition) if markPosition?
- if @linewise
- cursor.moveToFirstCharacterOfLine()