On Wed, 28 Feb 2007 10:20:33 +0000 (UTC) Tuomo Valkonen <[EMAIL PROTECTED]> 
wrote: 

TV> In fact, for tab-completion to work nicely, most tags should 
TV> perhaps be listed. Ideally the application in question would 
TV> do the pruning/clustering as suited to the task at hand, but 
TV> in a FUSE plugin for applications (mostly) unaware of SetFS, 
TV> we do not have the luxury of that. But for 'ls' output the whole
TV> list can be unusably long. 

Just like `ls', I don't think you should filter out results, just
write a filter tool or an option to make the list usable.

Also, tag age is an important attribute, as are tag owner (and owner
group) and tag permissions.

TV> Perhaps a reasonable compromise (for the default pruning) would
TV> then indeed be to display all except the frequency one tags,
TV> unless needed (being the sole missing tag for some file from the
TV> search set). Well, it demands research and testing...

Assuming it's called "tls" for "tag ls," here are some ideas for
options (ARGV is not being discussed here, although I do think the *
and ** patterns, plus the usual shell globbing, should be available):

tls -min 2 # list tags with frequency 2 or higher
tls -n # print "frequency age owner owner-group permissions tag" for each tag, 
suitable for piping and sorting
tls -f # print sorted by frequency
tls -t # print sorted by tag age
tls -R # print tags recursively
tls -o tzz # print tags owned by tzz

Ted

Reply via email to