summaryrefslogtreecommitdiff
path: root/usr.bin/mg/funmap.c
diff options
context:
space:
mode:
authorlum <lum@cvs.openbsd.org>2012-04-11 17:51:11 +0000
committerlum <lum@cvs.openbsd.org>2012-04-11 17:51:11 +0000
commitf74693e121b2c57b942f04d93f528facfe9bca5b (patch)
treefb7839728e9ed1925f0b49befea22aba7acbae33 /usr.bin/mg/funmap.c
parent4d47f0f9dda13803983db6e4569e70be17ad5776 (diff)
Add:
1. C-x h to mark whole buffer. 2. M-| to pipe current region to external command. From Sunil Nimmagadda. Feedback from deraadt@ and myself. ok for man page amendments from jmc@
Diffstat (limited to 'usr.bin/mg/funmap.c')
-rw-r--r--usr.bin/mg/funmap.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/usr.bin/mg/funmap.c b/usr.bin/mg/funmap.c
index a1c05f77352..3a1132b0fbb 100644
--- a/usr.bin/mg/funmap.c
+++ b/usr.bin/mg/funmap.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: funmap.c,v 1.36 2012/03/14 13:56:35 lum Exp $ */
+/* $OpenBSD: funmap.c,v 1.37 2012/04/11 17:51:10 lum Exp $ */
/* This file is in the public domain */
@@ -113,6 +113,7 @@ static struct funmap functnames[] = {
{localbind, "local-set-key",},
{localunbind, "local-unset-key",},
{makebkfile, "make-backup-files",},
+ {markbuffer, "mark-whole-buffer",},
{do_meta, "meta-key-mode",}, /* better name, anyone? */
{negative_argument, "negative-argument",},
{newline, "newline",},
@@ -166,6 +167,7 @@ static struct funmap functnames[] = {
{setfillcol, "set-fill-column",},
{setmark, "set-mark-command",},
{setprefix, "set-prefix-string",},
+ {piperegion, "shell-command-on-region",},
{shrinkwind, "shrink-window",},
#ifdef NOTAB
{space_to_tabstop, "space-to-tabstop",},