News for hackers. Stuff that matters.

Ask HN: App for quickly opening all files and windows necessary for a project

I remember some time ago I saw someone posting an App for quickly opening all files and windows necessary for a given project. You could, for instance, set it up so, with a single click, you would open your text editor, some terminal windows running a given command, photoshop, some folders, etc.

Does any of you remember what program is that or use some custom solution for the same issue?

It's a huge pain to have to do that every time, specially if you switch between multiple projects

( 9 comments | 12 points | on HN )
Re:Ask HN: App for quickly opening all files and windows nec... by photonios on Monday November 11, 2019 @03:51AM (#21503121)
I don't know the app you're talking about, but I solve this using persistent tmux sessions [1]. I use (Neo)Vim as my text editor, so it's just part of the tmux session. Each project has its own session.

I am aware that this doesn't really help you as your question seems to suggest you are not using an editor that can be run in the terminal.

[1] https://github.com/tmux-plugins/tmux-resurrect

Re:Ask HN: App for quickly opening all files and windows nec... by wingerlang on Monday November 11, 2019 @08:23AM (#21504614)
In macOS I've used Keyboard maestro for this. It allows you to define actions you can click in the menu bar as well.

You could also write a simple bash script to do it. If you also like this in the menu bar you can download BitBar which easily lets you put actions into the menu bar via python/bash/etc. I have a lot of stuff like this, very much as project overview and shortcut area.

Re:Ask HN: App for quickly opening all files and windows nec... by seanwilson on Monday November 11, 2019 @05:50AM (#21503721)
I write simple bash scripts for this that I put in my path e.g. if you type "project123" in the terminal, it will open the project in VS Code, open the git repo is SourceTree, open the API docs in Chrome, start the local server etc. Usually I make it close all those programs first as well so it's a clean slate.

Pretty simple and really flexible.

Re:Ask HN: App for quickly opening all files and windows nec... by AndreFvchs on Tuesday November 12, 2019 @02:59PM (#21517521)
Sounds awesome! Can you please share the bash script?
Re:Ask HN: App for quickly opening all files and windows nec... by seanwilson on Wednesday November 13, 2019 @09:23AM (#21524369)
Put a function in your bash profile script along the lines of this, where you open up everything you need for a project to going:

    function project123() {
      path=~/Documents/project123
      cd $path
   
      code $path # open IDE
      stree $path # open SourceTree

      chrome "localhost:8080"&
      gulp # Start local server
    }
Then just type "project123" in bash to run it. Create a new one for each project.
Re:Ask HN: App for quickly opening all files and windows nec... by thecupisblue on Monday November 11, 2019 @04:42AM (#21503351)
Re:Ask HN: App for quickly opening all files and windows nec... by eivarv on Monday November 11, 2019 @11:17AM (#21505999)
Don't know the specific solution you're talking about, but I'm currently making a mac app that handles this.

Open beta this winter.

https://cleave.app

Re:Ask HN: App for quickly opening all files and windows nec... by m3tr0s on Wednesday November 13, 2019 @02:28AM (#21521815)
It is probably Workspaces. It is quite limited though, I'm planning to set this up using Alfred on macOS which is using AppleScript under the hood.
Re:Ask HN: App for quickly opening all files and windows nec... by ta999999171 on Tuesday November 12, 2019 @01:24AM (#21511961)
You're probably talking about AutoHotKey.