Sample Header Ad - 728x90

How to send Alt+1 to CLI when multiple tabs are open in gnome-terminal?

2 votes
0 answers
254 views
Both [ranger](https://ranger.github.io/) and the gnome-terminal use Alt + 1, Alt + 2 etc to switch to the corresponding tab. So if a gnome-terminal window only has one tab and ranger is open, then pressing Alt + 2 will go the second tab in ranger, but as soon as a second tab in the gnome-terminal window is open, ranger will no longer receive this command, it will always be captured by the gnome-terminal window. Now this issue could easily be resolved by changing one or the other keybindings, but I'd like to avoid that. Is there an alternative way to send the Alt + 1, Alt + 2 etc commands to ranger even if we have multiple tabs in our gnome-terminal while using the default keybindings in both programs? EDIT: I believe there was a similar issue in [this question](https://unix.stackexchange.com/questions/32552/how-to-bypass-gnome-terminal-when-sending-keyboard-input) , but maybe something has changed over the past 10 years.
Asked by flawr (145 rep)
Jun 9, 2022, 09:22 AM