aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJohn <john@ankarstrom.se>2019-06-03 02:27:14 +0200
committerJohn <john@ankarstrom.se>2019-06-03 02:27:14 +0200
commit4413b90d99016b996f975aae2eb5b21e4ae62c80 (patch)
treef8b287a03751cd91d9ae7dc295fd325567b51732
parent388df811f6abe52d79c87729d6cdfdc02ab9103b (diff)
downloaddwim-4413b90d99016b996f975aae2eb5b21e4ae62c80.tar.gz
manual (wip)
-rw-r--r--dwim.151
1 files changed, 51 insertions, 0 deletions
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