zen-mode.nvim icon indicating copy to clipboard operation
zen-mode.nvim copied to clipboard

Zen mode forgets the changelist of the previous window

Open smithbm2316 opened this issue 4 years ago • 4 comments

I'm not sure if this is easily tackleable, however it is something that I would love to be added to zen-mode. I'd be happy to look into implementing this myself sometime in the coming week or two, as I use the g; command a lot to jump to my most recent edit. However when I toggle zen mode on/off, because it puts it in a new floating buffer the changelist of the previous window is forgotten. I'm mostly putting this here as a reminder to myself to look into trying to find a workaround to push as a PR for this, as I doubt many people use the g; command as heavily as I do. Thanks for all of your hard work on this plugin, lua-dev.nvim, and tokyonight! I've been loving using all of the above on a daily basis :smile:

smithbm2316 avatar May 27 '21 21:05 smithbm2316

I hadn't noticed this. Good catch!

This seems to be a bug in Neovim, since changelists are bound to the buffer right?

folke avatar May 27 '21 21:05 folke

Definitely a bug it seems. If you make a single edit in the zen window, then the changelist works again. I'll report it upstream

folke avatar May 27 '21 22:05 folke

update: the changelist works, but the position in the list has been reset to the first change

folke avatar May 28 '21 10:05 folke