Shift-based text selection shortcuts don’t work in the integrated terminal (macOS keymap)

Hi JetBrains team,

Big fan of your IDEs - thank you for all your hard work!

I’m opening this ticket in the GoLand space because it is my primary IDE, but I believe the issue below relates to the terminal component shared across JetBrains IDEs.

Issue: Shift-based text selection does not work in the terminal

This issue has been bothering me for over a year. Text selection using Shift + arrow keys does not work as expected in the integrated terminal.

For example, suppose the terminal contains:

% git checkout my-branch

If I press Shift + Left Arrow, I get:

% git checkout my-branch;2D

In other words, ;2D is printed in the terminal.

Expected behaviour:
The last character (h) should be selected, with the caret moved to the position before it.

The same problem applies to other Shift-based selection shortcuts.

For example, if I press Command + Shift + Left Arrow, I get:

% git checkout my-branch[D

In this case, [D is printed in the terminal.

Expected behaviour:
The entire line should be selected, with the caret moved to the beginning of the line.

Because Shift-based selection shortcuts do not work, editing commands in the integrated terminal is quite inconvenient, and I frequently have to switch to an external terminal instead.

(optional) Additional suggestion: Open a file from the terminal in the editor

I often work with deeply nested projects and navigate between directories using the terminal. Once I’m in a particular directory, I sometimes want to quickly open one of its files in the IDE editor.

For example, suppose I’m currently in the foo directory, which contains:

blah.vue

It would be fantastic to have a command similar to VS Code’s CLI functionality that would let me run something like:

<command> blah.vue

and have blah.vue open directly in the current IDE window.

If functionality like this already exists, I’d appreciate being pointed in the right direction.

Thank you again for your work on the JetBrains IDEs. I hope the terminal shortcut issue can be considered and addressed in a future update.

0

Please sign in to leave a comment.