fabiospampinato
released this
27 Apr 11:08
·
2 commits
to master
since this release
New Features
- Editor: added a decoration class for each heading, to be used potentially for styling purposes via some custom CSS, the classes are
.decoration-heading-1~6
- New command: editor.line.replace, for replacing the content of the current line with another string
- New palette: template
- New command: palette.template
- Autocomplete: added a "template" autocomplete provider, for inserting templates inside notes super quickly, you can trigger it by writing
/
in an empty line - New shortcuts: Alt+Left -> tab.history.previous, Alt+Right -> tab.history.next (Windows & Linux)
- New statusbar item: centered mode, for toggling centered mode
- New setting: system.gpu.enabled, for disabling GPU accelaration, which causes crashes in some systems (requires restaring the app)
- New command: editor.pasteAsHTML, for pasting the actual raw HTML that may be present in the clipboard into the editor
- New command: editor.pasteAsMarkdown, for pasting the HTML in the clipboard as Markdown in the editor (somewhat rough, report issues 🙏)
- New shortcut: Cmd/Ctrl+Alt+V -> editor.pasteAsMarkdown
- Markdown: added support for wrapping deletions in "--"
- Markdown: added support for wrapping insertions in "++"
- New commands: editor.formatting.deletion.add, editor.formatting.deletion.remove, editor.formatting.deletion.toggle
- New commands: editor.formatting.insertion.add, editor.formatting.insertion.remove, editor.formatting.insertion.toggle
- Editor formatting context menu: added a "Toggle Deletion" item
- Editor formatting context menu: added a "Toggle Insertion" item
- New theme colors:
preview:deletion:background
,preview:deletion:foreground
- New theme colors:
preview:insertion:background
,preview:insertion:foreground
- Markdown: added support for rendering svgbob code blocks
- Markdown: added support for rendering nomnoml code blocks
- Editor: added support for parsing HTML tables in the clipboard as Markdown tables when pasting as Markdown
- Editor: automatically pasting as Markdown if the HTML content of the clipboard contains a table
- New syntax highlighting grammars: Nomnoml, Go modules, Go checksum, Yara, Motoko, Promela, Earthly, ShellCheck, Hanet, Curry, RPGLE, Mint, Glen, Buffer, Clarity, Procfile, systemd(1) config, Hoon, GSC, Witcher Script, Vyper, OpenRA MiniYAML, DenizenScript, Euphoria, Kvlang, Cairo, Monkey C, Win32 Message File, Genero Business Development Language, Berry, Cadence, LigoLANG
- New command: window.move, for programmativally move the current window of the app to the given coordinates
- PDF preview: added "first page" and "last page" navigation buttons
- New setting: note.filename.style, for configuring the style used when generating file names for notes, there are 25 different possible styles to choose from
- Import: added support for importing ".qmd" files
- Import: added support for converting HTML tables to Markdown when importing HTML files
Improvements
- Renamed commands: debugger.fps.open ->debugger.fps.enable, debugger.fps.close -> debugger.fps.disable, debugger.highlights.open -> debugger.highlights.enable, debugger.highlights.close -> debugger.highlights.disable
- Renamed context keys: isDebuggerFPSOpen -> isDebuggerFPSEnabled, isDebuggerHighlightsOpen -> isDebuggerHighlightsEnabled
- Updated command: file.edit, added support for resolving paths relative to the current data directory
- Preview: ensuring code blocks and inline code use the same font as the editor, and the same ligatures
- Tags popover: avoiding listing tags which the current note is already tagged with
- Autocomplete: avoiding opening it automatically when going from a closed state to a state with results but an empty query
- Updater: showing a friendly error message when trying to update the app from ~/Downloads (macOS)
- Editor: automatically wrapping selections when typing "$", "&", "-" or "+"
- Language detection: using the primary system language as the fallback language rather than always "en-US"
- Language detection: asking the OS directly what the primary language is, bypassing some Electron bugs
- Note: refined automatic title generation, ignoring non-headings lines which are too long, and looking only at the first few lines of content
- Fuzzy Search: added a fast path for queries that are exact matches from the start of the target string
Bug Fixes
- Fuzzy search: fixed a bug where the following characters in the query weren't being matched properly:
/._-
- Preferences view: ensuring the previous active section is remembered when switching back to the preferences view
- Preview: ensuring code copied from code block with the copy button doesn't contain any unnecessary leading or trailing newlines
- HTML Sanitizer: ensuring custom elements are handled gracefully
- Markdown: matching deletions, insertions and marks more strictly, avoiding most false positive matches
- Markdown: ensuring R-style code blocks are detected properly by custom plugins
- Preview: ensuring files inside paths containing some special characters can be loaded correctly