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 #3138

Closed
@zhangjp0405

Description

@zhangjp0405

Description

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

Neovim version

nvim-0.8

Operating system and version

Ubuntu20_X64

Windows variant

No response

nvim-tree version

master branch

Clean room replication

~/.config/nvim/lua/user/nvim-tree.lua

Steps to reproduce

1、Using nvim open a folder
2、When the mouse clicks at file name other positions, the entire tree will move along with the cursor

Image

Expected behavior

No response

Actual behavior

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions