Skip to content

Double click and drag should select words. Triple click and drag should select lines. [imported] #824

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

Closed
cmaglie opened this issue Nov 15, 2012 · 0 comments

Comments

@cmaglie
Copy link
Member

cmaglie commented Nov 15, 2012

This is Issue 824 moved from a Google Code project.
Added by 2012-02-21T04:05:25.000Z by pe...@stairways.com.au.
Please review that bug for more context and additional comments, but update this bug.
Closed (Fixed).

Original labels: Type-Defect, Priority-Medium, Milestone-1.0.1, Component-IDE

Original description

As per processing issue 576 http://code.google.com/p/processing/issues/detail?id=576 which I also provided a patch for and which has been incorporated into processing since April 2011.

Double click and drag should select words. Triple click and drag should select lines.

Also, as noted in issue 59 (from 2006!), double clicking on space should select only the spaces, not all non-space characters.

Attached is a diff that resolves these issues. Triple click and drag selects lines. Double click and drag selects words. Words are defines as sets of only one kind of: letter/digit/etc characters; whitespace; everything else. Technically, "everything else" should probably each individually be treated as a single character words, but in practice this is a good tradeoff. For example ++ and += are treated as a single word, but so is ");".

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

1 participant