-
-
Notifications
You must be signed in to change notification settings - Fork 618
feat(#2225): add renderer.hidden_display to show a summary of hidden files below the tree #2856
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
feat(#2225): add renderer.hidden_display to show a summary of hidden files below the tree #2856
Conversation
… using ext_marks nvim api
… using ext_marks nvim api feat(icon_placement): Allow right_align icon_placemente for decorator using ext_marks nvim api
…full_name features
…lacement (nvim-tree#2846) * feat(icon_placement): Allow right_align icon_placemente for decorator using ext_marks nvim api * feat(icon_placement): Allow right_align icon_placemente for decorator using ext_marks nvim api feat(icon_placement): Allow right_align icon_placemente for decorator using ext_marks nvim api * feat(icon_placement): consolidate doc * fix: extra namespace added to avoid colision between right_align and full_name features * style: rename namespace_id --------- Co-authored-by: Alexander Courtis <[email protected]>
737e3a4
to
7021848
Compare
7296c8e
to
8ef7e48
Compare
DRAFT: Because there's an ordering problem when sorting by depth. Should be usable but I'll try and fix this tomorrow and set it to ready for review. edit: fixed and simplified, ready for review |
…rting and grouping virtual lines
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This is just fantastic! It works, code looks good from a high level, I trust it's solid.
Small nits and codestyle, check etc. needed.
This opens up the door to an inline hidden count, like the size information. For another day. |
Co-authored-by: Alexander Courtis <[email protected]>
I thought the same. |
Fixed code style and added a separate |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Many thanks for your contribution!
This PR introduces the rendering of hidden count files per folder, a feature that closes #2225
Option
renderer.hidden_display
, allows users to customize how hidden files count information are displayed per folder.It can be either a function or a string. It defaults to "none".
Video for Ilustration
The video below show that we can trace the
reason
for exclusion. Also, shows that it works withlive filter
and takes into accountindent marks
andindent width
.2024-07-28.03-00-47.mp4
If a function is provided to
renderer.hidden_display
, it receives a tablehidden_count
where keys are reasons and values are the count of hidden files for that reason.If an error occurs inside this function, we issue a warning:
2024-07-28.03-21-48.mp4
Also exposes the highlight "NvimTreeHiddenDisplay".
Minimal Setup
Setup using custom function