forked from mugiwara85/CodeblockCustomizer
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathChangelog.txt
More file actions
182 lines (150 loc) · 9.35 KB
/
Changelog.txt
File metadata and controls
182 lines (150 loc) · 9.35 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
- 1.3.1 (2025.08.21):
BugFix:
- Fixed immediate rerender. Current release of Obsidian broke this feature.
- 1.3.0 (2025.08.15):
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 (2024.09.23):
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 (2024.06.13):
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 (2024.02.08):
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
- 1.2.5 (2023.09.26):
BugFix:
- Obsidian handles indentation differently when something is indented using TAB or 4 spaces, and this caused that the indented code block was not displayed correctly. Now it should work correctly.
- 1.2.4 (2023.09.25):
New:
- You can use now links inside code blocks, and the header
- Code blocks in a list are now indented properly in editing mode as well. Read more here
BugFix:
- Fixed a bug, which caused that the copy code button did not copy the whole text from a code block
- 1.2.3 (2023.09.11):
BugFix:
- content of code blocks without a language specified are now copied correctly
- 1.2.2 (2023.09.10):
New options:
- You can now exclude specific code blocks by defining the exclude parameter
- You can now enable/disable the plugin in source mode
- Added option to display indentation lines in reading view
- Lines in reading view can now be collapsed
- Added option to display a copy code button. This is very similar to the default Obsidian copy code button, with the difference that it will be always shown, even if you click inside a code block
- 1.2.1 (2023.08.31):
BugFix:
- Nested code blocks are handled correctly now
- Fixed some CSS problems with themes
- Fixed display problem in embedded code blocks
- Fixed not displaying code blocks in call outs in editing mode
- Fixed that annoying bug, where the cursor jumps before the header when the header is clicked and a few other smaller problems
New featrue:
- Semi-folding!
Note:
- Commands need a little tweaking. Next release will fix them.
- 1.2.0 (2023.08.11):
Unfortunately, you'll have to remove the data.json file or reinstall the plugin, but this was necessary. Thanks for your understanding.
New features:
- option to show a delete code button (this actually deletes the code!)
- collapse icon position
- collapsed code text
- active line number color
- PDF print settings
- inline code styling
- border colors
- Bug fixing: a lot...
- 1.1.9 (2023.05.20):
- Mostly styling
- 1.1.8 (2023.05.13):
- BugFix: Fixed a bug, where under Linux the color picker was not displayed.
- 1.1.7 (2023.05.04):
- BugFix: Incorrect display of the header when using minimal theme and "Readable line length" was enabled
- BugFix: Printing to a PDF did not work until now. Now it works.
- New: It is possible to use wildcard ( * ) for excluding languages. e.g.: ad-* will exclude every codeblock where the language starts with ad- (ad-example, ad-bug, ad-summary etc.). The wildcard can be either at the beginning or at the end.
- 1.1.6 (2023.04.23):
- BugFix: Incorrectly handled inline code in ReadingView
- 1.1.5 (2023.03.21):
- BugFix: Fixed the bug I mentioned last time, and a few other things, rewrote and removed unnecessary code. Everything should work as it should
- 1.1.4 (2023.03.19):
- Found a very strange bug, but most people won't even notice it. I added a workaround which unfortunately is not a 100% percent solution (maybe around 90%). This bug however originates either from Obsidian or CodeMirror itself. I am still investigating.
- The bug: if a document is opened (only in editing mode), then in very rare cases the viewport is not processed to the end. This results, that the linenumbers, background colors, and other styles are not set for those code block lines. As I said, it occurs in very rare cases, and the workaround helps, but it is not a permanent solution.
- 1.1.3 (2023.03.18):
- BugFix: Fixed a minor bug in ReadingView
- 1.1.2 (2023.03.17):
- BugFix: corrected minor bug in ReadingView.
- 1.1.1 (2023.03.16):
BugFix: Corrected two small bugs in reading mode:
- line number was displayed incorrectly when a very long line was displayed which overflowed to multiple lines.
- When the header was collapsed and below another codeblock was displayed without header, it appeared as it belonged to the header.
- 1.1.0 (2023.03.14):
- New feature: Display codeblock language icon in header
- New feature: Add alternative highlight colors
- Change: Line numbers in editing mode are displayed just as line numbers in reading mode. This change was necessary.
- BugFix: Fixed a bug, which caused the text in the header to be displayed always in lower case.
- BugFix: Fixed a bug, which caused unnecessary execution.
- 1.0.2 (2023.02.07):
- Implemented changes recommended by the Obsidian team.
- 1.0.1 (2023.01.29):
- Corrected that empty lines were not shown in reading mode, and the theme is set now automatically according to the Obsidian theme.
- 1.0.0 (2023.01.26):
- Initial release