From 02b1d3916ff4031ef398f3f2f651dcbd1ffe7d4a Mon Sep 17 00:00:00 2001 From: Amber Date: Wed, 31 Jan 2024 12:02:13 +0100 Subject: [PATCH] vfind command --exclude --- vfind.py | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/vfind.py b/vfind.py index e6ac9de..9b4aaa5 100755 --- a/vfind.py +++ b/vfind.py @@ -10,9 +10,15 @@ if __name__ == '__main__': pattern = cmd_args.pattern show_children_nodes = cmd_args.show_children_nodes + # opts for generatign the tree + opts = { + 'items_to_exclude' : cmd_args.exclude or [], + } + + # opts for find find_opts = { 'dont_show_children_nodes': not show_children_nodes } - ntree = NerdTreeFind(path) + ntree = NerdTreeFind(path, opts=opts) ntree.find(pattern, opts=find_opts)