Skip to content

Add editor: select next match action #7903

Open
@vim-zz

Description

Check for existing issues

  • Completed

Describe the feature

I use alot the following pattern in Sublime Text

  1. Select a word
  2. Select all matching words ctrl+cmd+g
  3. Move through the selected words using cmg+g

It relys on this default sublime keybindingd

{ "keys": ["super+g"], "command": "find_next" },
{ "keys": ["ctrl+super+g"], "command": "find_all_under" },

I tried to get it whit Zed using these keybindings, but it is not the same:

[
  {
    "context": "Editor",
    "bindings": {
      "cmd-ctrl-g": "editor::SelectAllMatches",
      "cmd-g": "editor::SelectNext"
    }
  }
]

Sublime example:

Screen.Recording.2024-02-16.at.14.46.46.mov

Zed example (when i hit cmd-g nothing happens):

Screen.Recording.2024-02-16.at.15.06.55.mov

I think the reason is that cmd-g is mapped to "editor::SelectNext" but it should be mapped to "editor::SelectNextMatch" which is not available in the editor namespace (it's available for search nampesapce though...)

If applicable, add mockups / screenshots to help present your vision of the feature

N/A

Metadata

Assignees

No one assigned

    Labels

    editorFeedback for code editing, formatting, editor iterations, etcenhancement[core label]good first issueIssue suitable for first-time contributorskeymap / key bindingFeedback for keyboard shortcuts, key mapping, etc

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions