-
Notifications
You must be signed in to change notification settings - Fork 18
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
Configurable shorcuts #8
Comments
I have a request related to shortcuts. Please, add eclipse-way shortcut for "close Glance" and shortcut for "return focus to editor" or something like this. In my case things even worse - I have "ESC" mapped to "focus on editor" shortcut (borrowed from Qt Creator key mapping) and it conflicts with Glance's hardcoded shortcut. My proposal is to add 2 shortcuts that can be configured in eclipse-way:
Thanks. |
Implemented, now glance has configurable shortcuts (open/next,prev results/close). |
@EugenyLoy I mostly agree with your points. The only thing I don't like is to have more than one shortcut in the global space. Close Glance shortcut can be useful, but not so often to define one more global key sequince. When you need it you still can use CTRL+ALT+F, ESC. So what we have now are 1 global shortcut to open glance (CTRL+ALT+F) and 4 search panel shortcuts: next match (ENTER), prev match (SHIFT+ENTER), close (ESC), return focus back (CTRL+ALT+F). As you see, by default you can use the same shortcut to move focus to search panel and back to editor. While all shorcuts configurable you can simply bind close to another key sequence and use ESC for return focus back. |
@ystrot Sounds pretty solid to me. Waiting for new release:) |
Somewhat late to the party, but I definitely think that most of the shortcuts should be global. The user can always limit them in the settings. My usage pattern is quite simple. I want to iterate over all matches and edit some of them. The best I can do with the current shortcuts is this:
If shortcuts were global, I could do this much more smoothly:
Here I avoided the extra trip to the glance bar and back to go to the next match, as well as another trip to it so I can close it, and I can reuse Esc to both return to glance and close glance, since I can configure one to work in the glance context, and one in the window context from the Eclipse preferences. |
@max99x This use case makes sense, but there are no useful available shortcuts in the global scope. Looks like you're using F3 for find next which is used by Java editor by default. So if you want to use global scope you need to configure shortcuts for your needs anyway. I think we can try to allow using global scope for glance shortcuts. In this case you can change shortcut context in the Eclipse preferences. Currently our binding implementation is a bit tricky, that's why global scope doesn't work for glance shortucts. But we'll try to find another way to implement it. |
Thanks for the reply. I use Glance as replacement for the built-in Eclipse search, so it only makes sense to use the same shortcuts. Of course, not everyone does that, so the default shortcuts shouldn't conflict with Eclipse's. If Glance allowed shortcut scope to be configured in the preferences and was able to capture global keystrokes, I wouldn't care what the default is. |
Some shortcuts can't be configured, for example ENTER or SHIFT+ENTER. Need to define them in Eclipse-way.
The text was updated successfully, but these errors were encountered: