Timeline for Use contents of a heading in Yasnippet
Current License: CC BY-SA 4.0
4 events
| when toggle format | what | by | license | comment | |
|---|---|---|---|---|---|
| Jul 22, 2024 at 11:50 | comment | added | NickD | OK - as long as it was what you expected :-) | |
| Jul 22, 2024 at 3:32 | comment | added | Deshmukh | @NickD Thanks. That is a very useful general purpose code. By the way, I tried with a heading with sub-heading. And it works as expected. The entire stuff that belongs to MyHead heading is copied. | |
| Jul 21, 2024 at 9:21 | comment | added | kozina-adjacent | Modifying ever so slightly Nick's last function: (defun my/grab-text-under-heading-with-ID (custom-id) (interactive "sCustom ID: ") (insert (my/org-get-text-under-given-heading custom-id))) you could set snippet type to command and in the body of the snippet include (call-interacively 'my/grab-text-under-heading-with-ID) But yeah... seems like it's venturing beyond how I understand most people use snippets | |
| Jul 20, 2024 at 20:46 | history | answered | NickD | CC BY-SA 4.0 |