Results keyboard navigation, keyboard shortcuts and fixes
Hi,
Here's a bunch of features I added some time ago and would like to share, could be merged to master.
- mainly keyboard navigation of results with vim-like j/k and with page up/page down. Also watching selection change for highlighting result on mouse click, as a side effect navigation with arrows also works :)
- closing opened tabs/views with results with keyboard shortcut, I find it useful (["ctrl+l", "ctrl+x"])
- keyboard shortcut for rebuilding database (["ctrl+l", "ctrl+f"])
- fix for results such as the ones found in case statements ("case SYMBOL:") which were falling in the '(.*):$' regex. Changed in code and syntax file for Lookup Results
- on rebuilding the database, when none is found, set root path to the first path in project paths, even if there is more than one
- and if it has more than one treat the next ones as additional source dirs. Not 100% sure about use cases for that (except for mine), so made it an option, disabled by default
Hi @Filios92!! I meant to answer months ago and got way behind. So sorry about that. Thanks so much for the patch! I'll look through this now. =:)
Hey @Filios92 , I’m so sorry this has gone so long since I last looked at it. I really do appreciate the work you’ve done here. Unfortunately, I am not going to be able to contribute to this project anymore for the foreseeable future, and I’m not going to be able to work through this and get it included. Maybe @ameyp might be able to see this through to completion?
Also, would you be interested in helping to maintain this plugin long term? If so, please say so and maybe we can get you added as a contributor so you can merge this change in and help keep this little plugin chugging along? =:)
Again, I’m so sorry I can’t keep working with you on this PR. I definitely do not like leaving this halfway done but my hands are tied. =:(