NrrwRgn icon indicating copy to clipboard operation
NrrwRgn copied to clipboard

not able to write NR window to a file?

Open pinggit opened this issue 1 year ago • 3 comments

in NR window, I want to write the content to a file, but nothing happened... is this expected?

pinggit avatar Mar 17 '24 00:03 pinggit

I think so. I think you need to use :NRNoSyncOnWrite to make it write like an ordinary buffer. See the help: https://github.com/chrisbra/NrrwRgn/blob/e027db9d94f94947153cd7b5ac9abd04371ab2b0/doc/NarrowRegion.txt#L130-L137

chrisbra avatar Mar 17 '24 20:03 chrisbra

thanks for confirming the issue.Is it possible the default behavior can be change in such a way that when write without a file name it syncs to the original buffer, otherwise just do the normal file write, which maybe is more convenient? Sent from my iPhoneOn Mar 17, 2024, at 16:33, Christian Brabandt @.***> wrote: I think so. I think you need to use :NRNoSyncOnWrite to make it write like an ordinary buffer. See the help: https://github.com/chrisbra/NrrwRgn/blob/e027db9d94f94947153cd7b5ac9abd04371ab2b0/doc/NarrowRegion.txt#L130-L137

—Reply to this email directly, view it on GitHub, or unsubscribe.You are receiving this because you authored the thread.Message ID: @.***>

pinggit avatar Mar 18 '24 03:03 pinggit

Sorry, I am not planning to make this change.

chrisbra avatar Mar 18 '24 07:03 chrisbra