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

how i stop it always returning to the command prompt? #181

Open
DaddyBigFish opened this issue Nov 13, 2024 · 5 comments
Open

how i stop it always returning to the command prompt? #181

DaddyBigFish opened this issue Nov 13, 2024 · 5 comments

Comments

@DaddyBigFish
Copy link

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?

@returnDanilo
Copy link

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.

@DaddyBigFish
Copy link
Author

legend thank you 🙏

@ryands17
Copy link

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

@returnDanilo
Copy link

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.

@DaddyBigFish
Copy link
Author

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

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

No branches or pull requests

3 participants