Skip to content

Add option to prevent comment editor opening immediately after text selection #408

@ewgdg

Description

@ewgdg

Problem

When selecting text in Crit, the comment editor opens immediately after selection.

This makes normal text selection/copying difficult, because selecting text is always interpreted as intent to comment.

Use case

Sometimes I want to select text only to copy it, inspect it, or use browser-native selection behavior — not leave feedback.

Possible solutions

A few possible UX options:

  1. Setting to disable auto-comment-on-selection

    • Example: Open comment editor on text selection: on/off
    • When disabled, text selection behaves normally.
  2. Use the existing explicit comment control instead

    • Crit already has a + comment button in the left gutter.
    • When auto-comment-on-selection is disabled, users could still add comments explicitly through that existing control.
    • This keeps commenting available without hijacking normal text selection/copy behavior.
  3. Keyboard modifier

    • Only open the comment editor when selection happens with a modifier key, e.g. Alt, Cmd, or Ctrl.
    • Plain selection remains copy-friendly.

Expected behavior

Users should be able to select and copy text without automatically opening the comment editor.

Current behavior

Selecting text immediately opens the comment UI, making copy operations awkward.

Why this matters

This is especially noticeable when reviewing generated output or longer text, where I often need to copy snippets before deciding whether to comment.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions