Skip to content

[filesystem] toggle gitignored and toggle hidden #259

Answered by cseickel
MunifTanjim asked this question in Q&A
Discussion options

You must be logged in to vote

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")…

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by MunifTanjim
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants