From 4413b90d99016b996f975aae2eb5b21e4ae62c80 Mon Sep 17 00:00:00 2001 From: John Date: Mon, 3 Jun 2019 02:27:14 +0200 Subject: manual (wip) --- dwim.1 | 51 +++++++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 51 insertions(+) create mode 100644 dwim.1 (limited to 'dwim.1') diff --git a/dwim.1 b/dwim.1 new file mode 100644 index 0000000..99776e2 --- /dev/null +++ b/dwim.1 @@ -0,0 +1,51 @@ +.Dd $Mdocdate$ +.Dt DWIM 1 +.Os +.Sh NAME +.Nm dwim +.Nd do what i mean with a given phrase (file, URL etc.) +. +.Sh SYNOPSIS +.Nm dwim +.Ar phrase +. +.Sh DESCRIPTION +.Nm dwim +is a program similar to Plan 9's plumber. +It takes a string +.Ar ( phrase ) +and matches it against a number of regular expressions, +which are connected to handlers, specifying what to do with the phrase. +. +.Sh EXAMPLES +.Ss Without X selection +Open +.Li message-window.lisp +on line 164 +in +.Li $EDITOR : +. +.Bd -literal +$ grep 'def.*indicator ' *.lisp +message-window.lisp:164:(defun show-frame-indicator (group &optional force) +$ dwim message-window.lisp:164 +.Ed +. +.Ss With X selection +Open +.Li Makefile +in +.Li $EDITOR : +. +.Bd -literal +$ ls +LICENSE Makefile README.md repl repl.1 repl.c +# (select Makefile) +$ dwim +.Ed +. +.Sh EXTENDING +It is a simple Perl script that is easily extensible. +.Sh AUTHOR +.An -nosplit +.An John Ankarström Aq Mt john@ankarstrom.se -- cgit v1.2.3