On 1/24/06, Axel Liljencrantz <[EMAIL PROTECTED]> wrote: > 2006/1/24, Sean Higgins <[EMAIL PROTECTED]>: [...] > > I have gotten sudo to list the valid commands, but after selecting the > > command, I would like the completion to work for the "command" and not for > > sudo. Is there a way to do that? > > Hmm. Not _yet_. This is a very sane request, I'll just have to think > about the proper way to implement it.
Other commands that take a command as an argument are: command, builtin, complete, exec, eval, and, or, not; and probably others. Perhaps `complete' could be extended to allow specifying that a command takes a command as an argument? A more general mechanism might allow specifying a command to run to check for valid completions. Perhaps a related issue is coloring <command> green if it is correct, red if incorrect. This is somewhat semantic coloring. ------------------------------------------------------- This SF.net email is sponsored by: Splunk Inc. Do you grep through log files for problems? Stop! Download the new AJAX search engine that makes searching your log files as easy as surfing the web. DOWNLOAD SPLUNK! http://sel.as-us.falkag.net/sel?cmd=lnk&kid3432&bid#0486&dat1642 _______________________________________________ Fish-users mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/fish-users
