-
-
Notifications
You must be signed in to change notification settings - Fork 123
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
Templates doesn't insert filenames #658
Comments
Create 2 templates: tmpl1: Then stage 3 files. Commit message is Select tmpl2. Commit message is now Selecting tmpl1, no change, then tmpl2 again, no change; still The message needs to be manually cleared and a file un/staged to get the commit message to reappear with the filenames listed. But what's inserted is tmpl1's template even though tmpl2 was selected last. It seems to be broken and unpredictable. |
What do you mean
Did you move tmpl1 as first in the list? |
No. I guess that's not how it works then (my expectation was that it would use the last one which I picked). At that point I would have to repick tmpl2, but as noted, currently only |
Ah now I understand, you choose it manually not automatically. I was able to reproduce |
This will fix your issue: |
Thank you. |
Templates is unintuitive, probably because it's broken.
Selecting one from the list doesn't update the commit message to include the currently staged files: Clicking a "Chore" template with
chore: %| ${files:2}
as its template value will insert "chore: " (no filenames).v1.3.0
The text was updated successfully, but these errors were encountered: