mirror of
https://github.com/TermoraDev/termora.git
synced 2026-01-15 18:02:58 +08:00
feat: clear terminal screen shortcut (#239)
This commit is contained in:
@@ -1,12 +1,14 @@
|
||||
package app.termora.actions
|
||||
|
||||
import app.termora.I18n
|
||||
|
||||
class TerminalClearScreenAction : AnAction() {
|
||||
companion object {
|
||||
const val CLEAR_SCREEN = "ClearScreen"
|
||||
}
|
||||
|
||||
init {
|
||||
putValue(SHORT_DESCRIPTION, "Clear Terminal Buffer")
|
||||
putValue(SHORT_DESCRIPTION, I18n.getString("termora.actions.clear-screen"))
|
||||
putValue(ACTION_COMMAND_KEY, CLEAR_SCREEN)
|
||||
}
|
||||
|
||||
|
||||
@@ -27,6 +27,7 @@ class KeymapTableModel : DefaultTableModel() {
|
||||
TerminalZoomOutAction.ZOOM_OUT,
|
||||
TerminalZoomResetAction.ZOOM_RESET,
|
||||
OpenLocalTerminalAction.LOCAL_TERMINAL,
|
||||
TerminalClearScreenAction.CLEAR_SCREEN,
|
||||
FindEverywhereAction.FIND_EVERYWHERE,
|
||||
NewWindowAction.NEW_WINDOW,
|
||||
TabReconnectAction.RECONNECT_TAB,
|
||||
|
||||
@@ -333,6 +333,7 @@ termora.actions.zoom-reset-terminal=Reset Terminal Zoom
|
||||
termora.actions.open-local-terminal=Open Local Terminal
|
||||
termora.actions.open-find-everywhere=Open FindEverywhere
|
||||
termora.actions.open-new-window=Open new Window
|
||||
termora.actions.clear-screen=Clear Terminal Screen
|
||||
termora.actions.switch-tab=Switch to specific Tab [1..9]
|
||||
|
||||
# Terminal
|
||||
|
||||
@@ -325,6 +325,7 @@ termora.actions.zoom-reset-terminal=重置终端缩放
|
||||
termora.actions.open-local-terminal=打开本地终端
|
||||
termora.actions.open-find-everywhere=打开全局查找
|
||||
termora.actions.open-new-window=打开新窗口
|
||||
termora.actions.clear-screen=清除终端屏幕
|
||||
termora.actions.switch-tab=切换到特定标签页 [1..9]
|
||||
|
||||
# zmodem
|
||||
|
||||
@@ -306,6 +306,7 @@ termora.actions.zoom-reset-terminal=重置終端縮放
|
||||
termora.actions.open-local-terminal=開啟本地終端
|
||||
termora.actions.open-find-everywhere=開啟全域搜尋
|
||||
termora.actions.open-new-window=開啟新視窗
|
||||
termora.actions.clear-screen=清除終端機螢幕
|
||||
termora.actions.switch-tab=切換到特定分頁 [1..9]
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user