On Sun, Aug 27, 2006 at 03:01:04AM +0200, Axel Liljencrantz wrote: > I'm not an svn user, so I'm more or less unable to maintain these > completions. How about updating the svn completions? The relevant file > is /usr/share/fish/completions/svn.fish. It's a regular shellscript > file. :-)
finding the right file is the easy part, but i'll need to have a closer look at how these things work first. for svn (and cvs) all the commands have short abbreviations that are equivalent, so adding those seems tricky because they should not show up in the completion list (since that would be redundant and clutter up the list), but they should be recognized as a legal subcommand so that it is possible to continue with file completion in the following arguments. > >one way to make this easy could be that if a string starts with ./ or / > >it is always a directory, and hence would always do path completion. > >alternatively: if no other completions work on the given token, but path > >completion does, then do path completion. it should be like the default > >that always works. > The second alternative makes sense. Added. Good idea. Thanks. unfortunately (as i just realized) the second alternative does not help on an empty token (and also not in cases where the token matches on both filenames and options), because in that case fish will find working completions, only they are the wrong ones because file completions are wanted. 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/ ------------------------------------------------------------------------- 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
