Description
I'm having trouble with basic terminal functionality in Eclipse. I originally filed eclipse-platform/eclipse.platform.ui#805, but they said to file a ticket here.
I'm using Eclipse EE 2023-06 RC1 on Windows 10. I wanted to map the keypress Ctrl+1
so that I could switch back to the editor when typing in a terminal view.
- I went to Keys in the Preferences.
- I made a copy of the "Activate Editor" command.
- I set "Binding" to
Ctrl+1
. - I set "When" to "In Terminal View".
- I opened a Git Bash terminal (by right-clicking on a project and then Show in Local Terminal > Git Bash.
- I pressed
Ctrl+1
.
I expected this to take me to the editor. But instead it entered a 1
in the terminal.
If I close the Git Bash tab and click on the "Terminal" view tab itself, then Ctrl+1
takes me to the editor. However this misses the point.
The interface in general seems buggy. Sometimes when I open a terminal, it wraps at 80 characters! But then I do this:
Right-Click
> Maximize View. (maximizes the view)Right-Click
> Maximize View. (unmaximizes the view)
Suddenly the terminal no longer wraps at 80 characters; it wraps at the edge of the view, as desired.
And finally I found a sequence of events to force the accelerator keys to be recognized in the terminal (but only temporarily).
- Open a terminal view tab (e.g. by right-clicking on a project and then Show in Local Terminal > Git Bash.
- Open another a terminal view tab. (At this point the 80-column wrapping bug suddenly presents itself.)
- Close one of the terminal view tabs.
Now the accelerator key Ctrl+1
(see above) suddenly works! I can be typing in the terminal, and when I press Ctrl+1
it takes me to the editor instead of entering 1
in the terminal.
However when I click back on the terminal, suddenly Ctrl+1
stops working again.