rodcloutier / Vintageous-Origami

Add Vim like pane management to Vintageous using SublimeText/Origami
45 stars 6 forks source link

ctrl+w, k/j #2

Closed jarodtaylor closed 11 years ago

jarodtaylor commented 11 years ago

Is it possible to implement the ability to navigate the windows using typical vi/vim commands like ctrl+w, k to go up or ctrl-w, j to go down? I see that we can go left or right with the ctrl+w, h/l.

Thanks for all the hard work.

jarodtaylor commented 11 years ago

I guess I could just add it to my Origami / Default (OSX).sublime-keymap file

:)

rodcloutier commented 11 years ago

It's already implemented. Its not working on your side?

jarodtaylor commented 11 years ago

I can move left and right but I cannot move up or down. I can with the super+k, down/up but not with ctrl+w, j/k

rodcloutier commented 11 years ago

Any of the other commands work? Like ctrl+w o (make current window the only one), ctrl+w x (custom close file in current window) or ctrl+w K (move file to upper window) ?

jarodtaylor commented 11 years ago

Hmm, nope. They don't do anything either. Weird.

rodcloutier commented 11 years ago

Are you using the plugin from package control? If so, can you try to install it as a git clone? I think Vintageous reloads after all the package control packages. I will look into this

jarodtaylor commented 11 years ago

Are you referring to the Vintageous plugin, or the Vintageous-Origami plugin?

rodcloutier commented 11 years ago

The setup that I have that currently works is both Vintageous and Vintageous-Origami installed as git clones in Packages directory. Correct me if I am wrong but I don't think Vintageous can be installed by Package Control.

jarodtaylor commented 11 years ago

Yeah, I think you're right. Although, I do have both Origami as well ast Vintageous-Origami installed. Maybe that's the problem?

rodcloutier commented 11 years ago

No. You must have both installed. Vintageous-Origami is a bridge between Vintageous and Origami

jarodtaylor commented 11 years ago

Okay, so I'll try to install the three of them as git repos, and let you know if anything changes. Thanks a lot for your work, and your help.

jarodtaylor commented 11 years ago

So I installed Vintageous-Origami using the git repo into ~/Library/Application Support/Sublime Text 3/Installed Packages but when I attempt to use :vs or :sp I get a Vintageous error:

http://i.imgur.com/xofMPmo.jpg

rodcloutier commented 11 years ago

Install it in the ~/Library/Application Support/Sublime Text 3/Packages beside your Vintageous directory. Isn't where you have you Vintageous directory? Git clone in Installed Packages do not load.

jarodtaylor commented 11 years ago

I installed both Vintageous and Origami (as well as your package) in the ~/Library/Application Support/Sublime Text 3/Installed Packages directory (as directed on the Vintageous git repo). I tried to move them to the Packages directory and nothing worked.

rodcloutier commented 11 years ago

Ok. I am working with the dev build. I will try a release setup tomorrow.

On Aug 11, 2013, at 23:58, Jarod Taylor notifications@github.com wrote:

I installed both Vintageous and Origami (as well as your package) in the ~/Library/Application Support/Sublime Text 3/Installed Packages directory (as directed on the Vintageous git repo). I tried to move them to the Packages directory and nothing worked.

— Reply to this email directly or view it on GitHub.

rodcloutier commented 11 years ago

Turns out that the package load order is different if you have a package file and git repositories. I reported a bug https://github.com/SublimeText/Issues/issues/130.

The solution with package loading was to rename Vintangeous Origami to VintageousOrigami to force loading after Vintageous.

Install in Packages using git clones, for both repositories, works fine.

I have submitted the changed in Package Control and waiting for the pull request to be merged.

I will close this issue once install from Package Control works fine.

jarodtaylor commented 11 years ago

Okay, so once all is resolved, I should go back to installing it via Package Control?

rodcloutier commented 11 years ago

Yes. You can now install both Vintageous and VintageousOrigami using Package Control.

jarodtaylor commented 11 years ago

Awesome! Thanks so much, Rod.

jarodtaylor commented 11 years ago

I'm not finding Vintageous in Package Control, but I'm assuming the git repo will work fine?

I'm still unable to use the :vs or :sp commands.

I installed Origami first through Package Control. Then I installed Vintageous via git repo Finally, I installed Vintageous-Origami via Package Control

I'm still getting

Vintageous: E492 Not an editor command. (:vs)

rodcloutier commented 11 years ago

You need to make sure you update your Package Control git clone. Before updating my Package Control I also couldn't see Vintageous.

The two configurations that I have tested and work are:

jarodtaylor commented 11 years ago

Wow, I was still on the python3 branch for Package Control. :/

I switched it to the master branch, pulled in about 250 commits, and everything works great now.

Thanks again for such a great plugin. Now I feel like I can go between vim and ST3 fairly seamlessly. Now if only we could get some of Tim Pope's goodies integrated! :P

Thanks again!