Skip to content

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

Closed
@cmaglie

Description

@cmaglie

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 ");".

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions