zyedidia / micro

A modern and intuitive terminal-based text editor
https://micro-editor.github.io
MIT License
24.4k stars 1.16k forks source link

Why Ctrl+q kills the terminal ? Should we switch the behavior of Ctrl+q and Ctrl+Shift+q ? #3232

Closed harmin-parra closed 3 months ago

harmin-parra commented 3 months ago

Description of the problem or steps to reproduce

I realize the following key bindings behavior:

Can we switch these two key bindings ? Make Ctrl+q to exit micro and return to the terminal ?

Version: 2.0.13 Commit hash: 68d88b57 Compiled on October 21, 2023

Andriamanitra commented 3 months ago

Micro has no control over keybindings for your terminal. On my terminal emulator (and probably most others) pressing Ctrl-q in micro returns to terminal as you'd expect. You should check the manual for whichever terminal emulator you're using for instructions to change its keybindings.

harmin-parra commented 3 months ago

OK, got it, thanks for the reply.

The Ctrl+q binding is being handled by the terminal and not micro itself.