eschulte / epresent

Presentations in Emacs -- based on Org-mode
183 stars 51 forks source link

Execute first codeblock with "e" #71

Open asamwow opened 2 years ago

asamwow commented 2 years ago

So currently, you have to press "c" to navigate to the first code block, and then you can execute. It would be nice if "c" automatically went to the first codeblock when it is not already in one.

sellout commented 1 year ago

I think you mean “x”, as “e” is org-edit-src-code.

However, I agree and I think this issue can be more general – both edit and execute (and toggle-hide?) should act on the first src block if none is selected (or, maybe we can even keep track of the most-recently-selected src block). And it would be great if there was some indication which code block is currently selected.