RichFilemanager icon indicating copy to clipboard operation
RichFilemanager copied to clipboard

Filter files

Open MickeyMuis opened this issue 7 years ago • 5 comments

In raising this issue, I confirm the following (please check boxes):

  • [x ] I have read and understood the Wiki. Especially deploy and configuration articles.
  • [x ] I have checked that the bug I am reporting can be replicated, or that the feature I am suggesting isn't already present.
  • [x ] I have checked the pull requests tab for existing solutions/implementations to my issue/suggestion.
  • [x ] I realise that server-side connectors are provided by various contributors. The implementations are vary due to programming language features/limitations or other factors. Thus a particular connector may not implement, or partially implement, the API features.
  • [x ] I realise that any changes in configuration options and/or plugin parameters affect the plugin behavior. I specified all the differences from defaults in details.

I use the following server-side connector (check one):

  • [x ] PHP connector by servocoder
  • [ ] Java connector by fabriceci
  • [ ] Python3 Flask connector by jsooter
  • [ ] Python3 Flask connector by stevelittlefish
  • [ ] NodeJs connector by jlaustill and forestlake
  • [ ] ASP.NET Core connector by sinanbozkus
  • [ ] ASHX connector by richeflits
  • [ ] Other (specified below)

My familiarity with the project is as follows (check one):

  • [ ] I have never used the project.
  • [x ] I have used the project briefly.
  • [ ] I have used the project extensively, but have not contributed previously.
  • [ ] I am an active contributor to the project.

Is it possible to filter the files as a part of the filename. So the searchstring is contained within the filename?

MickeyMuis avatar Jun 27 '18 09:06 MickeyMuis

Your query is not clear for me. Could you expand your case with detailed description and examples?

psolom avatar Jun 27 '18 14:06 psolom

If you use the filter function you set a filter on (if you want recursively) on a specific filename starting with ...

example: abc-21-06-2018.txt bca-22-06-2018.txt cab-23-06-2018.txt

If I set the filter on 'a' it will show abc.txt If I set the filter on '21' it will show nothing

So what I ask is a filter on a part of the filename.

If I set the filter on '06-' it still shows all three files...

The question is if that is possible?

MickeyMuis avatar Jun 27 '18 14:06 MickeyMuis

I have to review the current implementation, but think this is possible. For instance this may be implemented using file search by mask, e.g. *06-*.txt

However I can't promise you I implement this feature in the coming days.

psolom avatar Jun 27 '18 14:06 psolom

Yes that exactly what I think will be a great extra.

No I understand that!

Thanks!

MickeyMuis avatar Jun 27 '18 15:06 MickeyMuis

Implemented for PHP connector. Will be included into the next release.

If you would like to test it now you can specify the package as "servocoder/richfilemanager-php": "dev-master" in your composer.json file. This will hook up the latest commits.

To switch the search mode to the wildcard pattern, edit your filemanager.php file as:

$config = [
    'options' => [
        'searchMode' => \RFM\Repository\BaseStorage::SEARCH_MODE_WILDCARD
    ]
];

psolom avatar Jul 01 '18 10:07 psolom