Feat: Allow hiding dotfiles (#69)

This commit is contained in:
Kieran Siek
2020-08-03 22:13:25 +08:00
committed by GitHub
parent 1aee593b5d
commit 06558a25da
7 changed files with 55 additions and 33 deletions

View File

@@ -224,6 +224,7 @@ local function set_mappings()
[bindings.edit_split] = 'on_keypress("split")';
[bindings.edit_tab] = 'on_keypress("tabnew")';
[bindings.toggle_ignored] = 'on_keypress("toggle_ignored")';
[bindings.toggle_dotfiles] = 'on_keypress("toggle_dotfiles")';
[bindings.refresh] = 'on_keypress("refresh")';
[bindings.create] = 'on_keypress("create")';
[bindings.remove] = 'on_keypress("remove")';
@@ -304,4 +305,9 @@ function M.toggle_ignored()
return M.refresh_tree()
end
function M.toggle_dotfiles()
pops.show_dotfiles = not pops.show_dotfiles
return M.refresh_tree()
end
return M