From 940a74983280b1a00bbdfb67001ad21087086902 Mon Sep 17 00:00:00 2001 From: John Date: Thu, 6 Jun 2019 17:32:27 +0200 Subject: add handler for man(section) notation --- dwim | 5 +++++ 1 file changed, 5 insertions(+) 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; -- cgit v1.2.3