Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
[PATCH 4/4] _man: strip section and extension from all manual pages.
- X-seq: zsh-workers 26830
- From: "Alexey I. Froloff" <raorn@xxxxxxxxxxxx>
- To: zsh workers <zsh-workers@xxxxxxxxxx>
- Subject: [PATCH 4/4] _man: strip section and extension from all manual pages.
- Date: Sun, 12 Apr 2009 15:15:57 +0400
- Cc: "Alexey I. Froloff" <raorn@xxxxxxxxxxxx>
- In-reply-to: <1239534957-9358-2-git-send-email-raorn@xxxxxxxxxxxx>
- Mailing-list: contact zsh-workers-help@xxxxxxxxxx; run by ezmlm
- References: <1239534957-9358-1-git-send-email-raorn@xxxxxxxxxxxx> <1239534957-9358-2-git-send-email-raorn@xxxxxxxxxxxx>
Before:
$ man n op<Tab>
---- manual page, section n ----
open.n.gz optimize.n.gz option.n.gz options.n.bz2
After:
$ man n op
---- manual page, section n ----
open optimize option options
Signed-off-by: Alexey I. Froloff <raorn@xxxxxxxxxxxx>
---
Completion/Unix/Command/_man | 4 ++--
1 files changed, 2 insertions(+), 2 deletions(-)
diff --git a/Completion/Unix/Command/_man b/Completion/Unix/Command/_man
index 8f28d34..dc5bb1f 100644
--- a/Completion/Unix/Command/_man
+++ b/Completion/Unix/Command/_man
@@ -98,9 +98,9 @@ _man_pages() {
if ((CURRENT > 2)) ||
! zstyle -t ":completion:${curcontext}:manuals.$sect" insert-sections
then
- compadd "$@" - ${pages%.(?|<->*(|.gz|.bz2|.Z))}
+ compadd "$@" - ${pages%.((?|<->*)(|.gz|.bz2|.Z))}
else
- compadd "$@" -P "$sopt$sect " - ${pages%.(?|<->*(|.gz|.bz2|.Z))}
+ compadd "$@" -P "$sopt$sect " - ${pages%.((?|<->*)(|.gz|.bz2|.Z))}
fi
}
--
1.6.1.3.GIT
Messages sorted by:
Reverse Date,
Date,
Thread,
Author