Page 1 of 1

Live filter > Match anywhere only matches full tag names

Posted: 31 Mar 2018 07:39
by cherokee
Hello there,
I found a feature that maybe incomplete. In configuration, I checked Live filter to match anywhere so I expect a partial indexes will return all matches. Suppose I have a folder with files tagged: tag_picture, tag_music, tag_book. When I do Live filter for:

Code: Select all

[code]tags:
[/code]
I expect it returns all files with any tags but it did not. Only returned 1 untagged file

Code: Select all

tags:tag
I expect it returns files with text "tag" anywhere in the tag name, but it did not return any.

Code: Select all

tags:tag_music
Correctly returned all files with tag_music.

By the way, from my research, it is not possible to have tags color coded in file names (maybe not painting the whole file name with color (confused with labels), but just the beginning markers of the file names so they can be visually recognized). Please correct me if there is a feature that allows this.

Re: Live filter > Match anywhere only matches full tag names

Posted: 31 Mar 2018 07:57
by jupe
Try these instead:

Code: Select all

tags:*
tags:tag*
cherokee wrote:By the way, from my research, it is not possible to have tags color coded in file names (maybe not painting the whole file name with color (confused with labels), but just the beginning markers of the file names so they can be visually recognized). Please correct me if there is a feature that allows this.
I don't understand what you mean exactly here, if you want to color tagged items you can use the same filter I just mentioned above as a color filter.

https://www.xyplorer.com/release_15.80.php#CFbyTags

Re: Live filter > Match anywhere only matches full tag names

Posted: 31 Mar 2018 08:15
by cherokee
So looks like I have to use * before and after to search for tags "anywhere" in tag names. Doesn't feed natural at all but ok hopefully the software will update. Regarding color coded tags, I meant I don't want to have to type in filter syntax or click a button. It would be best to for the files to identify themselves. For example, in a docs folder I have many files assigned with different tags, to identify which group (tag) they belong, the only way is to look at tags column header, but they are "text" after all. It is much faster to identify colored items. Or maybe the tag names in tags column could be color coded too, I don't know :wink:

Re: Live filter > Match anywhere only matches full tag names

Posted: 31 Mar 2018 08:54
by jupe
Did you follow that link I provided in the previous post? You only need to setup color filters once, and then the tagged items will be colored automatically without having to click on anything.

Also depending on your requirements, and if you are only applying one tag per item, you could instead use labels which allow you to color the label column only via:

Configuration | Information | Tags | Coloring style

Also to make wildcard tag search easier instead of using the LFB you could define the following script command (or a modification of it) to a keyboard shortcut (or button etc), when run it would popup a dialog asking the tag name to search for and add the wildcards for you automatically (don't include tags: in your input eg. instead of tags:*green* in LFB just enter green in the popup dialog), if you just want it to show ALL tagged items just leave the popup dialog empty, if you are interested you can try it out by pasting it in the address bar while you are in a folder that contains tagged items.

Code: Select all

goto "?*" . input("Which Tags?") . "* /Tnt";
if you want it to search in subfolders as well replace /Tnt with /Tt

For instructions on assigning a keyboard shortcut: https://www.xyplorer.com/tour.php?page=udc

Re: Live filter > Match anywhere only matches full tag names

Posted: 31 Mar 2018 09:02
by highend
Another way would be (an additional) custom column that returns colored bars, e.g.:

How to set up a custom column with a snippet: viewtopic.php?f=7&t=18653

Code: Select all

Snip: CustomColumn 1
  XYplorer 18.90.0100, 31.03.2018 08:59:43
Action
  ConfigureColumn
Caption
  Color
Type
  3
Definition
      $tag = property("#tags", <cc_item>);
      switch (true) {
          case $tag == "":
              return "";
          case $tag LikeI "tag_music":
              return '>draw.bar, 100, 0000FF, 0000FF';
          case $tag LikeI "tag_picture":
              return '>draw.bar, 100, 00FF00, 00FF00';
      }
Format
  7
Trigger
  1
Item Type
  0
Item Filter
  


Re: Live filter > Match anywhere only matches full tag names

Posted: 31 Mar 2018 20:49
by cherokee
Thank you all !
Have a nice weekend :biggrin:

Re: Live filter > Match anywhere only matches full tag names

Posted: 01 Apr 2018 00:00
by jupe
One more suggestion if you are going to be working with tags regularly is to check out the "Find by Tags" toolbar button, also Click and Search via the Catalog

https://www.xyplorer.com/release_14.10.php#CAS

https://www.xyplorer.com/tour.php?page=tags