fabiospampinato / vscode-open-in-application

Open an arbitrary file in its default app, or the app you want.
MIT License
19 stars 0 forks source link

Open selected path in application #16

Open FreeHarry opened 2 years ago

FreeHarry commented 2 years ago

Please, support the possibility to open-in-application from a selected path in the editor.

fabiospampinato commented 2 years ago

What do you mean? Like right-clicking a path embedded in the editor?

A screenshot could be helpful.

FreeHarry commented 2 years ago

Yes, you have an embedded path in the editor as you can see on the picture...

2022-02-16_10-06-14--Code

This path can be of any type (txt, html, ...). Via context menu entry you can open it. If there is a selection in the editor interpret it as the path and try to open it in default app. If there is no selection try to extract it from the current cursor location.

Path can be a file path or a directory. If it is a directory open it in the file manager.

Supporting of environment variables and relative paths (e.g. relative to the current editor or workspace) would be also great.