fsearch icon indicating copy to clipboard operation
fsearch copied to clipboard

Added support for tags stored on extended attributes (xattrs).

Open fbarriga opened this issue 6 years ago • 4 comments

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

fsearch_tags

fbarriga avatar Jul 01 '18 03:07 fbarriga

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.

cboxdoerfer avatar Jul 01 '18 10:07 cboxdoerfer

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).

tomachinz avatar Dec 07 '21 15:12 tomachinz

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.

tomachinz avatar Dec 07 '21 15:12 tomachinz