romaindalichamp / TerminalTabTailor

Intellij Plugin to rename automatically the tabs
https://plugins.jetbrains.com/plugin/23903-terminal-tab-tailor
Apache License 2.0
9 stars 0 forks source link

Override existing Action to replace Listener #11

Closed romaindalichamp closed 8 months ago

romaindalichamp commented 8 months ago

Context Until now, i used the Action Listener to detect when the action Terminal.OpenInTerminal is triggered and apply the plugin settings on the fly. While implementing issue #8 i found out user the listener implies to remove the terminal after it's creation before to focus the already existing terminal tab. This could lead to bugs. Overrinding the action RenameTerminalSessionAction made me realise it could make things more robust if i override the action of terminal creation to add the plugin logic.

There is 3 actions that could be overriden, i am not certain which one for now https://github.com/search?q=repo%3AJetBrains%2Fintellij-community%20.openTerminalIn&type=code