First Last Prev Next    No search results available      Search page      Enter new bug
Bug#: 171381
Alias:
Product:
Component:
Status: RESOLVED
Resolution: FIXED
Assigned To: Gentoo eselect Team <eselect@gentoo.org>
Hardware:
OS:
Version:
Priority:
Severity:
Reporter: David Durrleman <dualmoo@gmail.com>
Add CC:
CC:
Remove selected CCs
URL:
Summary:
Status Whiteboard:
Keywords:

Filename Description Type Creator Created Size Actions
_eselect a zsh completion function for eselect text/plain David Durrleman 2007-03-18 20:32 0000 1.35 KB Details
_eselect a better zsh completion function for eselect text/plain David Durrleman 2007-03-19 02:20 0000 1.13 KB Details
_eselect Version without sed text/plain Bapt 2007-10-29 16:17 0000 1.20 KB Details
Create a New Attachment (proposed patch, testcase, etc.) View All

Bug 171381 depends on: Show dependency tree
Bug 171381 blocks:
Votes: 0    Show votes for this bug    Vote for this bug

Additional Comments: (this is where you put emerge --info)


Not eligible to see or edit group visibility for this bug.






View Bug Activity   |   Format For Printing   |   XML   |   Clone This Bug


Description:   Opened: 2007-03-18 20:31 0000
zsh-completion currently doesn't support eselect.

I have written an _eselect function that does the work. I will attach it to
this bug.

It doesn't support every options of eselect (e.g the "--global" in "eselect
bashcomp list --global"), but it supports as much as the bash-completion
equivalent does.

Please comment, and if you find it acceptable, include it in the zsh-completion
package.

Reproducible: Always

Steps to Reproduce:
1. run zsh
2. type eselect <tab>
Actual Results:  
file completion occurs

Expected Results:  
eselect modules completion should have occurred

------- Comment #1 From David Durrleman 2007-03-18 20:32:53 0000 -------
Created an attachment (id=113708) [details]
a zsh completion function for eselect

------- Comment #2 From David Durrleman 2007-03-19 02:20:44 0000 -------
Created an attachment (id=113749) [details]
a better zsh completion function for eselect

I rewrote it because it was badly written. Here it is.

------- Comment #3 From Mike Kelly (RETIRED) 2007-03-29 08:45:39 0000 -------
Mamoru, how does this script look to you? Would you want to include it in the
main zsh-completion package? Or would you rather we package it with eselect?

------- Comment #4 From Doug Goldstein 2007-08-24 16:38:30 0000 -------
poke

------- Comment #5 From Bapt 2007-10-29 15:30:26 0000 -------
The code is not good because, it doesn't work at least on gentoo/freebsd
because of the sed command,

I'll try to remove sed and use a pure zsh way to do the job.

Anyway, I think this should be incorporated in zsh-completion, because
zsh-completion already provides the completion for most of the gentoo tools.

------- Comment #6 From Bapt 2007-10-29 16:17:55 0000 -------
Created an attachment (id=134650) [details]
Version without sed

Here is a new version based on David's one which avoid the use of sed.

Also remove the french header :).

please test it (I can only test on gentoo/freebsd)

In zsh completion function, it is better to use built-in function each time it
is possible (sed for example is not always portable)

------- Comment #7 From Saleem Abdulrasool (RETIRED) 2008-01-11 05:52:11 0000 -------
Added with 20080110

First Last Prev Next    No search results available      Search page      Enter new bug