Open tjx666 opened 2 years ago
@tjx666 what file/folder are you wanting to reveal?
@tjx666 what file/folder are you wanting to reveal?
just terminal current location, same with shell command pwd
. With shell integrated, this info shoulud be access.
Good idea, will see if we can get to it for July
We could expose a few things here with the cwd similar to the explorer:
The context menu could have a section on external (OS or workbench component) integration, I'm thinking the following options:
Reveal in Explorer
<- vscode's explorerReveal in File Explorer/Finder
Open in External Terminal
Opening up for contributions, here are some steps to implement:
1: Create new commands that open explorer, OS explorer and external terminal based on the terminal's current working directory.
These commands should support getting contextual instances via the getSelectedInstances2
function:
2: Hook up the context menu entries to the TerminalInstanceContext
and TerminalEditorInstanceContext
menus
Support for InstanceContext
may need to be added for this, see references to that symbol for how it works:
3: Hook up context menu entries to the TerminalTabContext
menu
4: Create a shell integration active context key and make sure the commands are disabled when it's not active
terminal menu context:
And shortcut:
@Tyriar