{"action":"created","issue":{"url":"https://api.github.com/repos/neovim/neovim/issues/1908","labels_url":"https://api.github.com/repos/neovim/neovim/issues/1908/labels{/name}","comments_url":"https://api.github.com/repos/neovim/neovim/issues/1908/comments","events_url":"https://api.github.com/repos/neovim/neovim/issues/1908/events","html_url":"https://github.com/neovim/neovim/issues/1908","id":55936067,"number":1908,"title":"Registers for clipboard missing","user":{"login":"elmart","id":135757,"avatar_url":"https://avatars.githubusercontent.com/u/135757?v=3","gravatar_id":"","url":"https://api.github.com/users/elmart","html_url":"https://github.com/elmart","followers_url":"https://api.github.com/users/elmart/followers","following_url":"https://api.github.com/users/elmart/following{/other_user}","gists_url":"https://api.github.com/users/elmart/gists{/gist_id}","starred_url":"https://api.github.com/users/elmart/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/elmart/subscriptions","organizations_url":"https://api.github.com/users/elmart/orgs","repos_url":"https://api.github.com/users/elmart/repos","events_url":"https://api.github.com/users/elmart/events{/privacy}","received_events_url":"https://api.github.com/users/elmart/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/neovim/neovim/labels/bug","name":"bug","color":"fc2929"},{"url":"https://api.github.com/repos/neovim/neovim/labels/provider","name":"provider","color":"fad8c7"}],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":3,"created_at":"2015-01-29T18:16:51Z","updated_at":"2015-01-29T19:32:44Z","closed_at":null,"body":"If I do `:registers`, there's no trace of `+` or `*`.\r\nAlso, If I do `:put +`, I get `E850: Invalid register name`.\r\n\r\nI \u0010don' think we meant this when we removed code for clipboard support. Did we...?"},"comment":{"url":"https://api.github.com/repos/neovim/neovim/issues/comments/72088642","html_url":"https://github.com/neovim/neovim/issues/1908#issuecomment-72088642","issue_url":"https://api.github.com/repos/neovim/neovim/issues/1908","id":72088642,"user":{"login":"bfredl","id":1363104,"avatar_url":"https://avatars.githubusercontent.com/u/1363104?v=3","gravatar_id":"","url":"https://api.github.com/users/bfredl","html_url":"https://github.com/bfredl","followers_url":"https://api.github.com/users/bfredl/followers","following_url":"https://api.github.com/users/bfredl/following{/other_user}","gists_url":"https://api.github.com/users/bfredl/gists{/gist_id}","starred_url":"https://api.github.com/users/bfredl/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/bfredl/subscriptions","organizations_url":"https://api.github.com/users/bfredl/orgs","repos_url":"https://api.github.com/users/bfredl/repos","events_url":"https://api.github.com/users/bfredl/events{/privacy}","received_events_url":"https://api.github.com/users/bfredl/received_events","type":"User","site_admin":false},"created_at":"2015-01-29T19:32:44Z","updated_at":"2015-01-29T19:32:44Z","body":"Related to the discussion in #1288. A first step would be that the vimscript provider implements a concept of ownership. At least on X11, it could run `xsel` (or @fmoralesc improved utility) as a job, and check if we still own the clipboard by checking if the job is still running, and then use a cached value in the provider (I tried to do this, but there is some improvements to job infrastructure needed)\r\n Another solution, closer to `vim`, would be to reintroduce ownership in the provider infrastructure itself. This would mean reintroduce separate STAR/PLUS registers (+ a flag for each if this instance \"owns\" it). Then, the provider, some time after a clipboard_set, should notify `nvim` that we _lost_ ownership of this clipboard. (could be done in a job exit Autocommand) This means the provider will  be involved much less when `clipboard=unnamed` and just using the unnamed register internally."}}