Opened 14 years ago

Closed 14 years ago

#23221 closed enhancement (fixed)

sysutil/bash-completion evaluate pseudo-portnames in port command

Reported by: rmsfisher@… Owned by: raimue (Rainer Müller)
Priority: Low Milestone:
Component: ports Version: 1.8.2
Keywords: bash-completion pseudo-portname Cc:
Port: bash-completion

Description

Currently bash-completion for the port command does not work with pseudo-portnames.
I would propose evaluating tab completion to pseudo-portnames, as in:
port installed acti[tab] -> port installed active
port upgrade outd[tab] -> port upgrade outdated
It would be especially useful if the "outdated" or "inactive" could be replaced with actual outdated/inactive ports, but I have no idea how one would go about such a task.

Change History (3)

comment:1 Changed 14 years ago by raimue (Rainer Müller)

Status: newassigned

comment:2 Changed 14 years ago by raimue (Rainer Müller)

I added the pseudo-ports to the completion list for commands taking a port name in r62571.

I am not sure if replacing the pseudo-port with the list of ports is what the user intends to do. Such an expansion can clutter the terminal for a long list (for example pseudo port 'all'). Shell wildcards are also not expanded in usual bash-completion.

comment:3 Changed 14 years ago by raimue (Rainer Müller)

Resolution: fixed
Status: assignedclosed

I guess the current implementation is sufficient.

Note: See TracTickets for help on using tickets.