Change display text for property

Discussion related to "Everything" 1.5.
Post Reply
cosmito
Posts: 17
Joined: Fri Mar 21, 2025 3:20 am

Change display text for property

Post by cosmito »

I have "Video Format" property column enabled. I noticed that the displayed value is taken from "Codec ID" (as shown by MediaInfo).
I want to know if it's possible to customize the displayed text, a simple match and replace:

Code: Select all

Current value     Desired value
--------------------------------
V_MPEG4/ISO/AVC   AVC
V_MPEGH/ISO/HEVC  HEVC
NotNull
Posts: 5961
Joined: Wed May 24, 2017 9:22 pm

Re: Change display text for property

Post by NotNull »

First way: detect the current value and replace it with the short version

Code: Select all

video:  addcol:A  A-label:="My Video format 1"  A:=Ifs($video-format:="V_MPEG4/ISO/HEVC","HEVC",$video-format:="V_MPEG4/ISO/AVC","AVC",$video-format:="V_MPEGH/ISO/HEVC","HEVC",1,$video-format:)



Second way: Strip "V_MPEGH/ISO/" and "V_MPEG4/ISO/"

Code: Select all

video:  addcol:A  A-label:="My Video format 2"  A:=SUBSTITUTE(SUBSTITUTE($video-format:,"V_MPEGH/ISO/",""),"V_MPEG4/ISO/","")


Third way: Trick Everything into thinking "V_MPEG4/ISO/HEVC" etc is a filename and return only its name (without path)

Code: Select all

video:  addcol:A  A-label:="My Video format 3"  A:=BASE_NAME($video-format:)
Best to create a "My Video Format" Filter for (one of) these serach queries.


Everything Formulas
Post Reply