Embedded Terminal Key

I've recently started using PyCharm and am very happy with it but I have one fairly major problem with it. I've been using emacs keybindings, which has made my transition very quick and easy, but it also introduces a fairly major problem. When working with the embedded terminal all the PyCharm keybindings still apply including anything that's bound to Ctrl-X, which makes working with any editor basically impossible since nano, pico and emacs -nw all use that command for closing the editor.

Is there some way to get the embedded terminal to ignore the global keybindings or will I have to change them?
3
7 comments
Official comment

Hi Toy Haagend Wang 

In Emacs default mapping there is a keymap for Ctrl + X 

From  Settings | Keymap you can remove this mapping if it is causing you inconvenience.

Also please do note the right side search icon (magnifying glass icon) where you can search any mapped shortcut.

I hope this helps, but If any further questions, or if the issue is different I would advise to open a new IJPL case in youtrack as this issue is over 12 years old so would be better to have a ticket with new logs and information of the behaviour you are facing in recent versions of the IDE.

 

Kind regards,

Avatar
Permanently deleted user

Is there a solution to this yet? I have just encountered the same problem in CLion.

0

There's an option to override IDE shortcuts in [File | Settings | Tools | Terminal], please try tinkering with it.

0
Avatar
Permanently deleted user

Andrey Resler I tried with both "Override IDE Shortcuts" on and off, and unfortunately it didn't work in either case.

0

Unfortunately I could not reproduce the issue - e.g. I can close nano editor from the console with Ctrl+X in all scenarios. 

I assume the issue is specific to your OS/environment. Please submit an issue to https://youtrack.jetbrains.com/issues and provide detailed description, including [IDE logs](https://intellij-support.jetbrains.com/hc/en-us/articles/207241085-Locating-IDE-log-files)

Also I would suggest to install IntelliJ IDEA and test with it - if reproduced, it's better to report the issue in IDEA project.

0

I've been running into similar issues too. It happened in my Intellij IDEA Ultimate 2025.1.1.1 on macOS Sequoia 15.5 (ARM). 

I noticed that once I switch the Keymap in Settings to mappings other than “Emacs” (say “macOS”, it's the one I tested with), I was able to input C-x into emacs (running in terminal) perfectly instead of intercepted by the IDE. So i'm guessing it's a “Emacs” mapping specific problem.

On a side note I've also searched through the Keymap “Emacs” shortcuts and wasn't able to find what “C-x, C-x” was bound to, yet when i performed “C-x, C-x” when focus was on terminal it effectively closed the current terminal tab. I feel like maybe there's just some keybindings that are not listed in the Settings Keymap nor can they be modified, which sucks a bit ig. 

0

Hi Ervis Velika, Thanks for the reply! Your suggestion of removing that keymapping did help with eliminating the closing terminal tab behaviour. However alas after that I was still not able to properly close emacs in terminal via C-x, C-c with IDEA's Emacs keymapping. Also strangely if the Swap Selection Boundaries is mapped to other keybindings (say Cmd-x, i tried this under Emacs keymapping) the new keybindings do not perform the same terminal tab closing behaviour that the old keybinding (C-x, C-x) does, which is kind of weird but functionally does not bother me though. I've opened a new issue in YouTrack as you've suggested, which is here IJPL-191094 

0

Please sign in to leave a comment.