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鈥檒l occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add ability to open/resume project layout by emacs /path/to/project/ #5431

Closed
a13ph opened this issue Mar 9, 2016 · 4 comments
Closed

Add ability to open/resume project layout by emacs /path/to/project/ #5431

a13ph opened this issue Mar 9, 2016 · 4 comments
Labels
- Mailling list - Feature request stale marked as a stale issue/pr (usually by a bot)

Comments

@a13ph
Copy link

a13ph commented Mar 9, 2016

馃挰 March 10, 2016 12:31 AM

what sublime/atom do if you use subl . or atom . They open up the project in the current dir in a new frame with all the tabs/splits restored

suggested by @calebmeyer and @aaronkavlie-wf

@syl20bnr
Copy link
Owner

syl20bnr commented Mar 9, 2016

For people wanting to give this a try, Spacemacs provides the building blocks to do this with layouts which can be saved and restored manually.

@calebmeyer
Copy link

Note that in subl/atom terminology, you have a window (emacs frame) which contains tabs (roughly emacs buffers) and splits (which sort tabs into roughly emacs windows). So I misspoke when I called them frames in those two.

However, this is a pretty common ask for editors (see for example Tim Pope's vim-obsession). My personal use case:
I have a number of projects (in folders, usually version controlled) which I can switch to with projectile (on SPC p h). When I open a project via projectile (or the command line emacs . in the folder), I'd like to have all of the above restored automatically.

@syl20bnr
Copy link
Owner

A first step would be to be able to identify layouts with an associated project. A simple way to do this would be to add a prefix to be name of the project layouts, could be a tilde for instance.
The we add some hooks to save the layouts.
In the end we add a key binding/action/universal prefix/prompt/dotfile variable to enable this behaviour.

@github-actions
Copy link

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Please let us know if this issue is still valid!

@github-actions github-actions bot added the stale marked as a stale issue/pr (usually by a bot) label Feb 29, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
- Mailling list - Feature request stale marked as a stale issue/pr (usually by a bot)
Projects
None yet
Development

No branches or pull requests

3 participants