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

Feature: ability to create layout file from current layout #381

Closed
wheresvic opened this issue Apr 26, 2021 · 10 comments
Closed

Feature: ability to create layout file from current layout #381

wheresvic opened this issue Apr 26, 2021 · 10 comments
Labels
action Issues related to actions good first issue Good for newcomers hacktoberfest For the hacktoberfest month help wanted Extra attention is needed layout issues related to the layout system

Comments

@wheresvic
Copy link

Hello and thank you for making Zellij! Looks awesome and I'm looking to start using it daily.

One thing that would certainly make my life easier is if I could configure zellij layout and then export the layout file so I have the same layout on my work system.

Cheers!

@a-kenji a-kenji added the action Issues related to actions label Apr 26, 2021
@a-kenji
Copy link
Contributor

a-kenji commented Apr 26, 2021

Thank you for the suggestion, this would be awesome!

@a-kenji a-kenji mentioned this issue Apr 26, 2021
21 tasks
@a-kenji a-kenji added the layout issues related to the layout system label Jul 1, 2021
@imsnif imsnif added good first issue Good for newcomers hacktoberfest For the hacktoberfest month help wanted Extra attention is needed labels Sep 25, 2021
@AjiBuster499
Copy link

Hi, I'm a CS student looking to get some Rust experience, and I would like to take this on, if that is okay. I think I know of a way to solve the issue at hand.

@AjiBuster499
Copy link

After reading through the code, I have a question.

This functionality looks like it's already in place in the DumpScreen action, but it's not set in the default config anywhere. Why is this?

My basic idea was to take the current layout residing in memory and just dump it to a file/stdin, but while looking for the holder of said layout, I found DumpScreen, which does exactly this, but it's not anywhere in the default.yaml as a keybind.

@a-kenji
Copy link
Contributor

a-kenji commented Jun 10, 2022

The DumpScreen action doesn't interact with the layout, it is a misnomer. It doesn't dump the screen, it dumps the content of the currently specified pane (not the screen) inside of a specified file. It is not bound by default, because it depends heavily on the usecase, if it is useful for you.

@vodrazka
Copy link

This would be awesome

@min2sia
Copy link

min2sia commented May 9, 2023

Just spent an hour trying to figure out how to lay out my current session with 3 tabs into a .kdl file :)
This export would come very handy.

@Lockszmith-GH
Copy link

Chiming in on this as well. This would be a great feature.

@franalbani
Copy link

Read https://zellij.dev/documentation/session-resurrection#session-files-in-the-cache and try find ~/.cache/zellij/ -iname '*.kdl'.

@Lockszmith-GH
Copy link

Almost there. Instead of automated, having it on-demand would be awesome.

I would prefer to have the auto-generate/caching feature turned off, and be able to call zellij with a command line action to that would dump the current layout into the file of my choice.

@imsnif
Copy link
Member

imsnif commented Dec 3, 2023

This is possible with zellij action dump-layout since 0.39, sorry - I still need to document it.

@imsnif imsnif closed this as completed Dec 3, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
action Issues related to actions good first issue Good for newcomers hacktoberfest For the hacktoberfest month help wanted Extra attention is needed layout issues related to the layout system
Projects
None yet
Development

No branches or pull requests

8 participants