diff --git a/src/main/kotlin/app/termora/findeverywhere/QuickCommandFindEverywhereProvider.kt b/src/main/kotlin/app/termora/findeverywhere/QuickCommandFindEverywhereProvider.kt index ebe456b..e7883b0 100644 --- a/src/main/kotlin/app/termora/findeverywhere/QuickCommandFindEverywhereProvider.kt +++ b/src/main/kotlin/app/termora/findeverywhere/QuickCommandFindEverywhereProvider.kt @@ -15,6 +15,24 @@ class QuickCommandFindEverywhereProvider : FindEverywhereProvider { list.add(CreateHostFindEverywhereResult()) } + // Local terminal + list.add(ActionFindEverywhereResult(object : AnAction( + I18n.getString("termora.find-everywhere.quick-command.local-terminal"), + Icons.terminal + ) { + override fun actionPerformed(evt: ActionEvent) { + ActionManager.getInstance().getAction(Actions.OPEN_HOST) + ?.actionPerformed( + OpenHostActionEvent( + this, Host( + name = name, + protocol = Protocol.Local + ) + ) + ) + } + })) + // SFTP list.add(ActionFindEverywhereResult(object : AnAction("SFTP", Icons.fileTransfer) { override fun actionPerformed(evt: ActionEvent) { diff --git a/src/main/resources/i18n/messages.properties b/src/main/resources/i18n/messages.properties index 556df36..56eb60c 100644 --- a/src/main/resources/i18n/messages.properties +++ b/src/main/resources/i18n/messages.properties @@ -99,6 +99,7 @@ termora.find-everywhere.groups.open-new-hosts=Open a new host termora.find-everywhere.groups.opened-hosts=Opened hosts termora.find-everywhere.groups.tools=Tools termora.find-everywhere.groups.settings=${termora.setting} +termora.find-everywhere.quick-command.local-terminal=Local Terminal # Welcome termora.welcome.my-hosts=My hosts diff --git a/src/main/resources/i18n/messages_zh_CN.properties b/src/main/resources/i18n/messages_zh_CN.properties index 4f7a425..ffa0452 100644 --- a/src/main/resources/i18n/messages_zh_CN.properties +++ b/src/main/resources/i18n/messages_zh_CN.properties @@ -58,6 +58,7 @@ termora.find-everywhere.groups.open-new-hosts=打开新的主机 termora.find-everywhere.groups.opened-hosts=已打开的主机 termora.find-everywhere.groups.tools=工具 termora.find-everywhere.groups.settings=${termora.setting} +termora.find-everywhere.quick-command.local-terminal=本地终端 termora.settings.terminal=终端 termora.settings.terminal.font=字体 diff --git a/src/main/resources/i18n/messages_zh_TW.properties b/src/main/resources/i18n/messages_zh_TW.properties index b3903a4..ba40c21 100644 --- a/src/main/resources/i18n/messages_zh_TW.properties +++ b/src/main/resources/i18n/messages_zh_TW.properties @@ -57,6 +57,7 @@ termora.find-everywhere.groups.open-new-hosts=開啟新的主機 termora.find-everywhere.groups.opened-hosts=已開啟的主機 termora.find-everywhere.groups.tools=工具 termora.find-everywhere.groups.settings=${termora.setting} +termora.find-everywhere.quick-command.local-terminal=本地端 termora.settings.terminal=終端 termora.settings.terminal.font=字體