doomemacs / doomemacs/snippets
Chaining snippets
- Dominant language
- YASnippet
- Stars
- 313
- Forks
- 98
- PR merge metrics
- No merged PRs in 30d
Description
When using `doom-snippets-expand` to chain snippets
```
# -*- mode: snippet -*-
# name: imp
# key: imp
# uuid: imp
# condition: t
# --
import `(doom-snippets-expand :uuid "libs")`
```
```
# -*- mode: snippet -*-
# name: libs
# key: libs
# uuid: libs
# condition: t
# --
${1:$$(yas-choose-value '("numpy" "scipy" "matplotlib" "pandas"))}
```
An extra `YY` is added before the expansion, so if I select e.g scipy, I get:
`import YYscipy`
I don't know if this issue is related to the reference to the insertion of an extraneous `Y` in [https://emacs.stackexchange.com/questions/24060/yasnippet-truncates-clipboard-contents](url)
Contributor guide
No contributing guide indexed for this repository
Research direction
Reproduce the chained expansion using the two snippet definitions in the issue and the `doom-snippets-expand` entry point, selecting `scipy` in the `libs` snippet. Trace where the extra `YY` is introduced and confirm that completion produces `import scipy` without the prefix.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- emacs, emacs-lisp
- Domain
- tooling
- Issue type
- Bug
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 38/100