Resolves #18795. This feature is pretty much broken and I don't see any good reason for keeping it. Since we have the clipboard provider feature, this feature can be implemented using wl-clipboard (which I guess has a more reliable focus stealing method):
vim9script def Available(): bool return executable("wl-copy") == 1 && executable("wl-paste") == 1 enddef def Copy(reg: string, type: string, str: list<string>): void var args: string = "wl-copy" if reg == "*" args ..= " -p" endif system(args, str) enddef def Paste(reg: string): tuple<string, list<string>> var args: string = "wl-paste --type text/plain" if reg == "*" args ..= " -p" endif return ("", systemlist(args)) enddef v:clipproviders["wl_clipboard"] = { available: Available, copy: { "+": Copy, "*": Copy }, paste: { "+": Paste, "*": Paste } } set clipmethod=wl_clipboard
https://github.com/vim/vim/pull/19984
(21 files)
—
Reply to this email directly, view it on GitHub.
You are receiving this because you are subscribed to this thread.![]()
@64-bitman pushed 1 commit.
—
View it on GitHub or unsubscribe.
You are receiving this because you are subscribed to this thread.![]()
@64-bitman pushed 1 commit.
You are receiving this because you are subscribed to this thread.![]()
@64-bitman pushed 1 commit.
You are receiving this because you are subscribed to this thread.![]()
Thanks, let me put this alternative into the docs, in case anybody is relying on the focus-stealing feature
—
Reply to this email directly, view it on GitHub, or unsubscribe.
You are receiving this because you are subscribed to this thread.![]()
—
Reply to this email directly, view it on GitHub, or unsubscribe.
You are receiving this because you are subscribed to this thread.![]()