Skip to content

feat(web): select with the mouse by drag, multi-click and Shift+click - #38

Open
SectionTN wants to merge 1 commit into
perf/web-rows-and-long-linesfrom
feat/web-mouse-selection
Open

SectionTN wants to merge 1 commit into
perf/web-rows-and-long-linesfrom
feat/web-mouse-selection

Conversation

@SectionTN

@SectionTN SectionTN commented Nov 28, 2026 •

Copy link
Copy Markdown
Owner

the web editor only placed the caret on a click, so a mouse couldn't select text. a drag selects now, a double click selects a word and a triple click the line with its newline, and holding the button after either keeps extending by that unit. Shift+click extends from the anchor. a drag held past the editor's edge scrolls the editor, or the page when scrolling is off.

a click left of a wrapped line's second row also put the caret on the line's first column. a point beside a row maps to that row's nearest column now.

stacked on #37 (its own commits)

The web editor only placed the caret on a click, so a mouse could not
select text, and a click left of a wrapped line's second row put the
caret on the line's first column. A drag now selects, a double click
selects a word and a triple click a line with its newline, each
extending by that unit while the button is held, and Shift+click
extends from the anchor. A drag held past the editor's edge scrolls
it, or the page when scrolling is off, and a point beside a row maps
to that row's nearest column.
@coderabbitai

coderabbitai Bot commented Nov 28, 2026

Copy link
Copy Markdown

Important

Review skipped

Auto reviews are disabled on base/target branches other than the default branch.

Please check the settings in the CodeRabbit UI or the .coderabbit.yaml file in this repository. To trigger a single review, invoke the @coderabbitai review command.

Run configuration

  • Source mode: Auto
  • Repository: Unavailable
  • Branch: Unavailable
  • File: No configuration file from this repository applied
  • Commit: Unavailable
  • Layers: defaults
  • Review profile: CHILL
  • Plan: Advanced
  • Run ID: 6829364c-2a6d-4848-a4fd-48274172c19e

You can disable this status message by setting the reviews.review_status to false in the CodeRabbit configuration file.

Use the checkbox below for a quick retry:

  • Trigger review
  • Autofix · Keep fixing CodeRabbit findings and required CI, and resolving merge conflicts

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

Share

This branch has not been deployed

No deployments
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

Successfully merging this pull request may close these issues.

1 participant