Skip to content

fix(#3248): bookmark filter shows contents of marked directories#3249

Merged
alex-courtis merged 1 commit intonvim-tree:masterfrom
xiantang:master
Jan 23, 2026
Merged

fix(#3248): bookmark filter shows contents of marked directories#3249
alex-courtis merged 1 commit intonvim-tree:masterfrom
xiantang:master

Conversation

@xiantang
Copy link
Collaborator

close #3248

@xiantang xiantang requested a review from alex-courtis January 23, 2026 03:24
@@ -134,6 +134,9 @@ function Filters:bookmark(path, path_type, bookmarks)

local mark_parent = utils.path_add_trailing(path)
for mark, mark_type in pairs(bookmarks) do
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Those variable names are quite misleading; mark is a path and mark_type is the actual bookmark. Not sure how that ever worked.

Tested OK

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

ok let me update the var name

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Don't stress, it's well outside of the scope of a bugfix.

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I will raise another PR to update the variable name. This will make things smaller and easier to review.

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks @xiantang I really appreciate the extra effort.

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Copy link
Member

@alex-courtis alex-courtis left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Tested OK with user's test cases. Many thanks for the quick resolution!

@alex-courtis alex-courtis changed the title fix: restore bookmark filter for marked directories fix(#3248): bookmark filter shows contents of marked directories Jan 23, 2026
@alex-courtis alex-courtis merged commit 5757bcf into nvim-tree:master Jan 23, 2026
5 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

"Show Only Marked" no longer displays contents of marked folders (Regression?)

2 participants