nvim-tree / nvim-tree/nvim-tree.lua
More Fields For sort.sorter Function
Open
Nobody has claimed this yet.
feature request
PR please
- Dominant language
- Lua
- Stars
- 8.6k
- Forks
- 639
- Avg merge
- 1d 14h
- Merged PRs (30d)
- 2
Description
Related to #2614
As the title, I want the node type has more field, ie. GitStatus, for deeper customization.
It could be awesome if I can use a sorter which can put all git ignored file at the end. I'm not familiar with Lua, so I'm sorry I can't add it myself.
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start by locating the sort.sorter implementation and the node type, then read related issue #2614 for context. Confirm how GitStatus is represented and how sorter callbacks receive nodes; done means the added node fields are available for custom sorting, including placing ignored files last.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- lua
- Domain
- tooling
- Issue type
- Feature
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 35/100