mirror of
https://github.com/TermoraDev/termora.git
synced 2026-01-16 10:22:58 +08:00
feat: 支持在 Find Everywhere 中快速打开本地终端
This commit is contained in:
@@ -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) {
|
||||
|
||||
Reference in New Issue
Block a user