Skip to content

[UX Improvement] view_input.v : standard selection and cursor movement QOL featuresΒ #35

@RubyCascade

Description

@RubyCascade

Cursor movement

  • Small jump
    • modifier key is control on Windows and Linux, and option (alt) on Mac
    • mod + left or right arrow key to jump to the beginning or end of either the current or next word in that direction
    • mod + up or down arrow key to jump to the beginning or end of either the current or next paragraph in that direction
  • Large jump
    • modifier key is command on Mac, unknown on Windows and Linux
    • mod + left or right arrow key to jump to the beginning or end of either the current line
    • mod + up or down arrow key to jump to the beginning or end of either the current text field/document
  • Selection jump
    • while text is selected pressing the left or right arrow key will jump the cursor to the beginning or end of the selection
    • while text is selected pressing the up or down arrow key will jump the cursor to the beginning or end of the selection before going up or down
    • selection jumps do not occur while shift is held
    • selection jumps can occur in combination with small and large jumps, with selection jumps occurring first

Selection

  • double primary clicking selects whole words
    • over spaces the entire chunk of spaces is selected
    • other characters are not selected in chunks (afaik)
    • dragging after double primary clicking also works, selecting from the beginning or end of the word, chunk of spaces, or other single character that is double clicked on to the beginning or end of the word, chunk of spaces, or other single character the mouse cursor is over, whichever pair is furthest
  • triple primary clicking selects whole paragraphs
    • dragging after triple primary clicking also works, selecting from the beginning or end of the paragraph that is triple clicked on to the beginning or end of the paragraph the mouse cursor is on the same vertical level as, whichever pair is furthest
  • selection with shift + arrow keys can be combined with small jumps and large jumps, this behavior should be emergent and shouldn't need any extra code (I'm pretty sure)
  • single secondary clicking an unselected word selects the word and brings up the input field's context menu if available

Notes

  • Windows functionality was tested using Notepad
  • Linux functionality was tested using the text editor for Linux Mint, Xed
  • in Notepad the short jump up/down functionality does not appear to exist, however I believe it can most likely be included with little to no issue
  • in Xed the up/down short jumps were similar, but it wasn't the same. the way they implemented it was unintuitive, so I say do it this way.

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions