Skip to content

feat(#1850): add no bookmark filter #2571

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

Merged
merged 3 commits into from
Dec 19, 2023
Merged

Conversation

alex-courtis
Copy link
Member

fixes #1850

*nvim-tree.filters.no_bookmark*
Do not show files that are not bookarked.
Toggle via |nvim-tree-api.tree.toggle_no_bookmark_filter()|, default `M`
Enabling this is not useful as there is no means yet to persist bookmarks.
Copy link
Member Author

Choose a reason for hiding this comment

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

@@ -65,6 +66,10 @@ local function dotfile(path)
return M.config.filter_dotfiles and utils.path_basename(path):sub(1, 1) == "."
end

local function bookmark(path, bookmarks)
Copy link
Member Author

@alex-courtis alex-courtis Dec 3, 2023

Choose a reason for hiding this comment

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

Lacked the time to extract classes as per highlight Decorators

@alex-courtis
Copy link
Member Author

I'll wait until the first release please.

@alex-courtis alex-courtis merged commit 8f92e1e into master Dec 19, 2023
@alex-courtis alex-courtis deleted the 1850-bookmark-filter branch December 19, 2023 05:18
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.

filters.toggle_bookmarked
1 participant