Skip to content

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