Linked by Thom Holwerda on Thu 4th Nov 2010 22:40 UTC, submitted by rhyder
Linux "For a fairly scruffy looking guy, I have a surprisingly healthy approach to organising my files. However, I'm constantly pushing up against the limitations of a system that is based around directories. I'm convinced that Linux needs to make greater use of tagging, but I'm also beginning to wonder if desktop Linux could abandon the hierarchical directory structure entirely."
Thread beginning with comment 448613
To read all comments associated with this story, please click here.
FUSE
by zimbatm on Fri 5th Nov 2010 09:27 UTC
zimbatm
Member since:
2005-08-22

With fuse [1] you could easily create a virtual filesystem, where directories are tags. That would let you try out that idea without changing the rest of the filesystem.

Say you mount that filesystem in ~/Tags. A file with two tags "A" and "B" could be found in ~/Tags/A/B/ ~/Tags/B/A/ ~/Tags/A ~/Tags/B and in it's original location. One difficulty would be that filenames can't have the same name as any other tag. Another-one would be that after some time, ~/Tags would contain a huge list of tags, which is not really handy.

[1] http://fuse.sourceforge.net/

Reply Score: 2

RE: FUSE
by bogomipz on Sat 6th Nov 2010 13:09 in reply to "FUSE"
bogomipz Member since:
2005-07-11

One difficulty would be that filenames can't have the same name as any other tag.

Ah of course, thanks for bringing this up. Presenting equally named files as nodes in the same virtual directory doesn't work very well.

Fixing this involves changing the file manager to show a different name than what the file system presents. Like when I delete two files called test.txt in Thunar, and then go to the Trash folder - it looks like the folder contains two equally named files, but in reality one of them is called test.txt$1. The illusion works as long as you restore the file before opening it. If you directly open the second file from Trash in a program that doesn't know this convention, you see the name as stored in the file system.

Reply Parent Score: 2

RE[2]: FUSE
by zimbatm on Sat 6th Nov 2010 14:07 in reply to "RE: FUSE"
zimbatm Member since:
2005-08-22

Fixing this involves changing the file manager to show a different name than what the file system presents. Like when I delete two files called test.txt in Thunar, and then go to the Trash folder - it looks like the folder contains two equally named files, but in reality one of them is called test.txt$1. The illusion works as long as you restore the file before opening it. If you directly open the second file from Trash in a program that doesn't know this convention, you see the name as stored in the file system.


I also think it's reasonable to involve the file manager and the "File Open" methods of the various toolkits, since we're talking about a surface-level feature. You can see similar problems with localized user folders, where they still are written in English when using the console or in old GUI programs. Yet another example are the netmounts in gnome, which are located in ~/.gvfs in your home folder. Unfortunately I don't know of any good solution to hide the implementation details without breaking legacy softwares.

Reply Parent Score: 1