gbprod / yanky.nvim

Improved Yank and Put functionalities for Neovim
Do What The F*ck You Want To Public License
802 stars 22 forks source link

Selection of a history in telescope always ends in pasting the latest history record #138

Closed puppyapple closed 9 months ago

puppyapple commented 9 months ago
image

As showed above, when I trigger yanky.nvim telescope window, I cycled up and press enter at the No.13 history, but at the cursor position, the text pasted is always the lastest one(showed below)

image

The config I use is just the default setting from Lazyvim(https://www.lazyvim.org/extras/coding/yanky) I am on a remote Ubuntu through SSH, and the terminal is kitty with fish shell.

pmatulis commented 9 months ago

I had a similar problem (see #134) when I was interacting with a remote host. I think it has to do with the clipboard. Run :checkhealth.

Also try setting this to false (by default it is true):

  system_clipboard = {
    sync_with_ring = false,
  },
gbprod commented 9 months ago

Ok! I can reproduce this issue using a ssh, I try to find a fix.

puppyapple commented 9 months ago

Ok! I can reproduce this issue using a ssh, I try to find a fix.

Thanks for the work. Looking forward to updates!

gbprod commented 9 months ago

Should be fixed now, can you confirm ?

puppyapple commented 9 months ago

Should be fixed now, can you confirm ?

Wonderful, it works well now. Thank you for the quick fix. I close this.