fix: specify 'session:window' for set-option command in new_window function#116
fix: specify 'session:window' for set-option command in new_window function#116coffemugtester wants to merge 1 commit intojimeh:mainfrom
Conversation
KeithETruesdell
left a comment
There was a problem hiding this comment.
I made these changes manually locally and tested it with a tmuxifier load-window and a tmuxifier load-session command, the session would load the window that was previously defined. This works great for me. Thank you!
|
....so while using this fix, eveyrthing looks good....it works as intended where it will load windows that are defined and name them appropriately when you 'load-session'...BUT i just noticed that it is also renaming the window that I start on to be the same as the first window in that session. Something that needs to be played with a bit more, but I would still be ok with this, its better than an error. There could also be an issue with how I have things defined, though I don't think its any different than the examples. |
re: issue - session can't load window
tmuxifier load-session $session-layoutloads the windows specified in the layout --> expected behavior:tmuxifier load-session $session-layoutfails with message "no such window"; unless loading each window before loading the session --> current behaviorhow to reproduce:
create session layout and create window layout
load session.
looking at debug logs:
it seems like loading the window directly, associates the window to the current session,
but when loading the session, the window layout is sourced, the
set-optioncommand needs to specify$session:$window