Switching focus between editor and terminal in Kate

5.8k views Asked by At

When working in Unix with various programming languages I often use Kate as my primary editor. It has a really nice function of being able to open a built-in terminal window which is quite useful.

The problem is that switching back and forth to the terminal view using a mouse is quite a pain and I can't find any shortcuts for this. The only shortcut I could find is for closing the entire terminal (not just changing the focus). This is a bit annoying as it causes the text in the terminal window to get truncated (I think it's a known Kate bug).

Does anyone know a better shortcut?

4

There are 4 answers

2
dotancohen On BEST ANSWER

Note that the Kate bug has been fixed. The correct answer to this question is now F4.

1
ax. On

this is a bug in kate. possible workarounds: a) shift back by pressing Shift+Tab, b) try another shortcut (some do work). see also Bug 157496: Alt+[Key] shortcuts for menu items do not work.

0
Bennypr0fane On

Today (Kate v 22.08.2), it's Settings > Configure Keyboard Shortcuts > Type "terminal" in Search box > edit shortcut for "Focus Terminal Panel". For me, the default was Ctrl+Shift+ F4, while F4 hid the terminal. I swapped them because it's more convenient for me. The focus shift is only visible by appearance of the cursor changing slightly.

Screenshot of shortcut settings

0
ffddff On

There's a "Focus Terminal" shortcut in the "Configure shortcuts"

There you can set it up. F4 didn't work by default in my case and Shift+Tab worked only in one direction.