Skip to content
This repository was archived by the owner on Apr 16, 2026. It is now read-only.
This repository was archived by the owner on Apr 16, 2026. It is now read-only.

[sublime] cmd+d/ctrl+d should stop moving the main selection after it's added all instances #6024

Closed

Description

@mtaran-google

repro:

  1. open https://codemirror.net/demo/sublime.html
  2. put cursor on any of the instances of `Shift'
  3. press cmd+d repeatedly

expected:
all the instances of Shift will be selected, and then the viewport will stop moving. this is the behavior of sublime (as well as VSCode & IntelliJ). not sure if it always was, but that is the behavior now.

actual:
all instances of Shift do get selected, but then the viewport keeps moving, because very time the command gets executed, the primary cursor moves.

Activity

  1. marijnh commented on Oct 8, 2019

    @marijnh
    Member

    There was code trying to implement this, but it was broken. Attached patch should help.

  2. added a commit that references this issue on Jan 6, 2020
    1f42046
  3. added a commit that references this issue on Jan 21, 2020
    2e3f6d4
  4. added a commit that references this issue on Sep 5, 2024
    86a87a2
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

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