* [9fans] Tags for files
@ 2004-10-13 16:24 Fco. J. Ballesteros
2004-10-13 17:17 ` Russ Cox
2004-10-14 0:56 ` Kenji Okamoto
0 siblings, 2 replies; 7+ messages in thread
From: Fco. J. Ballesteros @ 2004-10-13 16:24 UTC (permalink / raw)
To: 9fans
There's a new tag utility at /n/sources/nemo/sys/src/cmd/tag
(see its man page) to attach arbitrary tags to files and search
for files using their tags (a la gmail).
It's just born here, but I think it's addictive.
EXAMPLE
This generates a new database.
; tag/scan
This tags $home/src/adb.c as a cool program and searches for
a cool tag program.
; tag/Tag $home/src/tag/adb.c cool
; tag/adb -s cool tag
hth
PS: Use with caution :-)
^ permalink raw reply [flat|nested] 7+ messages in thread
* Re: [9fans] Tags for files
2004-10-13 16:24 [9fans] Tags for files Fco. J. Ballesteros
@ 2004-10-13 17:17 ` Russ Cox
2004-10-13 17:17 ` boyd, rounin
2004-10-13 17:25 ` Fco. J. Ballesteros
2004-10-14 0:56 ` Kenji Okamoto
1 sibling, 2 replies; 7+ messages in thread
From: Russ Cox @ 2004-10-13 17:17 UTC (permalink / raw)
To: Fans of the OS Plan 9 from Bell Labs
> There's a new tag utility at /n/sources/nemo/sys/src/cmd/tag
> (see its man page) to attach arbitrary tags to files and search
> for files using their tags (a la gmail).
I'm trying to understand this. It looks to me like in addition to
what you've said above, you can write filters that get run every
time a file is noticed to have been created or changed, so
that tags can be automatically attached.
Can you give examples of what kind of searches you do?
Russ
^ permalink raw reply [flat|nested] 7+ messages in thread
* Re: [9fans] Tags for files
2004-10-13 17:17 ` Russ Cox
@ 2004-10-13 17:17 ` boyd, rounin
2004-10-13 17:25 ` Fco. J. Ballesteros
1 sibling, 0 replies; 7+ messages in thread
From: boyd, rounin @ 2004-10-13 17:17 UTC (permalink / raw)
To: Russ Cox, Fans of the OS Plan 9 from Bell Labs
> Can you give examples of what kind of searches you do?
yeah
^ permalink raw reply [flat|nested] 7+ messages in thread
* Re: [9fans] Tags for files
2004-10-13 17:17 ` Russ Cox
2004-10-13 17:17 ` boyd, rounin
@ 2004-10-13 17:25 ` Fco. J. Ballesteros
2004-10-13 17:28 ` Fco. J. Ballesteros
1 sibling, 1 reply; 7+ messages in thread
From: Fco. J. Ballesteros @ 2004-10-13 17:25 UTC (permalink / raw)
To: 9fans
> I'm trying to understand this. It looks to me like in addition to
> what you've said above, you can write filters that get run every
> time a file is noticed to have been created or changed, so
> that tags can be automatically attached.
Yes. The thing is that the scan script generates an initial set of
tags for the files. The tags are actually generated by any /bin/tag/f*
script that is found. This is to save you the work of defining tags
that could be defined by a program. For example, I have used
the muid and permissions from the output of ls -l and the
name of elements in the full path name as the initial set of tags.
This is an example. This entry is for $home/src/9/block.c
/src/9/block.c muid=[nemo] perm=--rw-r--r-- usr nemo src 9 block.c
> Can you give examples of what kind of searches you do?
This would allow me to run "F 9 block" from acme. Other searches I do
are
F planb net slides
F tag sys src
F rwxrwxrwx sys
F os course slides
and the like. So far, I have not defined tags by hand. It seems that
in my case the names in the path suffice. But, for example, I added
the permissions as a tag soon after I started to use the program.
^ permalink raw reply [flat|nested] 7+ messages in thread
* Re: [9fans] Tags for files
2004-10-13 16:24 [9fans] Tags for files Fco. J. Ballesteros
2004-10-13 17:17 ` Russ Cox
@ 2004-10-14 0:56 ` Kenji Okamoto
2004-10-14 6:47 ` Fco. J. Ballesteros
1 sibling, 1 reply; 7+ messages in thread
From: Kenji Okamoto @ 2004-10-14 0:56 UTC (permalink / raw)
To: 9fans
> EXAMPLE
> This generates a new database.
> ; tag/scan
> This tags $home/src/adb.c as a cool program and searches for
> a cool tag program.
> ; tag/Tag $home/src/tag/adb.c cool
> ; tag/adb -s cool tag
Can this tag a program in the past, probably in venti, and search it
from the current fossil file server?
Kenji
^ permalink raw reply [flat|nested] 7+ messages in thread
end of thread, other threads:[~2004-10-14 6:47 UTC | newest]
Thread overview: 7+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2004-10-13 16:24 [9fans] Tags for files Fco. J. Ballesteros
2004-10-13 17:17 ` Russ Cox
2004-10-13 17:17 ` boyd, rounin
2004-10-13 17:25 ` Fco. J. Ballesteros
2004-10-13 17:28 ` Fco. J. Ballesteros
2004-10-14 0:56 ` Kenji Okamoto
2004-10-14 6:47 ` Fco. J. Ballesteros
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).