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.
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 actionRenameTerminalSessionAction
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