Implement Ctrl-^ to switch to the most recently visible tab.#723
Implement Ctrl-^ to switch to the most recently visible tab.#723bronson wants to merge 1 commit into
Conversation
|
FWIW, my terrible attempts at writing tests (first by mocking views, second by actually trying to instantiate TextEditors) are here: https://github.com/bronson/vim-mode/commits/tab-motion-bad-tests Clearly I need help. :) |
|
I'm lightly reviewing vim-mode PRs and this one strikes me as having too
little to do with vim-mode.
|
|
Apologies in advance for this being little more than a 👍 -- but I'm in the camp that considers CTRL-^ (move to alternate buffer) essential in my vim usage. Since I don't know much about the goals of this plugin or the best practices for Atom package modularity, I'm wondering if someone could point out:
|
2 & 3) you could turn this PR into a plugin. The switching works great (in Atom 1.0 anyway, in theory it should still be fine). I got discouraged when I couldn't figure out how to test it. Feel free to ask questions. |
|
oops, didn't realize this PR was still open. closing! |
Implement Ctrl-^ to switch to the most recently visible tab.
Vim's docs claim:
Edit the alternate file. Mostly the alternate file is the previously edited file.However, experimentation shows that editing doesn't seem to matter. The alternate file actually appears to be the previously viewed file.Writing the feature was easy, but writing the tests has beaten me. @maxbrunsfeld, would appreciate a little guidance when you get a chance.
When mergeable, this should address #719