From: lum Date: Sun, 2 May 2021 14:13:17 +0000 (+0000) Subject: dired-shell-command is listed in the man page under 'DIRED KEY X-Git-Url: http://artulab.com/gitweb/?a=commitdiff_plain;h=c543bf3f327bbb85d2f9fc817ae3eeda1d008f0e;p=openbsd dired-shell-command is listed in the man page under 'DIRED KEY BINDINGS' but not under 'DIRED COMMANDS'. Add it in. --- diff --git a/usr.bin/mg/dired.c b/usr.bin/mg/dired.c index c436bf7e6b2..810ea3ae334 100644 --- a/usr.bin/mg/dired.c +++ b/usr.bin/mg/dired.c @@ -1,4 +1,4 @@ -/* $OpenBSD: dired.c,v 1.99 2021/04/20 10:02:50 lum Exp $ */ +/* $OpenBSD: dired.c,v 1.100 2021/05/02 14:13:17 lum Exp $ */ /* This file is in the public domain. */ @@ -220,6 +220,7 @@ dired_init(void) funmap_add(d_refreshbuffer, "dired-revert", 0); funmap_add(d_backpage, "dired-scroll-down", 0); funmap_add(d_forwpage, "dired-scroll-up", 0); + funmap_add(d_shell_command, "dired-shell-command", 1); funmap_add(d_undel, "dired-unmark", 0); funmap_add(d_undelbak, "dired-unmark-backward", 0); funmap_add(d_killbuffer_cmd, "quit-window", 0); diff --git a/usr.bin/mg/mg.1 b/usr.bin/mg/mg.1 index c13a7c15366..e559affbb00 100644 --- a/usr.bin/mg/mg.1 +++ b/usr.bin/mg/mg.1 @@ -1,7 +1,7 @@ -.\" $OpenBSD: mg.1,v 1.124 2021/04/22 19:50:55 lum Exp $ +.\" $OpenBSD: mg.1,v 1.125 2021/05/02 14:13:17 lum Exp $ .\" This file is in the public domain. .\" -.Dd $Mdocdate: April 22 2021 $ +.Dd $Mdocdate: May 2 2021 $ .Dt MG 1 .Os .Sh NAME @@ -1068,6 +1068,8 @@ Refresh the dired buffer while retaining any flags. Scroll down the dired buffer. .It dired-scroll-up Scroll up the dired buffer. +.It dired-shell-command +Pipe the file under the current cursor position through a shell command. .It dired-unmark Remove the deletion flag for the file on the current line. .It dired-unmark-backward