diff options
| author | Sebastiano Tronto <sebastiano@tronto.net> | 2022-02-14 12:02:13 +0100 |
|---|---|---|
| committer | Sebastiano Tronto <sebastiano@tronto.net> | 2022-02-14 12:02:13 +0100 |
| commit | 92e73d48e352e02cfc7f920402398928054a375f (patch) | |
| tree | e7d82af207ae3fb2222e693c9aae08b2378aee88 | |
| parent | f9b7d81af1e92a07d6da04e8f3d8af36c566722b (diff) | |
| download | scripts-92e73d48e352e02cfc7f920402398928054a375f.tar.gz scripts-92e73d48e352e02cfc7f920402398928054a375f.zip | |
Replaced xeditor -> xedit and fixed argument
| -rwxr-xr-x | xedit | 2 | ||||
| -rwxr-xr-x | xedit-filter | 4 |
2 files changed, 3 insertions, 3 deletions
| @@ -5,4 +5,4 @@ | |||
| 5 | 5 | ||
| 6 | editor=${EDITOR:-${VISUAL:-vi}} | 6 | editor=${EDITOR:-${VISUAL:-vi}} |
| 7 | 7 | ||
| 8 | terminal $editor | 8 | terminal $editor $@ |
diff --git a/xedit-filter b/xedit-filter index 9422760..c377473 100755 --- a/xedit-filter +++ b/xedit-filter | |||
| @@ -1,9 +1,9 @@ | |||
| 1 | #/!bin/sh | 1 | #/!bin/sh |
| 2 | 2 | ||
| 3 | # Open stdin in a text editor and sends modified selection to stdout | 3 | # Open stdin in a text editor and sends modified selection to stdout |
| 4 | # Requires: xeditor | 4 | # Requires: xedit |
| 5 | 5 | ||
| 6 | f=$(mktemp) | 6 | f=$(mktemp) |
| 7 | cat > "$f" | 7 | cat > "$f" |
| 8 | xeditor "$f" && cat "$f" | 8 | xedit "$f" && cat "$f" |
| 9 | 9 | ||
