I have just created a Nautilus extension for annotating files and directories. I know that this feature had already been asked here in the past, so I guess this is the right place for it. Here follows part of my project’s
Annotate files and directories
Long time ago GNOME Files (Nautilus) had the ability to handle custom annotations attached to files and directories. This ability has slowly gone lost in the folds of time. Things however are rarely really unlearned, and an ability rarely goes away for good.
Nautilus Annotations brings back Nautilus’ annotation capabilities. It exploits the same machinery that was used back then: that of relying on GIO to store custom information about a file or a directory.
Each annotation is stored as a
metadata::annotationentry in GIO’s database. Annotated files are shown in the viewport with an emblem attached.
To erase an annotation it is sufficient to leave the content blank, and the extension will take care of erasing the database entry.
The dialog window for editing the annotations is very minimal, albeit polished and with Markdown highlighting enabled.
Thanks to GIO, when a file is moved or renamed its annotations remain synchronized with the new path.
Annotations are “per user”. That means that although Alice has the right to annotate Bob’s files, only Alice will have access to her own annotations.
Emblems are managed by the extension and will not be shown once the extension is uninstalled. The content of the annotations instead is managed by GIO and will survive uninstalling the extension.
It is possible to access annotations via command line by launching:
sh gio info --attributes='metadata::annotation' /path/to/file
For setting an annotation via command line launch instead:
sh gio set /path/to/file 'metadata::annotation' 'Content of annotation goes here'
For giving it a try, you can compile and install the package from source; or if you use Arch Linux, download directly the
PKGBUILD attached to the last release.
The project is still very young and needs help with internationalization. If you like the idea and your first language is not English, then you can help. I will also appreciate any constructive feedback.
I hope you’ll have fun annotating files.