Open mlntr opened 3 months ago
Hello,
Thanks for the suggestion.
I've published v0.0.7, this adds a setting (vscode-toggle-terminal.listNames
) to display terminal name on (tooltip) hover.
VS Code's Status Bar Item API only supports String / MarkdownString tooltips, so unfortunately user interactions or multi-icon support (like the ones in your screenshot) is not possible at this moment.
Also, due to VS Code's Event API limitations, name might not update in some cases until there's some interaction - for ex. using the toggle, switching active terminals / creating new terminals, etc..
(This will be noticeable when opening applications in the terminal - for ex. If you open nvim
it'll still show bash
until there's some interaction.)
Unfortunate that there's an event API limitation, but still a useful feature imo even if it's not always live
Hopefully there will soon be multi-icon support - makes it easier especially to differentiate tasks that are running vs other terminal processes
btw a very minor bug: when switching the order of a terminal tabs, the position in the hover list doesn't change
Hi this is a nice little extension (I tried requesting a similar feature in VSCode but sadly didn't get enough support)
Currently hovering on the extension's icon shows "Toggle Terminal" in a popup:
If you open multiple terminals in VS Code, there will be an icon and name for each one:
I have an idea for an extra feature: It could be more useful if this extension showed this preview in the hover popup (maybe even allow user to click one in the popup if that's possible/not too much)