vfind command
This commit is contained in:
18
vfind.py
Executable file
18
vfind.py
Executable file
@ -0,0 +1,18 @@
|
||||
#!/usr/bin/env python
|
||||
|
||||
from src.cmdline_parser import cmd_args
|
||||
from src.tree_find import NerdTreeFind
|
||||
|
||||
if __name__ == '__main__':
|
||||
print(cmd_args.path)
|
||||
print(cmd_args.show_children_nodes)
|
||||
path = cmd_args.path
|
||||
pattern = cmd_args.pattern
|
||||
show_children_nodes = cmd_args.show_children_nodes
|
||||
|
||||
find_opts = {
|
||||
'dont_show_children_nodes': not show_children_nodes
|
||||
}
|
||||
|
||||
ntree = NerdTreeFind(path)
|
||||
ntree.find(pattern, opts=find_opts)
|
Reference in New Issue
Block a user