dccsillag / magma-nvim

Interact with Jupyter from NeoVim.
GNU General Public License v3.0
977 stars 49 forks source link

[Feature Request] Code Folding Support #81

Open TATOAO opened 1 year ago

TATOAO commented 1 year ago

The current case is:

if there is a block of code (say 10 lines) is folded before the executing line, then the output window will be shifted downwards (10 lines). -------- test.py ----------- print('hello') # if execute this single line there, it works just fine

+-- 10 lines: ..... ---- # there are 10 lines being folded

print('hello') # if executing this single line, the output window would be at the bottom. (being shifted downwards 10 lines)

--------end test.py ---------------------

Hint of duplicate this issue, set the vim folding method to be "manual" and press zf after selecting the lines in visual mode

vim.opt.foldmethod = "manual"

So the essential issue would be when there are too many lines folded, no output window would be shown.