Closed gowerc closed 1 year ago
Hi!
I don't want to change existing variables, that would affect existing users. I made a new, relative {{folderpath}}
variable, locally. Would you test if this is adequate for you? Here's the new build: main.zip.
Heya,
Apologies for not getting back sooner, I ended up going with a different extension to get the functionality I was after. I guess feel free to close the issue if you no longer wish to implement this, if so apologies for wasting your time !
If there's no demand, I'll close it for now. What extension did you go with?
I ended up going with "Shell commands" and mapping the command open folder in vscode
in the quick menu to:
PATH=$PATH:/usr/local/bin:/usr/bin/code ; code {{folder_path:absolute}}
for mac
and
xdg-open vscode://file/{{folder_path:absolute}}
for linux
Hi,
Would it be possible to add in a variable for the folder of the currently opened file? A common use case I have that I have a file open in a directory and actually I want to open that whole directory (not the whole vault) in VScode. I think this could easily be done by splitting out
{{filepath}}
into{{path}}/{{file}}
(if possible)