ProjectMan🦸 is here! Add projects to favorites and open them from command line
Saurabh Daware 🌻

Saurabh Daware 🌻 @saurabhdaware

About: - JavaScript <3 - I make silly libraries - Building Abell, A new static-site-generator.

Location:
Bengaluru, India 🇮🇳
Joined:
May 31, 2019

ProjectMan🦸 is here! Add projects to favorites and open them from command line

Publish Date: Sep 5 '19
198 42

Alt Text

So I made an NPM package called ProjectMan.

ProjectMan is a project manager CLI which lets you add projects to favorites and open them from wherever you want using projectman open command.

I am lazy to type p r o j e c t m a n so there's an alias to command projectman which is pm so all ya sloths and pandas out there, you can even type pm <command>

Alt Text

The whole idea was, I hate to cd /till/the/project/path and then open the project in my favorite editor so using ProjectMan you can add projects to favorites with pm add and then open them from anywhere you want with pm open

npm install -g projectman to install ProjectMan and get started🦸

Alt Text

ProjectMan also provides some other commands like pm seteditor, pm remove and pm edit, You can read about them in ProjectMan Documentations

GitHub: https://github.com/saurabhdaware/projectman
NPM: https://npmjs.com/package/projectman

Hope you all will like it! Do star the repository if you liked it!

If there is anyone who needs help to get started with GitHub or wants to practice sending pull request I would be happy to help with this or any of my other repositories, you can reach out to me on my Twitter: https://twitter.com/saurabhcodes

Thank You for showing interest and reading this 🎉

Comments 42 total

  • Fulton Browne
    Fulton BrowneSep 5, 2019

    I will be using this, thanks for sharing it with the world!

  • Johannes Millan
    Johannes MillanSep 5, 2019

    First thought: I would make pm an alias for pm open.

    • Saurabh Daware 🌻
      Saurabh Daware 🌻Sep 5, 2019

      pm will actually list down all commands but there's an 'o' alias for open so you can actually type pm o and it will open projects.

      • Johannes Millan
        Johannes MillanSep 5, 2019

        Just wondering: What are you likely to want to do more often? :)

        • Saurabh Daware 🌻
          Saurabh Daware 🌻Sep 5, 2019

          Like in terms of projectman? It actually does make sense to have pm an alias for pm open I would like to have some more opinions on this so maybe we can have a discussion over it.

          also I'm sorry I guess I didn't get your question 😅.

          • Johannes Millan
            Johannes MillanSep 5, 2019

            I just thought if I use the app regularly, the command I'd probably need the most, would be the open command, while I likely only need to look up the commands a couple of times.

            Nice logo btw.!

            • Saurabh Daware 🌻
              Saurabh Daware 🌻Sep 5, 2019

              yeah agree! I'll put this up in the next minor version. Thanks for your suggestion 😊.

              and yeah I do graphic designing sometimes, Thanks! 🙈

  • Maciek Grzybek
    Maciek GrzybekSep 5, 2019

    Awesome stuff man :) I'll give it a test ride tomorrow :)

  • Hindemost-Woo
    Hindemost-WooSep 6, 2019

    Cool. I do something similar with eventghost, using doskey and python, I'm excited to dig into this tomorrow thanks

    • Saurabh Daware 🌻
      Saurabh Daware 🌻Sep 6, 2019

      oh cool can you share link of your project? and thank you for showing interest 🌻🌻

  • Mahdi Pourismaiel
    Mahdi PourismaielSep 6, 2019

    I love you.

  • Hammed Oyedele
    Hammed OyedeleSep 6, 2019

    I use z with zsh-autoauggest to jump to projects...will try this today and pm should list projects instead of having to type open again.

    • Saurabh Daware 🌻
      Saurabh Daware 🌻Sep 6, 2019

      I just checked out zsh-autosuggest, looks cool! and thanks for showing interest in projectman :D

  • Tanuj Nagpal
    Tanuj NagpalSep 6, 2019

    Ctrl+r opens up all workspaces for me on VSCode then I can fuzzy find between them.

    • Saurabh Daware 🌻
      Saurabh Daware 🌻Sep 6, 2019

      Yup, I use ctrl + r too! I made this to initially open projects before even opening vscode. So if I want to work on project2 and my last closed project is project1 I won't have to open vscode and see project1 then ctrl + r type project2 and press enter.

  • Francis Provost
    Francis ProvostSep 6, 2019

    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 that

    • Saurabh Daware 🌻
      Saurabh Daware 🌻Sep 6, 2019

      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.

      Also, Thank you so much for reading this!

      • Francis Provost
        Francis ProvostSep 6, 2019

        It would indeed be really hacky and hard to be cross-platform

    • Saurabh Daware 🌻
      Saurabh Daware 🌻Sep 13, 2019

      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)

  • Rashid Aziz
    Rashid AzizSep 6, 2019

    This is really cool! I'm having some trouble getting it working on a windows machine though, I'm getting some 'execution policy' security error - anyone else seeing this?

    • Saurabh Daware 🌻
      Saurabh Daware 🌻Sep 6, 2019

      Are you getting that error in pm add or pm edit command?
      Can you try uninstalling the package and

      npm install -g https://github.com/saurabhdaware/projectman#v1.1.0-rc.1
      

      It's beta version but I changed few things in how I treat settings.json
      Would be super helpful if you let me know if this works for you, Thanks!

  • Bartek Pacia
    Bartek PaciaSep 6, 2019

    Awesome idea! I was always using shell aliases to do that kind of stuff.

    • Saurabh Daware 🌻
      Saurabh Daware 🌻Sep 6, 2019

      Thank you so much 🌻 and yes even I love using cli to do almost everything 😂🕺

  • PHAT DANG MINH
    PHAT DANG MINHSep 6, 2019

    Thanks

  • Bogdan Calin
    Bogdan CalinSep 6, 2019

    How do you have such a beautiful terminal?

    • Saurabh Daware 🌻
      Saurabh Daware 🌻Sep 6, 2019

      are you talking about the .png ? oh its carbon.now.sh
      the .gif is my actual terminal which is just basic ubuntu terminal

  • Hoang Trinh
    Hoang TrinhSep 7, 2019

    Great tool. Thank you very much.

    Will you support Webstorm in a future release?

    • Saurabh Daware 🌻
      Saurabh Daware 🌻Sep 7, 2019

      You can pm edit and set commandToOpen value to wstorm and it will work even with this version :)

      • Hoang Trinh
        Hoang TrinhSep 7, 2019

        I love this flexibility :D

        • Saurabh Daware 🌻
          Saurabh Daware 🌻Sep 7, 2019

          Thank you! there are pretty cool things coming in next version btw! keep an eye on it's github :)

  • Chandra Dasari
    Chandra DasariSep 7, 2019

    Aw man this is gonna save me so much time writing the path to a project and searching where I left it. cheers for making this.

  • Nyan Myo Htet
    Nyan Myo HtetSep 9, 2019

    Nice idea. I really like it.
    👍👍👍👍

  • Héctor Macías
    Héctor MacíasSep 9, 2019

    I'll indulge my laziness once again. Nice!

  • Tiago Brito
    Tiago BritoSep 15, 2019

    Great work, started using it, what a great help. Thanks

Add comment