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

Allow changing triple-click (and double-click) behaviour #57633

Open
DarrenCook opened this issue Aug 30, 2018 · 14 comments
Open

Allow changing triple-click (and double-click) behaviour #57633

DarrenCook opened this issue Aug 30, 2018 · 14 comments
Assignees
Labels
editor-commands Editor text manipulation commands feature-request Request for new features or functionality
Milestone

Comments

@DarrenCook
Copy link

Currently when I triple-click a word, the whole line gets selected.

I'm finding this annoying, as I seem to be doing it by accident, when intending to double-click to select just one word.

So I want to be able to customize triple-click to behave identically to double-click.

Searching user settings I cannot find anything for "triple". I also cannot find anything for controlling double-click behaviour. Or even how to define the action for "select word" and "select line". (I've also checked the keymap config, in case mouse actions were in there.)

(That is surprising, so if the config options I want already exist, then my feature request is to make them more easily discoverable!)

@vscodebot vscodebot bot added editor editor-find Editor find operations labels Aug 30, 2018
@alexdima alexdima added feature-request Request for new features or functionality editor-commands Editor text manipulation commands and removed editor-find Editor find operations labels Aug 31, 2018
@Logerfo
Copy link
Contributor

Logerfo commented Sep 4, 2019

Also, the triple click behavior should be configurable between selecting the line break and not selecting the line break. Currently, it always select the line break (if there is one).

@alexdima alexdima added this to the Backlog milestone Sep 9, 2019
@alexdima alexdima removed their assignment Sep 9, 2019
@hediet
Copy link
Member

hediet commented Oct 27, 2021

Related: #3130

@hediet hediet modified the milestones: Backlog, Backlog Candidates Oct 27, 2021
@HaraldKorneliussen
Copy link

From the Apple HIG: Triple-clicking selects the next logical unit, as defined by the application. In a word-processing document, triple-clicking in a word selects the paragraph containing the word…. In some contexts—in a programming language, for example—it may be appropriate to allow users to select both the left and right parentheses (or braces or brackets) in a pair, as well as all the characters between them, by double-clicking either one of them.”

I think those guidelines make a lot of sense, and what the hierarchy of logical units looks like will vary between e.g. a markdown file and a java file.

@hediet hediet modified the milestones: Backlog Candidates, Backlog Dec 17, 2021
@hediet hediet self-assigned this Dec 17, 2021
@noelfelix
Copy link

Yeah, customizable (n-)click event behavior would be fantastic.

Eg I would rather triple click expand selection, personally.

object.property -> object.property rather than the line.

@ykrx
Copy link
Contributor

ykrx commented Apr 27, 2022

Any updates on this? Would be an amazing productivity-customization feature.

@DrMiaow
Copy link

DrMiaow commented Jul 22, 2022

Can this be re-visited please?

@movy
Copy link

movy commented Aug 4, 2022

Upvoting! Expanding selection to brackets/braces/quotation marks via triple click would be amazing improvement to copy-paste routines.

@alecgargett
Copy link

Personally I would love it if double click stays the same, triple click selects everything up until the nearest space OR line-break OR bracket/parentheses (so that you can easily select a whole URL for example by triple clicking, while still being able to select just one part of a URL by double clicking) & then four clicks for the whole line, five for the whole paragraph, etc.

@bay-systems
Copy link

Upvote. Double-click selects a word, determined by "editor.wordSeparators". Subsequent clicks should expand the selection logically, not just to the entire line as it currently does.

@dcnetw0rk
Copy link

dcnetw0rk commented Jan 27, 2023

i need this too. it would be perfect if we can set a custom regex match or tell the cursor to highlight only characters and exclude leading/trailing whitespace on triple click, for example -- iterm2 has this feature at Settings -> General -> Selection -> Double-click performs smart selection. 🤷‍♀️
Screenshot 2023-01-26 at 6 55 58 PM

@Lovecircle
Copy link

Upvote! Especially dangerous when I'm trying to double click a word and then delete it but instead end up deleting the contents of the whole file!

@roy-tate
Copy link

roy-tate commented Apr 1, 2024

I just need a way to disable triple-click. Even a registry entry!

@DarrenCook
Copy link
Author

Yes: this is still driving me crazy, and having an option to simply disable triple-click would be more than sufficient.
(My original post over-complicated it, talking about customization. That can come later.)

@YevhenNJSN
Copy link

Yes, it would be great to customize n-click actions in VSCode. 'Expand selection' on triple-click seems like killer feature)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
editor-commands Editor text manipulation commands feature-request Request for new features or functionality
Projects
None yet
Development

No branches or pull requests

16 participants