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

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
zhangjp0405 opened this issue May 28, 2025 · 1 comment
Labels
bug Something isn't working

Comments

@zhangjp0405
Copy link

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

@zhangjp0405 zhangjp0405 added the bug Something isn't working label May 28, 2025
@alex-courtis
Copy link
Member

Thanks for raising @zhangjp0405

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants