vfind, supporting shell expansions and regexp

This commit is contained in:
Amber
2024-04-05 14:22:11 +02:00
parent d892c03bfa
commit 82aebaf869
3 changed files with 23 additions and 2 deletions

View File

@ -11,6 +11,7 @@ if __name__ == '__main__':
pattern = cmd_args.pattern
show_children_nodes = cmd_args.show_children_nodes
show_subtree_info = cmd_args.show_subtree_info
use_re = cmd_args.regular_expression
# opts for generatign the tree
opts = {
@ -27,6 +28,7 @@ if __name__ == '__main__':
'show_subtree_info': show_subtree_info,
'type' : cmd_args.type,
'items_to_include' : cmd_args.include or [],
'use_regular_expression' : use_re,
}
ntree = NerdTreeFind(path, opts=opts)