-
-
Notifications
You must be signed in to change notification settings - Fork 651
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
feat: add initial session name to layout template #789
Conversation
WIP: prototyping for issue #611
I tried to implement the functionality as simple as possible. If this is ok, I'll add an e2e test. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thank you for taking the time submitting this pr!
This is already pretty good.
For now when we start a session with a name, then detach, and then start it again.
We get an error message.
Use attach command to connect to it or specify a different name.
I would personally prefer if either we could have an option to reattach or not
while already starting with the layout, or at least have the reattach the default option.
What do you think?
@a-kenji thank you for your review :) That part I didn't even think of! I totally agree your opinion. ---
session:
name: 'SESSION_NAME'
attach: true # default `true`. If session exists, re-attach. |
@jaeheonji |
While developing for The Here, my sudden thought is that it makes more sense(natural) to use the Because, accessing an existing session through the Sorry for the sudden change of opinion, but I'd like to ask your opinion on this 😄 |
Hey! While that is certainly true for now, the goal is merging the config file with the layout file in order to make it possible specifying any option on loading the layout. That of course can also just be the layout. I agree it would make the existing configuration of plugins pointless for that session, but because it already is running with that name I think it is safe to assume most of the layout, if not all would already be running. |
Oh.. Thank you for solving my question. The purpose seems to have become clearer :) |
@jaeheonji Apart from that I believe everything does work as expected! |
Thanks for review! @a-kenji |
* attach option only works when layout template exists.
@jaeheonji Thanks for the great work! |
@a-kenji Ok! I didn't understand.
Is this the behavior we expect? |
@jaeheonji |
Good! We all don't have to be sorry :) If the above is implemented, the length of the code will be longer and there will be many overlapping parts. (probably there will be many flows) So, I'll try the implementation once with refactoring. |
@jaeheonji |
Thank you all so much for considering using my refactor. It still has a bit confusing parts, so I really would welcome your suggestion! |
I added features (#789 (comment)) from the latest sources (refactored). please could you do a review? |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGMT!
@jaeheonji, |
This PR resolve #611
proposal
Instead of using
session_name
, asession
structure is used. (for future scalability)expected results
name
in thelayouts
.-s
flag andlayouts
are used together (likezeliij -s SOMTHING --layout-path SOME.yaml
), the flag of session name takes a priority.