-
Notifications
You must be signed in to change notification settings - Fork 5.3k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
IJPL-172124 Allow to listen for command search popup events
IJ-CR-148020 (cherry picked from commit d1a449823a5c68a5ca82f16c12ccb5d938e70e79) GitOrigin-RevId: 00b2cb07cb5e385f841ca6410a7893c911a03a4d
- Loading branch information
1 parent
5b1545a
commit f63b9b3
Showing
2 changed files
with
28 additions
and
0 deletions.
There are no files selected for viewing
18 changes: 18 additions & 0 deletions
18
plugins/terminal/src/org/jetbrains/plugins/terminal/block/history/CommandSearchListener.kt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
// Copyright 2000-2024 JetBrains s.r.o. and contributors. Use of this source code is governed by the Apache 2.0 license. | ||
package org.jetbrains.plugins.terminal.block.history | ||
|
||
import com.intellij.util.messages.Topic | ||
import org.jetbrains.annotations.ApiStatus | ||
import org.jetbrains.plugins.terminal.block.prompt.TerminalPromptModel | ||
|
||
@ApiStatus.Internal | ||
interface CommandSearchListener { | ||
fun commandSearchShown(promptModel: TerminalPromptModel) {} | ||
|
||
fun commandSearchAborted(promptModel: TerminalPromptModel) {} | ||
|
||
companion object { | ||
@Topic.ProjectLevel | ||
val TOPIC: Topic<CommandSearchListener> = Topic(CommandSearchListener::class.java, Topic.BroadcastDirection.NONE) | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters