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

Feature: Toggle line selection #2840

Closed
neightchan opened this issue Aug 21, 2021 · 5 comments
Closed

Feature: Toggle line selection #2840

neightchan opened this issue Aug 21, 2021 · 5 comments

Comments

@neightchan
Copy link

Issue description

Currently, tmux has via send-keys -X rectangle-toggle the ability to toggle rectangle selection on and off. When a selection is already active, toggling rectangle selection on behaves very much like toggling on visual block mode in vim: the rectangular selection is based off of the original selection.

Tmux also has send-keys -X select-line. When starting a brand new selection, this behaves like visual line mode in vim. However, when a selection is already active, the select-line command ignores the previous selection and selects instead the line that the cursor is currently on.

It would be nice to have the ability to toggle "line selection" on and off.

Required information

$ tmux -V
tmux 3.2a
@bew
Copy link

bew commented Sep 8, 2021

Looks like you want a way to extend the selection, instead of making a new one.

This is also something I'd like to have, I was thinking about having all these additional commands:

  • extend-selection
  • extend-select-word
  • extend-select-line
  • (extend-select-last ? to continue with the last mode, one of char/word/line)

@nicm
Copy link
Member

nicm commented Dec 21, 2021

Added to todo list.

@nicm nicm closed this as completed Dec 21, 2021
@bew
Copy link

bew commented Dec 21, 2021

Thanks can, is there a way to subscribe to that todo list?
(in a similar way I can subscribe to when an issue is closed)

@nicm
Copy link
Member

nicm commented Dec 21, 2021

I don't think so, but you can just see here https://github.com/tmux/tmux/wiki/Contributing#small-things.

@github-actions
Copy link

This issue has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs.

@github-actions github-actions bot locked as resolved and limited conversation to collaborators Jan 21, 2022
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Development

No branches or pull requests

3 participants