to solve what you perceive to be a problem you must ask yourself: what
is the one thing that is fully aware of the current namespace? it's
obviously not rio: it simply juggles windows with shells in them. is
it the shell? putting the completion in the shell itself would work
for plain terminals, but wouldn't work for rio. is it the kernel?
would you bother adding to the kernel something as silly as command
completion? how about completing across a network?
all difficult questions for a silly problem ;)
This was the issue that prompted my experimental work for cross-namespace
visibility (see
https://wiki.ietfng.org/pub/Plan9/KernelInternals/CrossNamespaceWalkProject
if you're curious). This experiment is probably not the Right Way to do
this, but it may be food for thought.
Another alternative would be to spawn an exportfs "next to" the rc inside
the window, and have rio use that to find completions. Not terribly
pleasant, but might be workable.
--nwf;
i sometimes wonder whether the ^F completion stuff wasn't left this
way on purpose, as if to illustrate the futility of (essentially) a
single-node solution in the presence of distributed environments.
to solve what you perceive to be a problem you must ask yourself: what
is the one thing that is fully aware of the current namespace? it's
obviously not rio: it simply juggles windows with shells in them. is
it the shell? putting the completion in the shell itself would work
for plain terminals, but wouldn't work for rio. is it the kernel?
would you bother adding to the kernel something as silly as command
completion? how about completing across a network?
all difficult questions for a silly problem ;)
you can accomplish this simply by using the plumber which,
by convention, shares a namespace with rio. suppose you
want insert to work with sources. then plumbing the string
Local 9fs sources
will allow insert to wor. alternatively, one might wish
to import sources with an aan connection before starting
rio. this works pretty well for me since most of the time
it's fairly easy to anticipate the stuff you're going to add
to the namespace.
- erik
I got the tip from rog's post to affect rio's ns,
plumber's actually.
http://9fans.net/archive/2005/02/171
--
Federico G. Benavento
really? i use completion in the acme tag line more often.
- erik
You can even use u9fs (or sftpfs) to connect to a unix box and ssh to
connect to a remote unix host, and plumb files (or use <ins> to expand
file names), this parses the current directory embedded in the unix
host's prompt - see rwd(1).
I have a similar system for accessing windows servers and windows workstations,
though I use my own server on the workstation rather than openssh.
-Steve