Color Filters

Discussion related to "Everything" 1.5 Alpha.
Post Reply
void
Developer
Posts: 17149
Joined: Fri Oct 16, 2009 11:31 pm

Color Filters

Post by void »

Everything 1.5 adds support for Color Filters.

Colors filters can change the result list text color for items matching a filename filter:


An example of colors filters being applied to the result list.
Some items appear normal and others are shown with Green or Red text.

Color filter editor:

Two color filters objects:
Any file under C:\Windows as Red.
*.exe files under C:\Program Files as Green.



To add a color filter:
  • In Everything 1.5, from the Tools menu, click Options.
  • Click the Advanced tab on the left.
  • To the right of Show settings containing, search for:
    color
  • Select: color_filters
  • Click Edit....
    • In Edit Table, click Add Item....
    • Create the filename filter.
    • For example:
      *.exe
      = match files with the exe extension.
      C:\windows\*
      = match files directly in C:\Windows. (no subfolders)
      C:\windows\**
      = match files in C:\Windows. (including subfolders)
      regex:^foo
      = match files starting with foo
      C:\Program Files\Everything 1.5a\Everything64DEBUG.exe
      = match a filename exactly.
    • Set include_folders to
      1
      to match folders.
    • Set include_folders to
      0
      to ignore folders.
    • Set include_files to
      1
      to match files.
    • Set include_files to
      0
      to ignore files.
    • Set foreground_color and dark_foreground_color to
      #RRGGBB
      where RR is the Red value in hex, GG is the Green value in hex and BB is the Blue value in hex.
    • For example:
      #ff0000
      = Red
      #ffff00
      = Yellow
      #00ff00
      = Green
      #00ffff
      = Cyan
      #0000ff
      = Blue
      #ff00ff
      = Magenta
    • Click OK.
  • Click OK.


Column Colors

Column Colors can change the result list text color in each column:


The size column is shown in Cyan.
The Date column is shown in Magenta.

Column Colors editor:

Two column color objects:
Size in Cyan and Date Modified in Magenta.



To set a column color:
  • In Everything 1.5, from the Tools menu, click Options.
  • Click the Advanced tab on the left.
  • To the right of Show settings containing, search for:
    color
  • Select: column_colors
  • Click Edit....
    • In Edit Table, click Add Item....
    • Type in a column property name. (replace spaces with
      -
      )
    • For example:
      Date-Modified

    • Set foreground_color and dark_foreground_color to
      #RRGGBB
      where RR is the Red value in hex, GG is the Green value in hex and BB is the Blue value in hex.
    • For example:
      #ff0000
      = Red
      #ffff00
      = Yellow
      #00ff00
      = Green
      #00ffff
      = Cyan
      #0000ff
      = Blue
      #ff00ff
      = Magenta
    • Click OK.
  • Click OK.
LeoLUG
Posts: 70
Joined: Tue May 26, 2020 2:28 am

Re: Color Filters

Post by LeoLUG »

Thanks for this nice addon.
one think, when everything matches the search in the results, it doesn't show it in the color - see attached
The exe became BOLD so he lost the color
Attachments
2024-12-06_092630.jpg
2024-12-06_092630.jpg (69.81 KiB) Viewed 727 times
void
Developer
Posts: 17149
Joined: Fri Oct 16, 2009 11:31 pm

Re: Color Filters

Post by void »

A separate setting to specify the highlight color is on my TODO list.
Thank you for the suggestion.
void
Developer
Posts: 17149
Joined: Fri Oct 16, 2009 11:31 pm

Re: Color Filters

Post by void »

Everything 1.5.0.1388a improves color filters.

[] will now be treated as an empty string.

The table editor will now let you pick colors instead of using #RRGGBB

Column colors adds the missing bold style.
Set bold to 1 to force bold text, set bold to 0 to force non-bold text.

dark_foreground_color is now: foreground_dark_color
(Both keys are valid with foreground_dark_color being favored).
abr01
Posts: 100
Joined: Tue May 01, 2018 4:57 pm

Re: Color Filters

Post by abr01 »

Very nice. Would it be possible to include a simple rule like file size? Because i would like to color code smaller MP4 files, which are mostly music files (with some extra record label or other picture content) and movie files in the MP4 format differently. Something like

<=50MB -> color code 1
>50MB -> color code 2
void
Developer
Posts: 17149
Joined: Fri Oct 16, 2009 11:31 pm

Re: Color Filters

Post by void »

Color filters currently filter by filename only.
A feature to filter by properties is on my TODO list.
Thank you for the suggestion.
abr01
Posts: 100
Joined: Tue May 01, 2018 4:57 pm

Re: Color Filters

Post by abr01 »

That's great! :idea: :arrow: :!:
Post Reply