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

Add a simple means by which users can customize how filenames are suggested #1162

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

swflint
Copy link

@swflint swflint commented Apr 12, 2023

By default, the file name is just the name of the snippet. Users may prefer that a systematic transformation be applied (e.g., downcase all letters, replace space with hyphen), this allows that to be done, and preserves the existing behavior.

* yasnippet.el (yas-default-filename-transform-function): Define
customizable filename transform.
* yasnippet.el (yas-load-snippet-buffer-and-close): Allow usage of
customizable filename transform to improve suggested filename.
@swflint swflint force-pushed the default-file-name-transform branch from 8d3c9c7 to 66a5080 Compare April 12, 2023 20:00
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant