Zsh Mailing List Archive
Messages sorted by: Reverse Date, Date, Thread, Author

menuselection with manpages



Howdy,
I'm using completion for the 'man' command with menuselection (sorted
by sections). Now, if I enter 'man cron<TAB>' I am dropped into a
selection for crontab(1) crontab(5) and cron(8).

It looks like this:

[snip]
% man crontab
- manual page, section 1 -
crontab
- manual page, section 5 -
crontab
- manual page, section 8 -
cron
[snap]

If I want to read crontab(5) and choose the crontab entry from the 5th
section in the menu, it will be completed as 'man crontab' which would
display crontab(1).

How would I get the completion to add the section to the completion,
like 'man 5 crontab'?

Regards, Frank



Messages sorted by: Reverse Date, Date, Thread, Author