nvim-telekasten / telekasten.nvim

A Neovim (lua) plugin for working with a markdown zettelkasten / wiki and mixing it with a journal, based on telescope.nvim
MIT License
1.38k stars 86 forks source link

[FR] Choose clipboard manager provider #320

Closed andy941 closed 5 months ago

andy941 commented 5 months ago

Please confirm

Is your feature request related to a problem? Please describe. On my system (Manjaro i3), xsel does not seem to work properly, I primarily use xclip. In the telekasten logic the order with which clipboard providers are chosen is arbitrary and hard-coded. Would it be possible to add a flag to override the behaviour? When I force xclip to be used the image pasting works like a charm. Being able to paste images is kind of a deal-breaker for me.

Thank you for the great plugin! Andrea

lambtho12 commented 5 months ago

Yeah. I am not really a fan of the current logic either, but while testing it did not seem to have any issue on my end, so I assumed that it was good enough.

We could indeed add an option to select explicitly between xsel or xclip. This would be a very simple change and good first issue to tackle. Do you want to have a shot at it? I will gladly review and merge the PR for that.