Skip to content

This issue was moved to a discussion.

You can continue the conversation there. Go to discussion →

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

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

Closed
zhangjp0405 opened this issue May 27, 2025 · 3 comments

Comments

@zhangjp0405
Copy link

zhangjp0405 commented May 27, 2025

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

@alex-courtis
Copy link
Member

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

@zhangjp0405
Copy link
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

@alex-courtis
Copy link
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.

@nvim-tree nvim-tree locked and limited conversation to collaborators May 28, 2025
@gegoune gegoune converted this issue into discussion #3139 May 28, 2025

This issue was moved to a discussion.

You can continue the conversation there. Go to discussion →

Projects
None yet
Development

No branches or pull requests

2 participants