Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open project in CLI #5

Closed
feitzi opened this issue Sep 6, 2019 · 5 comments
Closed

Open project in CLI #5

feitzi opened this issue Sep 6, 2019 · 5 comments

Comments

@feitzi
Copy link

feitzi commented Sep 6, 2019

Hi @saurabhdaware, very nice tool :)

Is it possible to add a way to jump directly in the CLI to the project root? So instead of open an IDE just jump to the project path in the current command line?

br

@feitzi feitzi changed the title Add CLI editor Open project in CLI Sep 6, 2019
@saurabhdaware
Copy link
Owner

I am not sure if I fully understood this, Do you mean having a command like pm jump which will be equivalent to cd /path/to/the/folder without actually opening them? I don't really think so it is worth having a different command for this since opening a project in IDE will also open their integrated terminals with the same path also I don't really want to flood projectman with too many features.

If you meant something else please do let me know. I am closing this for now in future if other people ask for this feature too then maybe I'll reopen this.

Thanks for creating issue do create issues if you have any other suggestions as well :D

closing this for now.

@feitzi
Copy link
Author

feitzi commented Sep 6, 2019

yes, exactly something like jump
Often I just want to search for something or execute a command within a project. Opening an IDE for them is mostly overkill.

@saurabhdaware
Copy link
Owner

For now, I guess I will keep this focused on opening and saving projects so maybe not now though thanks for your input 😄

@saurabhdaware saurabhdaware added the Needs discussion If something needs to be discussed or when need opinion on something label Sep 6, 2019
@saurabhdaware
Copy link
Owner

So I checked how we can implement this and apparently we can't simply use exec('cd path') since it runs commands in separate shell and the only way I found to achieve this is to create a shell script and then call that script from nodejs which would be super hacky to implement and will kind of ruin the scalability :(

@saurabhdaware saurabhdaware removed the Needs discussion If something needs to be discussed or when need opinion on something label Sep 7, 2019
@saurabhdaware
Copy link
Owner

cd $(pm path) added as an alternative for this in #9
Thank you for your suggestion @feitzi 🎉

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants