tmux-plugins / tmux-logging

Easy logging and screen capturing for Tmux.
MIT License
1.05k stars 114 forks source link

capture screen does not work #22

Open pinggit opened 6 years ago

pinggit commented 6 years ago

I configured: set -g @screen-capture-path '$HOME/tmux-logs'

and when I press prefix-alt-p, I do see: 'Screen capture saved to $HOME/tmux-logs/tmux-screen-capture-work-2-1-20180218T115701.log'

but, I can not find that file.

wired that I remember I saw it once, but under home folder, but after I remove it, I never see screen capture files anywhere...

bedge commented 5 years ago

I'm trying to set the same thing. The command you're using doesn't seem to have any affect.

After executing:

set -g @screen-capture-path '$HOME/logs/tmux'

Then hitting & alt-shift-p, I see:

History saved to /Users/bedge/tmux-history-a-infor-1-1-20190525T075004.log

I'd also like to know what variable I need to set to change this.

Kr1ss-XD commented 5 years ago

I think I can help here.

Since you both used single quotes, the $HOME variable is not being expanded, i.e. the file is written to $HOME/logs/tmux -relative to your current working directory-, rather than to /home/<username>/logs/tmux, what you probably want it to.

So you should be fine if you omit the single quotes or (better !) replace them with double quotes.

EDIT : @bedge - btw, just noticed that you pressed the key combination for save-complete-history, but the path you were setting is for screen-capture. The default combination for this is alt+p (without shift).

bedge commented 5 years ago

I looked into this more, and the start_logging doesn't source the variable.sh. So it's not apparently intended to be called directly. I addressed this in my PR.

...and, yes, the single quotes were a problem 👍

KorpoleRithika0x1 commented 10 months ago

we should close this issue now Ig