kyazdani42 / nvim-tree.lua

A file explorer tree for neovim written in lua

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Inconsitency in filter option

sarmong opened this issue · comments

filter option currently includes two options - dotfiles and custom.

It seems a bit inconsistent that dotfiles are toggled with tree_cb("toggle_dotfiles") function, but custom are toggled with tree_cb("toggle_ignored") .

Not sure what would be better way to handle this, as toggling custom with toggle_dotfiles is not the best way either.

maybe toggle_custom_filter ?

H : toggle_dotfiles
I : toggle_git_ignored
U : toggle_custom

toggle_ignored would be replaced with toggle_git_ignored, with toggle_ignored legacy silently mapped.

I think the main use case for I is git ignored, as per nerdtree and others, hence we retain that and create the new U.

closing since implemented in #1077 :)

ezoic increase your site revenue