dccsillag / magma-nvim

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

Add function to define span #87

Closed meatballs closed 1 year ago

meatballs commented 1 year ago

Relating to #78

WhiteBlackGoose commented 1 year ago

Hey, could you explain a bit in more detail what this PR does? I've looked up the issue but still not sure what it does

meatballs commented 1 year ago

It adds the function MagmaDefineCell which takes a start and end position as arguments and adds a Span instance into the buffer so that the defined range becomes an executable cell.

This is so an external tool (my neovim plugin) can define cells automatically without having to rely on the cursor position each time.

WhiteBlackGoose commented 1 year ago

Thanks!