8000 jump motions (ctrl-o / ctrl-i) by garcg · Pull Request #397 · atom/vim-mode · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content
This repository was archived by the owner on Apr 6, 2018. It is now read-only.

jump motions (ctrl-o / ctrl-i) #397

Closed
wants to merge 1 commit into from
Closed

jump motions (ctrl-o / ctrl-i) #397

wants to merge 1 commit into from

Conversation

garcg
Copy link
Contributor
@garcg garcg commented Sep 1, 2014

I've been playing around with implementing jump motions, to jump back and forth between previous cursor positions.

It is not finished. Before going any further I would prefer to get some feedback whether this makes sense.

Basically, atom.workspace.vimState.jumpList will keep track of the history of cursor positions across buffers in the current workspace. Entries on this list are added when a jump-motion is executed (gg, G, /, and some other commands).
Then ctrl-o, ctrl-i is used to jump to older and newer positions, that could be in the same buffer, or in a different buffer - using atom.open in this case, to switch to the appropriate tab, or open the file if it was closed.

There are a few things pending, like creating an entry in the jumplist when switching buffers/tabs, which I'm not sure how to implement at the moment.

Any feedback on this? ideas?

@bronson
Copy link
Contributor
bronson commented May 25, 2015

It's too bad this issue never got any comments.

Jump mode (super necessary!) works great on my machine by installing the cursor-history package and sticking this in my keymap:

'atom-text-editor.vim-mode.command-mode':
  'ctrl-i': 'cursor-history:next'
  'ctrl-o': 'cursor-history:prev'

Near as I can tell, it's working 100%. It would be nice to integrate it into vim-mode but it probably needs a bit more cooking first.

@nathansobo nathansobo removed their assignment Aug 26, 2015
@dubiousdavid
Copy link

This is what I had to put in my keymap file for this to work:

'atom-text-editor.vim-mode.normal-mode':
  'ctrl-i': 'cursor-history:next'
  'ctrl-o': 'cursor-history:prev'

Difference being normal-mode instead of command-mode.

@rgkirch
Copy link
rgkirch commented Sep 24, 2016

Thank you for this solution. I'm glad that I have this feature now. I hope that it becomes a default feature soon.

@lee-dohm
Copy link
Contributor
lee-dohm commented Apr 5, 2018

As stated in the README, this package is no longer maintained and is deprecated. We recommend that people use the vim-mode-plus package instead. Because of this, we are archiving this repository and closing all issues and pull requests. Thanks very much for your support and contributions!

@lee-dohm lee-dohm closed this Apr 5, 2018
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

7 participants
0