vim-dotoo icon indicating copy to clipboard operation
vim-dotoo copied to clipboard

Not possible to clock-in on a caption in unsaved buffer / dotoo file

Open belugame opened this issue 4 years ago • 3 comments

I'm on NVIM v0.4.3

  • I open an unsaved buffer with dotoo extension e.g. nvim foo.dotoo
  • Add "* my caption" as first line
  • Press gI in normal mode on it -> nothing happens.

Only when I save the file and try again. I was expecting it to work on any buffer with dotoo extension.

belugame avatar Jul 12 '20 06:07 belugame

@belugame Interesting, while the parser is capable of parsing arbitrary text, I believe the modifications to the in-memory representation of headlines can only serialize to a file on disk. I do consider this as a bug, just hadn't considered the need for something like this. Should be reasonably easy fix. Thanks for reporting.

dhruvasagar avatar Jul 12 '20 06:07 dhruvasagar

I'm glad you don't mind me nitpicking :) Really appreciate your responsiveness and work! :+1: With it I will be able to cut emacs out of my setup and only edit with vim again

belugame avatar Jul 12 '20 06:07 belugame

@belugame That's precisely why I wrote this plugin!

dhruvasagar avatar Jul 12 '20 07:07 dhruvasagar