Skip to content

Allow overriding names of new windows and sessions. #107

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

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

scolby33
Copy link

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.

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
Copy link
Author

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant