Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 115217 - Gentoo fish completions tracker
Summary: Gentoo fish completions tracker
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Low enhancement (vote)
Assignee: Donnie Berkholz (RETIRED)
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2005-12-11 11:46 UTC by Mike Auty (RETIRED)
Modified: 2006-04-22 06:52 UTC (History)
1 user (show)

See Also:
Package list:
Runtime testing required: ---


Attachments
Emerge.fish-0.0.1 (emerge.fish,3.71 KB, text/plain)
2005-12-11 11:50 UTC, Mike Auty (RETIRED)
Details
Emerge.fish-0.0.2 (emerge.fish,3.59 KB, text/plain)
2005-12-11 15:41 UTC, Mike Auty (RETIRED)
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Mike Auty (RETIRED) gentoo-dev 2005-12-11 11:46:55 UTC
Ok, this is a bug to monitor the status of completions of commands like emerge,
equery etc. for the friendly interactive shell (fish).  Once they're complete
and working well, they may get turned into a package like gentoo-fishcomp, or
something.

The first attachment is my initial version of the emerge completion.  It's very
basic and doesn't locate and of the ebuild names, but has an almost complete
list of all the flags...
Comment 1 Mike Auty (RETIRED) gentoo-dev 2005-12-11 11:50:11 UTC
Created attachment 74517 [details]
Emerge.fish-0.0.1

Emerge.fish-0.0.1

Contains completions for the emerge command with all of the flags from man
emerge coded in.

Known bugs:

* usepkg and usepkgonly don't have descriptions yet
* There's some kind of a problem with comments or the function:
  complete: Too many arguments
  /etc/fish.d/completions/emerge.fish (line 1): function complete_ebuilds
* The ebuilds aren't found by category or by package name or by specification.
Comment 2 Mike Auty (RETIRED) gentoo-dev 2005-12-11 15:35:11 UTC
Right, I figured out that first bug.  It's because the place holder function I
was using to list possible ebuild completions wasn't returning anything. 
Apparently it must return at least one non-whitespace result to avoid those
completion errors.  Also the -x (exclusive) switch doesn't work quite as you
might think.  It turns out that it's just a combination of -f and -r, meaning it
isn't followed by a file and *is* followed by some other argument (meaning it
gains an = sign after it, which is actually wrong).  Some further work will be
required to get things like "--help sync" working rather than "--help=sync". 
But that's enough for today...
Comment 3 Mike Auty (RETIRED) gentoo-dev 2005-12-11 15:41:01 UTC
Created attachment 74536 [details]
Emerge.fish-0.0.2

Contains completions for the emerge command with all of the flags from man
emerge coded in.

Known bugs:

* usepkg and usepkgonly don't have descriptions yet
* The ebuilds aren't found by category or by package name or by specification.
Comment 4 Axel Liljencrantz 2005-12-13 11:16:52 UTC
The problem with 'complete -x' adding a '=' to switches is that some commands
can't parse strings like '--help=sync' but can parse '--help sync', while other
commands do exactly the opposite. Real GNU Getopt parsing allows both. You
should file a bug with the emerge maintainers.
Comment 5 Mike Auty (RETIRED) gentoo-dev 2006-04-22 06:52:52 UTC
I'm closing this bug since the fish completions seem to have come on leaps and bounds.  Please start a new bug if you feel the gentoo fish-completions are lacking...