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

triple click - select from mouse pointer to end of the line #3585

Closed
theguly opened this issue May 6, 2021 · 4 comments
Closed

triple click - select from mouse pointer to end of the line #3585

theguly opened this issue May 6, 2021 · 4 comments

Comments

@theguly
Copy link

theguly commented May 6, 2021

I recently found this killer settings (based on my workflow of course) in Konsole:
2021-05-06_16-29

the behaviour is:

  • double click on a word to select it, like almost every other terminal emulator
  • triple click to select current word and expand the selection to the end of the line

i found this very useful when selecting just a part of the line, or one line of code (automatically skipping vim line number for example) and also to copy shell commands because i can easily skip $PS1

do you think it's a feature you can sooner or later?

@kovidgoyal
Copy link
Owner

If and when I get around to creating a general framework for mapping mouse events to actions, it will be pretty easy to create an action for doing this which you can then map to the triple click or whatever else you like. I dont however want a separate option for this.

@salmankhilji
Copy link

salmankhilji commented May 23, 2021

I have the latest kitty from master branch @ c6c203da, and this feature does not work. It appears to have been addressed in 00302b74. Am I missing something?

@kovidgoyal
Copy link
Owner

You need to press ctrl+alt as well. the default triple click still selects the full line.

@salmankhilji
Copy link

You need to press ctrl+alt as well. the default triple click still selects the full line.

My bad. I have been holding CTRL+SHIFT in so many other places that my eyes misread the CTRL+ALT as CTRL+SHIFT.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants