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

Fix #7 #28 #31 Propose an option to automatically turn on logging for… #70

Conversation

tchinchow
Copy link

This is an attempt to fix #7 #28 and #31 by introducing a new @start-logging-with-new-session parameter to the tmux config.

When this parameter is set to "true" then logging.tmux will try to hook a call to start_logging.sh whenever a new session is spawned.

I had to move a handful of functions to scripts/shared.sh.

This patch has a drawback: when the hook is set, then start_logging.sh displays a message to indicate the log file and nothing happen until this message is cleared. It introduces a timeout at session start that may be a show-stopper for some users.
I don't know any elegant and efficient way of getting around this "bug".

…to automatically turn on logging for new panes
@tchinchow tchinchow closed this Jan 8, 2025
@tchinchow
Copy link
Author

Sorry about that.

As I'm starting to use this code for my deployments I'm now noticing a lot of side effects when launching programs headless in a detached session... (suspect characters output on the host shell, empty logs with detached sessions, etc...)

I'm therefore closing the pull request without merging it.

I may come back later with a better and more tested proposal.

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.

One line config in tmux.conf to turn "save-complete-history" always on?
1 participant