Custom Columns › Type+ v0.9
=========================
- Updated 2014-04-27 -
* Stronger detection, and type of files w/o extension is left blank
return gettoken(gettoken($CC_MEDIATYPELIST, 2, "|<cc_ext>|"), 2, "=");
---------------------------
Hi'
This is an attempt at replacing the original "Type" column with a more useful one which can group files by media type (Audio, Video, Document,...).To achieve maximum performance, the types are stored in a permanent variable (cf. dev notes in the third post for those interested).
---------
### INSTALLATION v0.9 (XYplorer >= 13.90.0116) ###
- Copy the following line into the AddressBar and press enter[/color]
Code: Select all
::perm $CC_MEDIATYPELIST; $CC_MEDIATYPELIST = "|arw|bmp|cr2|crw|dng|emf|gif|jpeg|jpg|ico|mrw|nef|orf|pef|png|psd|raf|rw2|srf|tga|tif|tiff|wmf|x3f|=Image=|aac|aiff|ape|asx|au|flac|gsm|la|m3u|m4a|mid|midi|mod|mp2|mp3|mpc|ogg|pac|pls|ra|ram|rm|wav|wma|=Audio=|3gp|aaf|asf|avchd|avi|divx|flv|ifo|m1v|m2v|m4v|mjp|mjpg|mkv|mov|mp4|mpe|mpeg|mpg|mts|ogm|rmv|rmvb|vob|wmv|=Video=|chm|diz|djvu|doc|docx|epub|hlp|mobi|nfo|odt|pdf|rtf|srt|txt|xps|=Document=|7z|arc|arj|bin|cab|cue|gz|iso|mds|nrg|rar|tar|tgz|zip|=Archive=|bat|com|exe|lnk|msi|swf|=Application=|dll|inf|reg|sys|=System=|cfg|dat|ini|xml|=Config=|js|jsx|vbs|xys|=Code=|css|htm|html|mht|url|=Web"; msg "Variable CC_MEDIATYPELIST successfully set";- Copy the following content, then type "::snippet;" into the AddressBar, enter, then paste into the snippet window and press enter
Code: Select all
Snip: CustomColumn 1
XYplorer 13.90.0116, 27/04/2014 17:14:00
Action
ConfigureColumn
Caption
Type+
Type
3
Definition
return gettoken(gettoken($CC_MEDIATYPELIST, 2, "|<cc_ext>|"), 2, "=");
Format
0
Trigger
0
Item Type
0
Item Filter
- CTRL+RightClick on a column header > "New Column"
- RightClick on a the header of the new column "New" > "Select Custom Column..." > Double-Click on line "Type+, Script (*.*)"
That's it!
---------
Don't forget to have a look at the next post if you want to configure your own list.
And don't hesitate to post any comment!
Enjoy,
Flux
XYplorer Beta Club