lixinliang / tree-view-search-bar

[deprecated] 🔍A file/directory filter plugin.
MIT License
27 stars 15 forks source link

Collapse action issue #4

Open lixinliang opened 8 years ago

lixinliang commented 8 years ago

Condition:

  1. This directory includes some files or directories are be matched.
  2. Collapse this directory.

Example: test2

Reason:

  1. Now, tree-view-search-bar matches the files by css.
  2. Collapse a directory that will remove all subfiles of this directory from dom tree at the same time.

Finally: If you have any idea or advice about this problem, welcome to discuss here.

mingsai commented 7 years ago

I am not sure that I understand. You want to collapse the directory and remove all subfiles from the dom tree at the same time? I would imagine that you could use a regular expression of some kind to manage the searching of the data. But to collapse the directory, I am not familiar with the code base. Where could I find the related functionality? I can then take a look and perhaps offer some more input.

lixinliang commented 7 years ago

When I do this collapse action, tree-view plugin will remove the subfiles from the dom tree. And, this plugin requires it.

As this gif shown, lib directory was not matched .js expression. When the subfiles gone, lib disappeared immediately.

Perhaps, I made a mistake, and closed a wrong directory. But, I could not restore it. Because, the directory already disappeared. I had to clear the expression.