tmux-yank icon indicating copy to clipboard operation
tmux-yank copied to clipboard

how i stop it always returning to the command prompt?

Open DaddyBigFish opened this issue 1 year ago • 5 comments

when im copying during scrolling back, it's always jumping back the the command prompt after exiting copy mode

how can i make it default to the CTRL+G ? without jumping back the commands?

DaddyBigFish avatar Nov 13 '24 01:11 DaddyBigFish

You can put set -g @yank_action 'copy-pipe' in your config file. Make sure it's before the run '~/.tmux/plugins/tpm/tpm' line if you installed with TPM, or run-shell ~/clone/path/yank.tmux if you installed manually.

returnDanilo avatar Nov 13 '24 06:11 returnDanilo

legend thank you :pray:

DaddyBigFish avatar Nov 13 '24 12:11 DaddyBigFish

I killed tmux and restarted with this setting but it still doesn't work. Using Alacritty with tmux 3.5. Yanking with y still brings the cursor back to the command prompt

ryands17 avatar Mar 27 '25 19:03 ryands17

I killed tmux and restarted with this setting but it still doesn't work. Using Alacritty with tmux 3.5. Yanking with y still brings the cursor back to the command prompt

Have you tried again after rebooting? Maybe you only closed a tmux session but the daemon kept running.

If it still won't work, try commenting out every other config and only having tmux-yank enabled; with set -g @yank_action 'copy-pipe' on the first line of the config file. (and reboot again) Maybe we can zero-in what is causing the problem.

Also, what OS version are you on? Will make it easier for me to reproduce.

returnDanilo avatar Mar 29 '25 07:03 returnDanilo

Is there anyway for it to copy the text, not move back to command but stop highlighting the text? So like I can just quickly scroll back and highlight something let go of the drag and it stop highlighting put in the clipboard but don’t return the cursor to command line? So far, I only achieved a highlight that just keeps highlighting and doesn’t stop highlighting when I let go of the mouse

DaddyBigFish avatar Mar 29 '25 09:03 DaddyBigFish