On 8/27/06, Martin Bähr <[EMAIL PROTECTED]> wrote:
> On Sun, Aug 27, 2006 at 04:21:05AM +0200, Axel Liljencrantz wrote:
> > It does help on an empty token, so long as there are no other
> > completions. And since switches won't be displayes as possible
> > completions unless at least the initial hyphen has been given, there
> > will rarely be a conflict between the two.
>
> not so rare as you may think:
> svn, cvs, darcs, apt, pbuilder, make...
>
> it seems like many developer tools like to use this subcommand style

There is a many tools that use subcommands, yes. But with 'conflict' I
meant situations where file completion is not provided but might
possibly make sense. Poor wording on my part, though I can't think of
a better word. Unless the completions are badly written/buggy (in
which case I suggest you report this as a bug), they should very
rarely stop file completion unless it makes sense. The darcs
completions at least only disable file completion on the first
argument, since that has to be a subcommand. I could update the svn
completions to do the same, if that makes sense. I don't know, since I
haven't used svn.

>
> > If it was impossible to ever turn off file completion, it would limit
> > the usefulness of command specific completions in some situations
>
> recognizing / or ./ as the start for file completion should not be a
> problem though. this is not forcing file completion to be always on, but
> rather a way to selectively turn them on when needed.

It would be a problem. It would reduce functionality for many
completions. For example, the 'bunzip2' command will currently only
complete using filenames of actual bzip2 archives. 'rpm' does the same
things with rpm files in some situations. 'mount'/'umount' only
completes using mountpoints. 'cd', 'rmdir' and many other commands
only give you directories as completions. With the suggested /
functionality, the bunzip2 completions would offer to inflate any file
not in the current directory, same with the other mentioned commands.
In some situations, offering a selection of only some files is a major
feature.

>
> greetings, martin.
> --
> cooperative communication with sTeam      -     caudium, pike, roxen and unix
> offering: programming, training and administration   -  anywhere in the world
> --
> pike programmer   travelling and working in europe             open-steam.org
> unix system-      bahai.or.at                        iaeste.(tuwien.ac|or).at
> administrator     (caudium|gotpike).org                          is.schon.org
> Martin Bähr       http://www.iaeste.or.at/~mbaehr/
>


-- 
Axel

-------------------------------------------------------------------------
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
_______________________________________________
Fish-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/fish-users

Reply via email to