Skip to content

vim mode: unexpected visual mode #6057

@matgreaves

Description

@matgreaves

Check for existing issues

  • Completed

Describe the bug / provide steps to reproduce it

In Vim mode any actions that selects a block of text unexpectedly enters visual mode on next navigation with h, j, k, or l. Interestingly navigating via the arrow keys does not cause this issue.

Reproduction:

  1. Select a block of text either with the mouse, or navigation commands such as gd (go to definition).
  2. Attempt to move the cursor via h, j, k, or l. The text block will continue to expand.
  3. Navigating with up, down, left, or right will clear the selection but on the next navigation via h, j, k, or l the selection will start again from the current cursor.
  4. Navigate again with i, j, k, l and a new visual selection will be started.

This is unexpected particularly in the "jump to definition" case as even when closing the new window containing an external definition you're now selecting a visual range.

It is also unexpected that arrow key navigation clears any selection but i, j, k, or l navigation will start a new selected text range.

Environment

Zed: v0.78.1 (stable)
OS: macOS 13.2.0
Memory: 16 GiB
Architecture: aarch64

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

No response

If applicable, attach your ~/Library/Logs/Zed/Zed.log file to this issue.

If you only need the most recent lines, you can run the zed: open log command palette action to see the last 1000.

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    area:parity/vimFeedback for Vim parity featuresbugDEPRECATED label: use issue type 'Bug' instead

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions