TransWikia.com

How to stop marking while in tmux copy-mode?

Unix & Linux Asked by Shuzheng on February 15, 2021

I want to mark and copy text, and then stay in copy-mode with the marker off, permitting me to move up/down without marking new text (see below).

But after marking text and pressing space or y to copy it, the mark stays on, so that moving the cursor marks new text. How can I avoid that?

enter image description here

2 Answers

I encountered the same issue when I had tmux version 2.8 installed. I built the latest version (3.1b) from source on my Debian 10 machine and the issue seems to be resolved.

Answered by Zaid Gharaybeh on February 15, 2021

If you want to cancel the text selection in copy mode without yanking (copying to the buffer) the text press ESC. You should remain in copy mode at this point and be able to move the cursor and select other text or exit.

If you want to yank and exit, use Enter. This will yank the selected text and exit copy mode.

If you want to yank and remain in copy mode with the text still selected, y should do the trick.

Answered by 111--- on February 15, 2021

Add your own answers!

Ask a Question

Get help from others!

© 2024 TransWikia.com. All rights reserved. Sites we Love: PCI Database, UKBizDB, Menu Kuliner, Sharing RPP