[Not Clojure related] How can I create a Neovim window that contains only a section of a file, identified by boundary regexes? I'm working on a large Markdown document, and would like to open one of the sections (`start=/^### Section/, end=/^### /`) in a separate window for reference. I'd like to edit, search and move around in that window without leaving that section. https://github.com/chrisbra/NrrwRgn is the closest I could find (and very neat!), but it prevents the source buffer from being modified while a narrowing window is open.
A simple solution could be to limit the cursor to a region (defined by start/end regexes) in a window
I guess it could be useful in large Clojure files too 🙂
Why not use FZF and search for lines in the current buffer?
I think in spacial terms, so having to jump around (even when it's easy to jump back) really breaks my flow.
It's much easier for me to have context A in window 1, and context B in window 2. In this case contexts A and B are in the same buffer.
Conversely, every time the cursor jumps, I have to reorient myself. I try to mitigate this by adding zvzz to some of my jumping mappings.
I press <C-o> to go back 🤔 But it doesn't work all the time But actually <C-T> is a better one
This looks helpful (I have not tried it myself): https://github.com/Pocco81/true-zen.nvim
Yeah, found that one too. It's a nice plugin, but not what I'm after.