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

Yasnippet placeholders not cycling through in the GUI (in C++ and Corfu) #7800

Open
4 tasks done
davidbudzynski opened this issue Apr 6, 2024 · 2 comments
Open
4 tasks done
Labels
is:bug Something isn't working as intended needs-triage Issue hasn't been assessed yet

Comments

@davidbudzynski
Copy link

I confirm that...

  • I have searched the issue tracker, documentation, FAQ, Discourse, and Google, in case this issue has already been reported/resolved.

  • I have read "How to Debug Issues", and will use it to provide as much information about this issue as possible.

  • The issue can be reproduced on the latest available commit of Doom.

  • The issue can be reproduced on a stable release of Emacs, such as 27, 28, or 29. (Unstable versions end in .50, .60, or .9x)

Expected behavior

When using GUI it should be possible to cycle through placeholders provided by Yasnippet by using TAB like it is in the TTY.

Current behavior

Currently, it is not possible to move to the next placeholder with the TAB in the GUI version. This works fine in the terminal version.

Steps to reproduce

  1. Open Emacs
  2. check that snippets and Corfu modules are enabled
  3. create a test.cpp file in /tmp/
  4. try one of the snippets with more than one placeholder areas by typing (for example) cpy and pressing TAB.
  5. this will insert the snippet and will allow you to fill out the 1st placeholder.
  6. Try pressing TAB again to move to the next placeholder.

System Information

https://pastebin.com/HVziHyCs

@davidbudzynski davidbudzynski added is:bug Something isn't working as intended needs-triage Issue hasn't been assessed yet labels Apr 6, 2024
@JiaweiChenC
Copy link

JiaweiChenC commented Apr 15, 2024

Can't reproduce it within a .cpp file but i have the same problem in org-mode when inserting any snippet. can't cycle through placeholders using TAB. but it works fine inside "org-edit-src-code" buffer when editing source code blocks.

I encountered the same issue, and I think it is relevant to Yasnippet TAB not working in Org Mode #7733

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
is:bug Something isn't working as intended needs-triage Issue hasn't been assessed yet
Projects
Status: No status
Development

No branches or pull requests

3 participants
@davidbudzynski @JiaweiChenC and others