Hacker News new | past | comments | ask | show | jobs | submit login

I've been really wanting to auto store declarative pane layouts and default run commands for each project in a file and be able to recreate them programmatically to open / close a "project", like the Projects feature in Sublime.

For example, re-create a layout of multiple tabs with specific split panes for each project.

Previous attempts before this API were a struggle:

- You could almost do this with Saved Window Arrangements but not quite and there was no association to a project.

- You could also hack something with profiles if you're willing to make a profile for each project, but it still doesn't get you there.

- Bury Session is the closest which pretty much does what I want but it keeps all of the tabs running in the background. This can be a lot when you have 5-10+ tabs open each across multiple projects. No way to "sleep" a buried session that I could find.

- I also tried implementing it via the previous AppleScript API and it turned out to be a lot harder than expected to open "2 tabs with 3x2 split panes each and run commands x, y, z, ... in them". Then I called the AppleScripts via Python so I could template them more easily. I got about halfway there.




Nice, good idea. I've tried similar things (saved layouts for a project) using Tmuxinator[1], but since I don't normally use Tmux it didn't stick.

[1] https://github.com/tmuxinator/tmuxinator


I used to use itermocil[1] for this.

[1] https://github.com/TomAnthony/itermocil




Consider applying for YC's Spring batch! Applications are open till Feb 11.

Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: