clipedit.sh: added script
This commit is contained in:
parent
f904f8a9cf
commit
431c7dcdd8
8
src/.local/bin/deskutils/clipedit.sh
Executable file
8
src/.local/bin/deskutils/clipedit.sh
Executable file
@ -0,0 +1,8 @@
|
|||||||
|
#!/bin/sh
|
||||||
|
# Edit clipboard contents with $EDITOR
|
||||||
|
|
||||||
|
TMPFILE="$(mktemp)"
|
||||||
|
|
||||||
|
xsel -b > "$TMPFILE"
|
||||||
|
nvim "$TMPFILE"
|
||||||
|
cat "$TMPFILE" | xsel -ib
|
Loading…
Reference in New Issue
Block a user