[filesystem] toggle gitignored and toggle hidden #259
Answered
by
cseickel
MunifTanjim
asked this question in
Q&A
-
How to toggle git ignored files and hidden files separately (using two different keybindings)?
|
Beta Was this translation helpful? Give feedback.
Answered by
cseickel
Apr 10, 2022
Replies: 1 comment
-
You could create custom mappings to toggle them individually, but there is no way (currently) to combine this with the ability to mark hidden files in a different highlight. mappings = {
["G"] = function (state)
state.filtered_items.visible = false
state.filtered_items.hide_gitignored = not state.filtered_items.hide_gitignored
require("neo-tree.sources.manager").refresh("filesystem")
end,
["H"] = function (state)
state.filtered_items.visible = false
state.filtered_items.hide_dotfiles = not state.filtered_items.hide_dotfiles
require("neo-tree.sources.manager").refresh("filesystem")
end, If you want to also see them grayed out when they are not hidden, that would require enhancing the functionality in the internals of Neo-tree. |
Beta Was this translation helpful? Give feedback.
0 replies
Answer selected by
MunifTanjim
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
You could create custom mappings to toggle them individually, but there is no way (currently) to combine this with the ability to mark hidden files in a different highlight.