Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

<s snippet does not expand in org-mode #6

Closed
siddharthshekar opened this issue Jul 23, 2019 · 3 comments
Closed

<s snippet does not expand in org-mode #6

siddharthshekar opened this issue Jul 23, 2019 · 3 comments
Labels
is:bug Something isn't working as intended

Comments

@siddharthshekar
Copy link

When I try expanding <s in an org-mode buffer, it just ends up deleting the <s text and not replacing it with a #+BEGIN_SRC...#+END_SRC as expected. Expanding src works as expected, except it can't be undone (but that's a separate issue). Does the < in the key need to be escaped?

@hlissner hlissner added the is:bug Something isn't working as intended label Jul 27, 2019
@hlissner
Copy link
Member

hlissner commented Jul 27, 2019

Have you updated doom-snippets? This was a known bug that should've been resolved by 3ce0c49 and 162713d.

I'm not sure about being unable to undo src, however.

@siddharthshekar
Copy link
Author

My bad! I didn't realize I wasn't on the latest version of doom snippets. It works as expected on updating.

It would be nice to be able to undo the snippet creation, but again, that's not this issue. I'll go ahead and close this one.

@hlissner
Copy link
Member

My bad! I didn't realize I wasn't on the latest version of doom snippets.

No sweat!

It would be nice to be able to undo the snippet creation

A snippet can be undone once it is finished (TAB'ed out of the last field, if any) or aborted.

If you use Doom Emacs, pressing ESC or C-g should abort the snippet (might have to press it twice; once to escape insert mode -- if you use evil -- then again to abort the snippet). Then pressing u (M-x undo) should undo the snippet.

In <s's case, you'll have to press u twice, because the first time you press it, it will undo the abortion of the snippet. i.e. it will put your cursor back in the first field of the snippet.

The second time it will undo the snippet altogether.

@github-actions github-actions bot locked as resolved and limited conversation to collaborators May 7, 2022
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
is:bug Something isn't working as intended
Projects
None yet
Development

No branches or pull requests

2 participants