So from nodejs I am calling exec('code /path/project') to open project so similar thing will not work for cd as it is executed in the separate shell. So apparently to achieve something that you mentioned I would have to write a shell script and somehow call it from nodejs which would be super hacky way of doing it.
Hi, In v1.2.0 I added the ability to cd to the folders. You can substitute pm getpath command inside cd and it will show you list of projects and you can select and cd to it. Usually it is cd $(pm getpath) or cd $(pm gp) or cd $(pm gp [projectName]) (It won't really cd till the folder when you pm open though)
For further actions, you may consider blocking this person and/or reporting abuse
We're a place where coders share, stay up-to-date and grow their careers.
Nice idea! Good job! 💪
It would be nice if, when you open a project, it
cd
to the folder too maybe with an argument or something like thatSo from nodejs I am calling
exec('code /path/project')
to open project so similar thing will not work forcd
as it is executed in the separate shell. So apparently to achieve something that you mentioned I would have to write a shell script and somehow call it from nodejs which would be super hacky way of doing it.Also, Thank you so much for reading this!
It would indeed be really hacky and hard to be cross-platform
Hi, In v1.2.0 I added the ability to cd to the folders. You can substitute
pm getpath
command insidecd
and it will show you list of projects and you can select and cd to it. Usually it iscd $(pm getpath)
orcd $(pm gp)
orcd $(pm gp [projectName])
(It won't really cd till the folder when youpm open
though)