nvim-tree/nvim-tree.lua

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

zhangjp0405 opened this issue · 1 comments

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

Thanks for raising @zhangjp0405

Please provide the clean room replication as per the bug report template, so that we can reproduce.