jimeh / tmuxifier

Tmuxify your Tmux. Powerful session, window & pane management for Tmux.
MIT License
1.24k stars 107 forks source link

Allow overriding names of new windows and sessions. #107

Open scolby33 opened 3 months ago

scolby33 commented 3 months ago

This changeset modifies tmuxifier-load-window and tmuxifier-load-session to accept an optional argument that sets the name of the new window or session, overriding the default from the configuration file (or its name).

This also required small changes to the new_window() and initialize_session() functions in order to respect the $window and $session variables, respectively, which were already set by the calling load_window() and load_session() functions, but were ignored.

scolby33 commented 3 months ago

I have not updated the completions because:

  1. I don't know how
  2. I don't think it's necessary, since the overridden names are fully user-provided and can't be guessed