Skip to content

How to keep the cursor on the first letter of the filename when a single mouse-click or a double mouse-click #3137

Description

@zhangjp0405

How to set keeping the cursor on the first letter of the filename always when a single mouse-click a tree node or a double mouse-click a tree node?
or
How to disable the cursor move to other positions in a file name, when a single mouse-click a tree node or a double mouse-click a tree node?
In now nvim-tree, When the mouse clicks at file name other positions, the entire tree will move along with the cursor. This is not conducive to navigating and browsing the entire tree.

Image

Activity

  1. alex-courtis commented on May 28, 2025

    @alex-courtis
    Member

    The :help nvim-tree.hijack_cursor option should resolve this issue.

  2. zhangjp0405 commented on May 28, 2025

    @zhangjp0405
    Author

    The :help nvim-tree.hijack_cursor option should resolve this issue.

    I try it, no effect when a single mouse-click a tree node or a double mouse-click a tree node

  3. alex-courtis commented on May 28, 2025

    @alex-courtis
    Member

    The :help nvim-tree.hijack_cursor option should resolve this issue.

    I try it, no effect when a single mouse-click a tree node or a double mouse-click a tree node

    That's not good.

    I'd be grateful if you post full Bug Report so that we may replicate and fix this.

  4. locked and limited conversation to collaborators on May 28, 2025
  5. converted this issue into a discussion #3139 on May 28, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions