My BufWritePost autocommands were not firing for the narrowed region, and after a little bit of digging I got to the conclusion that this had something to do with the fact that the plugin uses BufWriteCmd to sync data back into the original window, and that somehow that causes BufWrite and BufWritePost events from firing correctly (I am not an expert, so apologies if this analysis is incomplete). Anyways, I was looking for a way to reinstate these events for the narrowed window, and the cleanest solution I came up with was to add an additional hook, b:nrrw_aucmd_writepost, executed in the narrowed window (and not in the original one a la b:nrrw_aucmd_written).
Anyways, let me know where you stand on getting these changes merged, and / or if you preferred I tackled the problem (I hope it's clear what I am trying to achieve), differently.
My
BufWritePost
autocommands were not firing for the narrowed region, and after a little bit of digging I got to the conclusion that this had something to do with the fact that the plugin usesBufWriteCmd
to sync data back into the original window, and that somehow that causesBufWrite
andBufWritePost
events from firing correctly (I am not an expert, so apologies if this analysis is incomplete). Anyways, I was looking for a way to reinstate these events for the narrowed window, and the cleanest solution I came up with was to add an additional hook,b:nrrw_aucmd_writepost
, executed in the narrowed window (and not in the original one a lab:nrrw_aucmd_written
).Anyways, let me know where you stand on getting these changes merged, and / or if you preferred I tackled the problem (I hope it's clear what I am trying to achieve), differently.
Ciao, M.