You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
This repo is archived. You can view files and clone it, but cannot push or open issues/pull-requests.

14 line
242B

  1. #!/usr/bin/elvish
  2. var tmpfile = (mktemp)
  3. var selection = clipboard
  4. if (<= 1 (count $args) ) {
  5. set selection = $args[0]
  6. }
  7. xclip -o -selection $selection > $tmpfile
  8. mousepad $tmpfile
  9. xclip -i -selection $selection < $tmpfile
  10. rm $tmpfile