Is there any program that can tag folders? I have different files within a folder and there are to many folders, if I could tag each folder (contrary to tag each file) then it would be very easy for me to categorise these folders. Does anyone knows if such thing can be done? Thank you.
You may add a file like
into every folder. There you could store information as text. You could later browse them for your information.
Maybe you're better suited with a tool like find.
Feel free to ask about it's usage.
It is a great question, and I was looking for something like that too, but I'm pretty sure there is nothing like that already built into Nautilus,
but if you can turn your hand to some scripting, you could relatively easily adapt Nautilus
It would be a simple matter of searching the Notes for your specific Tag(s), and then create tempory links (or permanent) to each directory with a matching Tag in the 'Notes`... then put these links into a 'search results' directory... which you would then present in a Nautilus window!...
If I had the spare time, I'd do it myself, but instead, here is a script I wrote to access and write and delete Nautilus Notes.. It doesn't do what I described above, but it does show how to access the Notes data cache. The script is intended for use by
The script is at pastbin.ubuntu.com
UPDATE: I've now written a working script which uses links as described above.. However, I've now swapped the "nautilus Notes" idea and grafted in user unknown's .tag files instead.. (so, if you like the script, remember that the .tag idea is 'user unknown's)..
I've attempted to explain the script's usage in the comments, but I should point out that it's not fully tested, so it may misbehave on some minor points..
Here is the script
UPDATE2: (fixed a bug.. It was only processing the first 100 located .tag file)
Wow fred bear, this is such a fantastic work you've got there! Can't wait to try it. I really appreciate your effort and even though the original idea is slightly different as mentioned before it still is an excellent approach to the behaviour I needed in the first place. And just after reading the explanation in the script it came to me the idea that if it is possible to generate some sort of html with soft-links to all of the resulting folders from the tag search from the temporary directory but showing only the covers (jpg's) as the icon to click to. I'm going to test the script and see how it behaves and if it creates soft-links to the folders, can them then be soft-linked to the video file but showing the jpg within the folder as icon? I want to thank you again for your effort and knowledge, I'm not good at scripts and would never have thought this sort of solution. Thank you.
The answer hasn't been accepted yet, but the examples I posted should give you an idea of how to work with this program. Tag additions work just fine on directories too, and I've tested it as well.
Note that you'll need to start trackerd manually in order for the tracker-tag/* utils to work:
You can configure tracker with:
I still don't have the tracker applet running (listed in
I read one of your responses from an earlier post, and it looks like you're trying to add/search for tags in Nautilus, although you didn't list that as a primary criteria in your question. That's what the other person was doing, so perhaps this answer will be useless for you. That said, jumping to CLI occasionally isn't so bad if you get stuff done that you wouldn't normally be able to do in a GUI.