-
Notifications
You must be signed in to change notification settings - Fork 30
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Implement vim previous and forward location shortcuts (Ctrl+O, Ctrl+I) between files #25
Comments
Oh, true. Shouldn't be too difficult to implement since you already can jump to other files using marks -- this will just make the jumplist global. |
Well, it seems it won't be easy to implement after all. Vim has jumplist for each window. In Qt Creator, each splits would need to have its own jumplist and that could get really complicated. I won't be doing this any time soon, so we'll have to live with Qt Creator's Alt+Left and Alt+Right to jump to old positions across multiple files. |
Hello! As temporary solution, I can suggest bind Ctrl+I Ctrl+O to user commands, in User Command Mapping, that will call GoBack and GoForward. Behaviour of this commands are similar to behaviour of VIM moving. But I've got another issue. When goes to another file, say by FollowSymbolUnderCursor, then I move cursor to some lines up or down, after this I can't go back. I use case, that I decripted above, when I type my User Command directly it doesn't works too. I use it on Windows 7. I have one more question, how do you debug this project? And if you don't have a time, can you say me, where can I start bug in code. Sorry, if my english is not clear. |
I don't use user commands in Qt Creator. If you want to debug Qt Creator behavior you will have to build it in debug mode (or perhaps just the plugin). This project is stand-alone library for Qt application and not plugin to Qt Creator though they share the same code base. I fix bug and implement features first for the plugin since there are automated tests and code review. |
Mmm. I've got it. So... thank you. I will take a look on QtCreator. |
I can't figure out how to map Ctr-O/Ctrl-I to QtCreator's "GoBack"/"GoForward". |
@sheinz You have to disable "Pass control key" in FakeVim configuration in Qt Creator. Alternatively you can also do |
I still haven't reached the desired behaviour.
And I reassigned "GoForward", "GoBack" and "FollowSymbol" in QtCreator to Now when I press Am I doing something wrong? Thanks |
@sheinz Try using |
@hluk Unfortunately |
@sheinz |
@ANtlord with |
@sheinz Hmm, have you found a solution for that? |
First, thank you for a great plugin!
Previous and forward shortcuts don't work when moving between files. You can reproduce it by go to definition outside from current file and then pushing Ctrl + O. You'll be moved to the beginning of a definition file, not to original file.
The text was updated successfully, but these errors were encountered: