Better wl-clipedit and rbw-fzf
This commit is contained in:
parent
ca4e245fd0
commit
1deb75a769
6 changed files with 95 additions and 3 deletions
|
|
@ -3,7 +3,6 @@
|
|||
, wl-clipboard
|
||||
, coreutils
|
||||
, editor ? "hx"
|
||||
, terminal-command ? "kitty -e"
|
||||
,
|
||||
}:
|
||||
# 64 │ function clipcopy() { xclip -in -selection clipboard < "${1:-/dev/stdin}"; }
|
||||
|
|
@ -17,7 +16,7 @@ writeShellScriptBin "wl-clipedit" ''
|
|||
}"
|
||||
tmp_file=$(mktemp)
|
||||
wl-paste -t 'text/plain;charset=utf-8' -n > "$tmp_file"
|
||||
${terminal-command} ''${VISUAL:-''${EDITOR:-${editor}}} "$tmp_file"
|
||||
''${VISUAL:-''${EDITOR:-${editor}}} "$tmp_file"
|
||||
wl-copy -t 'text/plain;charset=utf-8' -n < "$tmp_file"
|
||||
rm "$tmp_file"
|
||||
''
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue