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 an ignore text format and allow multi-paragraph formatting #1690

Merged
merged 6 commits into from
Feb 10, 2024
Merged

Conversation

vkbo
Copy link
Owner

@vkbo vkbo commented Feb 10, 2024

Summary:

This PR adds a new block format, that is a variation of a comment which uses %~ as a prefix instead of a plain %. It only has a minor difference in that it can be used to ignore text paragraphs without having to pollute comments if comments are actively used in the text and draft manuscripts for labelling plot progression and so on. The %~ will completely ignore the lines when building a manuscript, also when comments are included.

Using it is completely optional, and for those who need this distinction. It has been given the keyboard shortcut Ctrl+Shift+D which is related to the strikeout shortcut Ctrl+D.

In addition, this PR adds support for applying/toggling formats to more than one paragraph.

Related Issue(s):

Closes #1075
Closes #1042
Closes #1687

Reviewer's Checklist:

  • The header of all files contain a reference to the repository license
  • The overall test coverage is increased or remains the same as before
  • All tests are passing
  • All flake8 checks are passing and the style guide is followed
  • Documentation (as docstrings) is complete and understandable
  • Only files that have been actively changed are committed

@vkbo vkbo changed the title Add an ignore text format and allow multi-paragraph selection Add an ignore text format and allow multi-paragraph formatting Feb 10, 2024
@vkbo vkbo merged commit e9e4788 into dev Feb 10, 2024
9 checks passed
@vkbo vkbo deleted the disable_text branch February 10, 2024 17:31
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
1 participant