Skip to content

Helix mode: SelectPreviousMatch doesn't select/extend #41164

@eugenesvk

Description

@eugenesvk

Summary

In Helix normal/select modes select match commands should select/extend_selection the whole match

Description

Steps to reproduce:

  1. Enable vim+helix modes
  2. Add these keybinds
 "1":"vim::MoveToPreviousMatch",
 "2":"vim::MoveToNextMatch",
 "3":"search::SelectPreviousMatch",
 "4":"search::SelectNextMatch",
  1. open the search bar and match something that matches several things in your text
  2. close the search bar and use 1/2 or 3/4 to jump between multiple matches
  3. switch to select/visual mode and repeat

Expected Behavior:

step 4 should select every current match , not just move the cursor there
step 5 should retain selection of the current match and also select the newly jumped-to match

Actual Behavior:

nothing is selected, only the cursor jumps around

Zed Version and System Specs

Zed: v0.211.0 (Zed Dev f9e0642)
OS: Windows 10.0.26100
Memory: 12 GiB
Architecture: x86_64
GPU: NVIDIA GeForce GTX 750 || NVIDIA Corporation || 576.2 r575_92

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions