Skip to content

Snippet enhancements #1963

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

Merged
merged 1 commit into from
Feb 22, 2023
Merged

Snippet enhancements #1963

merged 1 commit into from
Feb 22, 2023

Conversation

facelessuser
Copy link
Owner

  • Allow - and _ in section names
  • If check_paths is enabled and a section cannot be found, raise an error.
  • Add dedent_subsections to remove indentation of sections or lines that are inserted.

Resolves #1947
Resolves #1946
Resolves #1945

- Allow `-` and `_` in section names
- If `check_paths` is enabled and a section cannot be found, raise an
  error.
- Add `dedent_subsections` to remove indentation of sections or lines
  that are inserted.

Resolves #1947
Resolves #1946
Resolves #1945
@gir-bot gir-bot added S: needs-review Needs to be reviewed and/or approved. C: docs Related to documentation. C: snippets Related to the snippets extension. C: source Related to source code. C: tests Related to testing. labels Feb 22, 2023
@facelessuser
Copy link
Owner Author

@gir-bot lgtm

@gir-bot gir-bot added S: approved The pull request is ready to be merged. and removed S: needs-review Needs to be reviewed and/or approved. labels Feb 22, 2023
@facelessuser facelessuser merged commit a42c409 into main Feb 22, 2023
@facelessuser facelessuser deleted the feature/snippet-enhance branch February 22, 2023 23:45
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
C: docs Related to documentation. C: snippets Related to the snippets extension. C: source Related to source code. C: tests Related to testing. S: approved The pull request is ready to be merged.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Snippet IDs with dashes and underscores Fail on missing snippet sections Unindent for snippets
2 participants