neo-tree.nvim icon indicating copy to clipboard operation
neo-tree.nvim copied to clipboard

Hide cursor when enter on the tree

Open lopi-py opened this issue 3 years ago • 8 comments

I'll try to create a PR on my free time

lopi-py avatar Mar 01 '22 16:03 lopi-py

What does "disable cursor" mean and why would you want to do it?

cseickel avatar Mar 02 '22 12:03 cseickel

What does "disable cursor" mean and why would you want to do it?

I have the same question.

nyngwang avatar Mar 02 '22 13:03 nyngwang

Sorry, I mean hide cursor

lopi-py avatar Mar 02 '22 13:03 lopi-py

People can have mappings like h and j to collapse/expand directories, maybe the cursor is a bit annoying in that case, hidding it and enabling a cursorline might be a good adition I guess (could be optional the cursor hiding thing)

lopi-py avatar Mar 02 '22 13:03 lopi-py

I can see the purpose of this now. I've never done this so I'm not sure if I would personally like it or not, It might be something that can be solved by #155

cseickel avatar Mar 02 '22 15:03 cseickel

But sometimes I need the cursor to copy-paste the name (or part-of the name) from the filetree. It's acceptable if this can be disabled by an option.

People can have mappings like h and j to collapse/expand directories. [...]

Then that's a bad idea. Normally one should not use h,j,k,l to do things other than default behaviours.

Anyway, this is just my own opinion.

nyngwang avatar Mar 02 '22 16:03 nyngwang

But sometimes I need the cursor to copy-paste the name (or part-of the name) from the filetree. It's acceptable if this can be disabled by an option.

This is definitely an optional thing, or possibly just a recipe in the Wiki.

People can have mappings like h and j to collapse/expand directories. [...]

Then that's a bad idea. Normally one should not use h,j,k,l to do things other than default behaviours.

Anyway, this is just my own opinion.

That's definitely not an opinion that everyone shares. I remap h,j,k,l to window navigation commands myself. People should do whatever makes them happy! Neo-tree should (ideally) be flexible enough to accommodate any workflow and preferences.

cseickel avatar Mar 02 '22 16:03 cseickel

See https://github.com/nvim-neo-tree/neo-tree.nvim/issues/155#issuecomment-1081338852

cseickel avatar Mar 29 '22 02:03 cseickel