diff options
| -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 | ||
