pocco81 / auto-save.nvim

๐Ÿงถ Automatically save your changes in NeoVim
GNU General Public License v3.0
656 stars 58 forks source link

bug: Auto-save clobbers marks `[ and `] #79

Open textzenith opened 1 year ago

textzenith commented 1 year ago

Hi,

I really like this plugin โ€” it's amazing for Flutter dev! โ€” but it does create some strange bugs at times.

I've realized that autosave sets the 'last previously yanked or changed text' to the entire file.

You can try it โ€” paste something with autosave turned on, then try and go to the ends of your paste by using `[ and `], and it should take you to the start and end of the file instead.

Can you reproduce?

Might take some annoying / architectural changes to fix it, but please let me know if you know the reasons why, as I might still be able to hack together a fix in my local config ๐Ÿ™‚

Thanks!

primeapple commented 1 year ago

Just out of curiosity, did you try on the more maintained fork? https://github.com/okuuva/auto-save.nvim

simonmandlik commented 6 months ago

I tried and it still seems broken, https://github.com/okuuva/auto-save.nvim/issues/44