-
Notifications
You must be signed in to change notification settings - Fork 11
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
Add keyword shortcuts to loop through NppGTags search results #13
Comments
Hi @pidgeon777 , Happy New Year! I didn't quite understand this request of yours, Could you please elaborate more? |
Hello, this is an example of NppGTags search results window: What I mean is to give the user a chance to browse through the search results through a combination of keyboard buttons, for example:
withouth clicking on the search results panel each time. The keyboard button combinations should be assignable through the Notepad++ hotkeys window. I wish you a successful new year, too! |
Hello @pidgeon777 , OK, and by
you mean actually visiting the location where the tag is found (as if you have clicked on |
Exactly. But, for a greater code browsing experience, in my opinion it would be better to select the next/previous search result so that:
A bonus would be something like this: be able to loop through each of the search result items, by automatically collapsing the other trees. For example, consider this starting situation: +Main.h when I select the next item with the keyboard combination it would become: +Main.h By doing so, the other results associated to the remaining trees would be hidden, for better readability. Maybe a user could decide to enable or not this behaviour through a dedicated option. But, as I repeat, this auto-collapsing tree function would just be the icing on the cake. |
Thanks for clarifying.
Isn't it the case when you click on the tag in the results window? So as far as I understood your suggestion is to simply be able to visit results without switching focus to results window at all + the current visited result to be shown in the results window (by highlighting the row). Correct me if I'm wrong. Perhaps you know it but just to mention that currently you can assign shortcut (through Notepad++ plugins shortcuts config) to NppGTags' So you can:
This kind-of does what you need IMO with the extra need to toggle the focus of course. |
Thanks for your reply, I've already thought about your proposed
So, 1-3 are three keystrokes for every action. A further shortcut to directly select Next/Previous search result would be much simpler and "user-friendly". Let's also consider that something like this would also integrate perfectly with the aforementioned suggestion. Let's consider a search for a definition: Results window could appear with this format: You can notice:
This is where my suggestion would be very useful: you select a keyword while coding, and the hotkeys Alt + Down/Up (for example) brings you exactly before or after the keyword you selected in the editor, moving the selection exactly on the other occurrence. What happens when you reach for example the end of the current file search result (line no. 3657)?: well, thanks to the new improvement you would go to the next occurrence of the following file, automatically collapsing (eventually) the previous tree, reaching this situation: This is my suggestion based on the actual implementantions of other editors where you need to frequently scan the search results, or simply navigate through the code. |
I agree it might be useful and that it's much more convenient for such work flow. |
It would be cool to have two customizable keyboard shortcuts which could be assigned to:
The NppGTags search results panel should show the actually selected item by highlighting the corresponding row at every activation of the shortcut (it already happens when manually clicking on the results).
The text was updated successfully, but these errors were encountered: