Files
neovim/runtime
Tim Morgan d8316f2a1b clipboard: Always copy as plain text in Wayland #9737
`wl-copy` by default tries to determine the mime type of a copied bit of
text. From the [readme](https://github.com/bugaevc/wl-clipboard):

> wl-copy automatically infers the type of the copied content by running
> xdg-mime(1) on it.

So copying a Ruby script from Nvim may store it in the Wayland clipboard
as mime-type `application/x-ruby`.

This is a small reproduction without Nvim:

    $ cat test.rb
    #!/usr/bin/env ruby
    puts 'hello world'
    $ cat test.rb | wl-copy
    $ wl-paste --list-types
    application/x-ruby

This commit fixes that by telling wl-copy that all text copied from
Nvim has the mime type `text/plain`.

    $ cat test.rb | wl-copy --type text/plain
    $ wl-paste --list-types
    text/plain;charset=utf-8
2019-03-16 22:55:24 +01:00
..
2018-10-29 23:55:45 +01:00
2019-02-06 22:18:34 +01:00
2018-10-30 00:05:25 +01:00
2018-10-28 14:18:21 +01:00
2017-11-07 01:16:42 +01:00
2014-12-19 15:28:49 -05:00
2018-01-15 23:58:52 +01:00
2018-10-29 09:32:29 +01:00
2019-01-04 02:17:23 +01:00
2016-04-16 23:06:24 -07:00
2018-10-29 23:54:15 +01:00
2018-10-29 09:50:08 +01:00
2017-01-31 02:02:09 +01:00
2014-07-29 02:12:31 +00:00
2018-10-28 14:05:14 +01:00
2017-11-07 23:07:03 +01:00