From f74693e121b2c57b942f04d93f528facfe9bca5b Mon Sep 17 00:00:00 2001 From: lum Date: Wed, 11 Apr 2012 17:51:11 +0000 Subject: 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@ --- usr.bin/mg/funmap.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'usr.bin/mg/funmap.c') 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",}, -- cgit v1.2.3