Releases: mugiwara85/CodeblockCustomizer
1.4.4
-
Modified:
- Added Mac support for modifier keys
-
BugFix:
- Inline code not rendering in tables in editing mode when PDF printing was not enabled (#156)
- Scrolling over unwrapped code blocks did not work in editing mode
- Added fix to exclude all code blocks which use MarkdownPreviewRenderer during PDF Printing (#155)
- Fixed "Enable print to PDF" toggle. It didn't had any effect. Accidently broke it during a refactor
1.4.3
New:
- Added customizable frontmatter syntax coloring in editing mode
1.4.2
New:
- Added Syntax Themes. Using this, it is possible to define the color of each token in syntax highlighting. Read more in the README.
Modified:
- The header now only display the default "Collapsed Code" text, when the code block is either fully folded, or semi-folded.
BugFix:
- The background color in bracket matching wasn't working. It is fixed now.
1.4.1
1.4.0
New:
- Wrap code now also works in editor mode
- Added compatibility with Execute Code Plugin (#129, #149)
- Added option "Only apply inverse fold to semi-foldable blocks" to exclude code blocks when inverse fold and semi-fold are both enabled (#138)
- Added option "Auto semi-fold long code blocks" (#133)
- Added Modifier keys for buttons and inline code (#132)
- Added new parse parameter to parse raw CLI output fro prompts, and apply colors to them (#131)
- Added new Themes (Dracula, Gruvbox, Nord, Tokyo Night)
- Added "Copy as image" button to create snapshot of code blocks
- Added option to display an additional "+" and "x" for grouped code blocks for easier adding/removing blocks
- Added option to search for settings on the settings page
- Added new option to select alternative collapse indicators
- Added option to hide lines or ranges using the hide parameter
- Added blur effect for semi-fold
Modified:
- It is now possible to define "line number jumps" for the ln parameter (#143)
- CSS refactored into SCSS. Also fixed slow selectors (#136)
- Settings are NOT stored in the Themes anymore. They are completely independent from themes (#135)
- For text highlight now occurences can also be specified to highlight specifc occurence(s) of the text
BugFix:
- Fixed a bug, where the copy button copies white spaces (#148)
- PDF export now correctly uses the specified text color override (#145)
- Fixed a bug, which led to plugin crash when editing tables (probably #139, and also #144)
- Fixed a bug where code blocks in lists were padding missing (#128)
- Prompt names are NOT case sensitive now
- Fixed inline code mustache syntax (#147)
- Fixed a bug, where uncollapsing code blocks sometimes resulted in no decorations at all
1.3.1
BugFix:
- Fixed immediate rerender. Current release of Obsidian broke this feature.
1.3.0
New:
- Semi-interactive prompts
- Code blocks can now be displayed as groups
- Annotations
- Added colors for frontmatter
- Syntax highlight for inline code
- Added an option to hide the fence lines in editing mode (they will reappear when the cursor is inside a code block)
- Added an option for avoiding page break during PDF printing
Modified:
- Code block fold states can now be optionally stored in session or permanently
- Modifying code block parameters now immediately rerenders the code block in ReadeingView to reflect the changes. Works even when the document is side by side opened in editing and reading mode as well
- Code blocks now support ~~~ blocks as well, not just ``` blocks
- UI updated and reorganized
BugFix:
- Fixed a small CSS problem with buttons
- Fixed a small problem with alternative highlight colors (probably wasn't even noticeable)
- Fixed a bug, which caused Obsidian file explorer to be laggy
- Fold commands now work correctly, even in large documents
- Performance improvements
- Fixed a bug, where empty lines were not rendering in ReadingView, when using ln:false
- Fixed admonitions
1.2.8
New:
- lsep (line separator), and tsep (text separator) parameter for text highlight
- Default themes are modifiable now. You also have two options for restoring the selected or all default theme
- Added two command for indenting and unindenting the code block, where the cursor is in
- Added a button for selecting all the code block content in editing mode
- Added a button for wrapping/unwrapping code block content in reading mode
- Added option to always display the Copy code button
- Added option to disable folding for code blocks, where fold or unfold was NOT defined
Modified:
- Line highlight and text highlight has been separated! Please read the README for more details
- For text highlight and header title it is now possible to define a " or ' inside the text. To do this you have to escape it with a backslash e.g.: file:"Hello \" World!"
- Folded code blocks in editing mode now display the Copy code button in the header when hovering over the header.
BugFix:
- Fixed, if the first line of the code block was too long, it was not displayed correctly. The end was cut off.
- Fixed an issue with Tasks plugin, where the Tasks plugin kept refreshing the tasks, when editing the document
- Fixed a bug, where leading spaces (3 or less) were automatically removed in reading mode
- Fixed a bug in reading mode, which wrapped lines incorrectly
1.2.7
New:
- Custom SVGs
- Option to uncollapse all codeblock on printing
- Bracket highlight (click next to a bracket to highlight it and its opening/closing pair)
- Selection matching (select text to highlight the where the text is found in the document)
- Inverse fold behavior
- Option to unwrap code in reading view
- Text highlight with from and to markers
Modified:
- Semi-fold does not count start and end lines (line with opening and closing backticks) in editing mode anymore
- Hide inactive options on settings page
- Performance improvements
- CSS copy and delete code positioning fix
- Moved border colors to language specific colors
- Language specific colors can now be set for code blocks without a language as well (specify nolang as a language)
- Fixed a few smaller bugs
1.2.6
New:
- Option to set colors language specifically. This means, you can customize now (almost) every color for Python, and totally different colors for C. Please read the README
- Added option to highlight text, not just lines. Please read the README
- It is possible now to automatically update links, if a file is renamed. Please read the README
Modified:
- Settingstab reorganized a little, because there are a lot of settings now
- Every parameter works now with "=" or ":" (Example: hl:7 or hl=7)
- All sorts of links work now (markdown link, wiki link, normal http or https), BUT they only work if they are marked as comments. You have to mark them as comment according to the current code block language (For example // in C/C++, # in Python etc.). This change was necessary as the processing of the HTML in Reading mode was too resource intensive
- Fixed indented code blocks
- Fixed minimal theme incompatibility
- Moved Copy code and delete code buttons to the header (if it is present)
- Improved performance in edit mode and reading mode as well
- Fixed a case where in reading mode the syntax highlighting was incorrect