在 Kate 中在编辑器和终端之间切换焦点
当在 Unix 上使用各种编程语言工作时,我经常使用 Kate 作为我的主要编辑器。 它有一个非常好的功能,可以打开内置的终端窗口,非常有用。
问题是使用鼠标来回切换到终端视图非常痛苦,而且我找不到任何快捷方式。我能找到的唯一快捷方式是关闭整个终端(而不仅仅是改变焦点)。这有点烦人,因为它会导致终端窗口中的文本被截断(我认为这是一个已知的 Kate bug)。
有谁知道更好的捷径吗?
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?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(5)
请注意,Kate bug 已已修复。现在这个问题的正确答案是
F4
。Note that the Kate bug has been fixed. The correct answer to this question is now
F4
.“配置快捷方式”中有一个“焦点终端”快捷方式,
您可以在那里进行设置。在我的情况下,F4 默认不起作用,Shift+Tab 只能朝一个方向起作用。
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.
这是 kate 中的一个错误。可能的解决方法:a) 按 Shift+Tab 向后移动,b )尝试另一个快捷方式(有些确实有效)。另请参阅错误 157496:菜单项的 Alt+[Key] 快捷键不起作用 。
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.
今天(Kate v 22.08.2),是
设置>配置键盘快捷键>在搜索框中输入“终端”>
编辑“焦点终端面板”的快捷方式。
对我来说,默认是 Ctrl+Shift+F4,而 F4 隐藏了终端。
我交换了它们,因为这对我来说更方便。
仅通过光标外观略有变化才能看出焦点移动。
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.
Defocus Terminal
操作的默认F4
快捷方式(打开终端,然后按下F4
在文本编辑器和终端之间切换焦点)可以替换为 < code>Show Terminal 操作显示/隐藏终端面板。这样,F4
将起到显示/隐藏终端面板切换的作用。就像Dolphin
KDE 文件管理器一样。设置:
设置
->配置键盘快捷键
显示终端
搜索F4
快捷键。确认此快捷方式将覆盖“散焦终端”快捷方式。或者,如果您想保留F4
的默认行为,请选择其他快捷键。Defocus Terminal
action's defaultF4
shortcut (which opens terminal, then with nextF4
presses switches focus between text editor and terminal) can be replaced onShow Terminal
action which shows / hides terminal panel. In this wayF4
will be working as showing / hiding terminal panel toggle. Like inDolphin
KDE file manager.To setup:
Settings
->Configure Keyboard Shortcuts
show terminal
F4
shortcut. Confirm that this shortcut will override 'Defocus Terminal' shortcut. Or choose some other shortcut if you want to keep default behavior forF4
.