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

Re: 'man' completion



Gossamer <gossamer@xxxxxxxxxxxxxx> writes:

> I have a nifty set of completion macros for man pages but unfortunately
> they stop me from getting the filename completion when I'm specifying the
> file directly, eg:
> 
> man ./goofey.1

Ah.  I think if you stick a -f right after the compctl, then that'll
give you filename completion too.

compctl -f -x 'S[1][2][3][4][5][6][7][8][9]' -k '(1 2 3 4 5 6 7 8 9)' \
  - 'R[[1-9nlo]|[1-9](|[a-z]),^*]' -K 'match-man' \
  - 's[-M],c[-1,-M]' -g '*(-/)' \
  - 's[-P],c[-1,-P]' -c \
  - 's[-S],s[-1,-S]' -k '( )' \
  - 's[-]' -k '(a d f h k t M P)' \
  - 'p[1,-1]' -c + -K 'match-man' \
  -- man



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