diff options
author | John <john@ankarstrom.se> | 2019-06-06 17:32:27 +0200 |
---|---|---|
committer | John <john@ankarstrom.se> | 2019-06-06 17:32:27 +0200 |
commit | 940a74983280b1a00bbdfb67001ad21087086902 (patch) | |
tree | a34d40bcdbda32712b9a041edcb4ef92e32895e1 | |
parent | 47b775e21bfd158268eb8dcba066489484ac4900 (diff) | |
download | dwim-940a74983280b1a00bbdfb67001ad21087086902.tar.gz |
add handler for man(section) notation
-rwxr-xr-x | dwim | 5 |
1 files changed, 5 insertions, 0 deletions
@@ -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; |