fsearch
fsearch copied to clipboard
Added support for tags stored on extended attributes (xattrs).
This patch add support for tags stored on extended attributes (xattrs). The changes are:
- The tags are indexed and stored on the database
- A new 'Tags' column is added
To test the feature you need a file system that supports xattrs (ext4/btrfs will work). In order to set the tags you can use caja file manager with caja-xattrs extension (https://github.com/mate-desktop/caja-xattrs), dolphin file manager or using command line:
$ setfattr --name=user.xdg.tags --value="foo,bar" file.txt
Thx, that sounds like a great feature. Unfortunately it breaks the database format and the changes aren't backwards compatible with older database files.
In order to implement something like that properly we'd have to first rethink the database format, allowing it to be a little bit more flexible in regards to future additions.
I have a big pile of mp3s, some of which are higher grade "a-list" audio files, others are b grade. It would be mad real to be able to search ID tags in here and/or FS extended attributes alternatively (I could mass tag them all).
In order to implement something like that properly we'd have to first rethink the database format,
Perhaps easiest to wipe the db clean and rebuild with new schema? I would not mind the hit. Perhaps you mean it would need locks put in place and version checking. Thanks for making this great software by the way.