aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJohn <john@ankarstrom.se>2019-06-06 17:32:27 +0200
committerJohn <john@ankarstrom.se>2019-06-06 17:32:27 +0200
commit940a74983280b1a00bbdfb67001ad21087086902 (patch)
treea34d40bcdbda32712b9a041edcb4ef92e32895e1
parent47b775e21bfd158268eb8dcba066489484ac4900 (diff)
downloaddwim-940a74983280b1a00bbdfb67001ad21087086902.tar.gz
add handler for man(section) notation
-rwxr-xr-xdwim5
1 files changed, 5 insertions, 0 deletions
diff --git a/dwim b/dwim
index dd26e77..b8957fb 100755
--- a/dwim
+++ b/dwim
@@ -52,6 +52,11 @@ for ($phrase) {
# otherwise fall through
}
+ if (/^([^\s]+)\(([^\s]+)\)/) {
+ handle "{manpage}({section})";
+ run @LAUNCHER, "man", "$2", "$1";
+ }
+
if (/^([^\s]+)$/) {
handle "maildir / directory / file";
my $p = path $1;