[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: S-RET
From: |
Juri Linkov |
Subject: |
Re: S-RET |
Date: |
Mon, 16 Nov 2020 11:49:53 +0200 |
User-agent: |
Gnus/5.13 (Gnus v5.13) Emacs/28.0.50 (x86_64-pc-linux-gnu) |
>> What I miss in Org Babel is an equivalent of 'S-RET' that in Jupyter
>> creates a new code block relative to the current code block.
>
> 'C-c C-v C-d' (org-babel-demarcate-block) splits current code block into
> two with the same settings. It might be what you want. Just bind it to
> something easier to access maybe :P
Thanks, I tried 'C-c C-v C-d', but it's not exactly what is needed,
just an approximation.
When #+RESULTS: already exists after the #+END_SRC line,
'C-c C-v C-d' doesn't add a new #+BEGIN_SRC after #+RESULTS:,
it adds before it (however, this could be mitigated by evaluating
both blocks after splitting.)
- S-RET, Juri Linkov, 2020/11/14