Browse Source

Nevermind :(

master
Micah Halter 1 year ago
parent
commit
6249545145
Signed by: mehalter GPG Key ID: 4224A6EA9A8CAAA8
  1. 11
      scripts/.local/bin/vim-anywhere

11
scripts/.local/bin/vim-anywhere

@ -1,6 +1,13 @@
#!/bin/env sh
setclip() {
xclip -selection c
}
file=$(mktemp).md
$TERMINAL -e "i3-runner \"$EDITOR '$file'\""
$TERMINAL -e "i3-runner \"$EDITOR '$file'\"" # replace with your favorite terminal
setclip <"$file"
rm "$file"
xdotool type --clearmodifiers --file "$file" && rm "$file"
xdotool key ctrl+v
Loading…
Cancel
Save