commit 8665280d65ff8c9d8b382579d877e42b57a000a6 parent af05c6c366ce928818848a3d8c897e7c52ae9d0f Author: Sebastiano Tronto <sebastiano@tronto.net> Date: Tue, 30 May 2023 21:08:53 +0200 Removed experiments folder Diffstat:
D | experiments/edit-menu | | | 25 | ------------------------- |
1 file changed, 0 insertions(+), 25 deletions(-)
diff --git a/experiments/edit-menu b/experiments/edit-menu @@ -1,25 +0,0 @@ -#!/bin/sh - -# A "filter", based on your favorite editor. -# It reads lines from stdin, opens a file containing these lines -# with your favorite editor, and then prints the content of the file -# $EDITMENU to stdout. I have configured my editor to write the -# current line to $EDITMENU when pressing ;; (semicolon twice) like this -# map ;; !!tee -a $EDITMENU^M " For nvi - -# It can be used to replace dmenu or similar menu applications in -# constrained environment. It works even without any (n)curses library, -# assuming you use a suitable editor (like ed). - -editor=${EDITOR:-vi} - -export EDITMENU=$(mktemp) -in=$(mktemp) - -cat > "$in" - -# This is a dirty trick to "help" the editor (vi) understand that it can -# take over the tty to get its input. -$editor "$in" < /dev/tty - -cat $EDITMENU