-
Notifications
You must be signed in to change notification settings - Fork 32
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
Enable 'Clear Console' key binding for all consoles (fixes #53) #51
Conversation
Currently on holidays, but change looks good to me, please merge if you like. |
I tested this.
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
See my comments about my manual test
I did verify it. |
What is the status here? At the verfy minimum manual rebase is needed. |
This needs a bit more cleanup work: Currently, this has a cyclic dependency due to the The console-related shortcuts should probably get their own category (defined in I'll clean that up but for post-M2 this is probably more than just a simple bugfix, so I suppose we will re-target this to 2023-06. |
Previously, in the 'Keys' preference page, binding a key to the 'Clear Console' command, would only affect process consoles, such as the 'Run as -> Java Application' console. It did not work in any other consoles. Solution: * Move the 'org.eclipse.debug.ui.commands.console.clear from org.eclipse.debug.ui to org.eclipse.ui.console. The ID is kept stable to not break any existing key bindings. The Category is changed to org.eclipse.ui.category.edit. * Set action defintion ID for the clear command to also show an active key binding in the context menu. * Enable the 'clear console' handler also in in the generic TextConsolePage.
Finally got around to follow up on this. Instead of creating a new 'Console' category with only a single command in it, I have used the 'Edit' category instead. This fits well with the other related commands such as 'Copy' or 'Select All' used in the console and belonging to that category as well. When at some point we add new commands to the console, we can then re-organize them into their own category. |
Note: even if this PR seem to be merged, it was merged after the base repository content was moved to https://github.com/eclipse-platform/eclipse.platform via eclipse-platform/eclipse.platform#524. Unfortunately the source was not moved right after move, which allowed this PR to be merged without issues. |
Previously, in the 'Keys' preference page, binding a key to the
'Clear Console' command, would only affect process consoles, such as
the 'Run as -> Java Application' console.
It did not work in any other consoles.
Solution:
Move the 'org.eclipse.debug.ui.commands.console.clear from
org.eclipse.debug.ui to org.eclipse.ui.console. The ID is kept stable
to not break any existing key bindings.
Set action defintion ID for the clear command to also show an active
key binding in the context menu.
Enable the 'clear console' handler also in in the generic
TextConsolePage.
Fixes: eclipse-platform/eclipse.platform#541