Skip to content

Releases

2.3.0 — wrapped code lines keep their indent

Choose a tag to compare

@Sundowna Sundowna released this 19 Nov 07:15
c74fe4c

Long lines in code blocks now wrap neatly. Version 2.3.0 gives wrapped lines in code blocks a hanging indent: the wrapped part continues under the first word of its line, the way Obsidian already does it for list items.

New

  • Wrapped code lines keep their indent. A long line in a code block used to wrap back to the left edge. Now it continues under its first word, past its tabs or spaces and a list marker like 3. or -. Handy for prompts, outlines and step lists written in a code block.
  • Works while you type. In Live Preview and in Source mode, with the cursor inside the block or not.
  • Your text stays as it is. Only the look changes; nothing is added to the file.

Good to know

  • On by default. Turn it off under Settings → OneNote Style → Editing → Indent wrapped code lines, or with the command Toggle wrapped-line indent in code blocks.
  • It has no ribbon button, so your saved ribbon layout doesn't change. Add the command to a group with a right-click if you want one.
  • Lines without an indent or list marker, and everything outside code blocks, wrap as before.
  • Checked on Windows.

Install

Copy main.js, manifest.json and styles.css into <your vault>/.obsidian/plugins/onenote-style/ and enable OneNote Style.

2.2.2 — shortcuts the Mac way

Choose a tag to compare

@Sundowna Sundowna released this 16 Nov 08:19
3cafdf2

Shortcuts the way your system writes them. Version 2.2.2 makes OneNote Style feel at home on a Mac: tooltips show ⌘ and ⌥, and the Highlight key works there. Nothing changes on Windows and Linux.

Fixed

  • Shortcut texts on macOS. Tooltips, the search box and the settings said "Ctrl" on every system. On a Mac they now read the Mac way, for example ⌘Z for Undo, ⇧⌘Z for Redo and ⇧⌘F for Search.
  • Highlight on macOS. With the OneNote shortcuts on, Highlight is now ⌃⌘H (Control+Command+H), as in OneNote for Mac. The old ⌥⌘H is macOS's own "Hide Others", so it never reached Obsidian.
  • Collapse arrow tooltip. It shows the key that is really assigned, or none. Before, it always said Ctrl+F1, even with the OneNote shortcuts off.

Good to know

  • On a Mac, read ⌘ (Command) for Ctrl and ⌥ (Option) for Alt in the README's shortcut table.
  • If you already had the OneNote shortcuts on and changed Highlight under Settings → Hotkeys, your own key stays.
  • Checked on Windows. The Mac and Linux behaviour is covered by tests, not yet tried on a real Mac.

Install

Copy main.js, manifest.json and styles.css into <your vault>/.obsidian/plugins/onenote-style/ and enable OneNote Style.

2.2.1 — clicks in headings that wrap

Choose a tag to compare

@Sundowna Sundowna released this 16 Nov 06:55
67ac360

Clicks land where you click in long headings. Version 2.2.1 fixes the cursor and text selection in headings that wrap onto more than one row.

Fixed

  • Headings that wrap. With some themes (seen with AnuPpuccin), a click on an upper row of a long heading put the cursor in the last row, and dragging selected the wrong text. Clicks and selections now land where you made them.

Good to know

  • The cause is a rule in the theme, not in this plugin; the plugin now overrides it in the editor. See AnuPpuccin issue 198.
  • If you use AnuPpuccin's Enable Custom Heading Margin setting, it no longer has an effect in the editor. Reading view is unchanged.

Install

Copy main.js, manifest.json and styles.css into <your vault>/.obsidian/plugins/onenote-style/ and enable OneNote Style.

2.2.0 — pressed buttons and the sync animation

Choose a tag to compare

@Sundowna Sundowna released this 15 Nov 13:32
521c016

Buttons show what is on. Version 2.2 keeps a button pressed while its mode is on, like the ¶ button in Word, and brings back the sync animation.

New

  • Pressed buttons. A button whose mode is on stays highlighted, and its tooltip ends with "(on)": Light and Dark, Read / Edit, Source Mode, Syntax, Syntax Guard, Quick Bar, Line Width, Line Numbers, Spelling, Left Sidebar, Right Sidebar, Section Tabs, Icon Strip, Stacked Tabs, Pin Tab and Show in Page (backlinks). It also updates when you switch the mode by hotkey, from the command palette or in the settings.
  • It follows the command, not the place. Move one of these buttons to another tab, or add the command again with Add command, and it still shows its state. The drop-down of a folded group shows it too.
  • Sync animation. While AI ChatBridge syncs, the Sync All icon turns and the icon of the chat app being synced pulses. A sync you start from one app's button shows on that button. Timed syncs show on Sync All. If the AI group is folded into one button, that button moves.

Good to know

  • Syntax is pressed while the Markdown syntax is hidden.
  • The animation stands still if your system is set to reduce motion.
  • Bold, headings and lists do not light up at the cursor; only modes do.

Install

Copy main.js, manifest.json and styles.css into <your vault>/.obsidian/plugins/onenote-style/ and enable OneNote Style.

2.1.0 — hidden syntax and the Quick Bar

Choose a tag to compare

@Sundowna Sundowna released this 14 Nov 17:14

Edit like in OneNote and Word. Version 2.1 hides the Markdown syntax while you type and adds a Quick Bar for selected text.

New

  • No Markdown syntax while you type. In Live Preview you see the formatted text and never the markers (**, #, >, [[ ]], link addresses, <mark> tags), not even on the line the cursor is in. Bullets, checkboxes, tags and code fences stay. The arrow keys step over the hidden markers, and Backspace never eats one by accident.
  • Syntax Guard. While syntax is hidden, a note that opens in Source mode switches to Live Preview. The Source Mode button still shows the Markdown when you want it.
  • Quick Bar. Select text and a small toolbar appears above it: bold, italic, strikethrough, highlight in seven colours, No colour, internal link, copy and clear formatting. Every button toggles and the selection stays. Coloured highlights use the same format as the Highlightr plugin.
  • Editing group on the Home tab with three buttons: Syntax, Syntax Guard and Quick Bar. It is added once to a ribbon you have already customised.
  • Three commands: Toggle syntax visibility, Toggle Syntax Guard and Toggle Quick Bar. Each also has a switch under Settings → OneNote Style → Editing.

Changed

  • Hidden syntax, Syntax Guard and the Quick Bar are on by default, also when you update. Turn any of them off with its button, command or setting.
  • Clear formatting also removes the markers just outside the selection.

Fixed

  • After the plugin was turned on or updated in a running Obsidian, the ribbon could show only a More button until the next restart.

Install

Copy main.js, manifest.json and styles.css into <your vault>/.obsidian/plugins/onenote-style/ and enable OneNote Style.

2.0.0 — the customisable ribbon

Choose a tag to compare

@Sundowna Sundowna released this 13 Nov 08:31

The ribbon you already know, in Obsidian. Version 2.0 replaces the fixed Home / Insert / View ribbon with an Office-style ribbon you can make your own.

New

  • Twelve tabs, ready to use: Home, Insert, View, Table, Navigate, Templates, Canvas, References, Review, Data, Slides, Utilities.
  • Any command as a button, including the commands of your other plugins, with a searchable picker.
  • Customise by right-click: rename, icon, icon colour, large or small, move, remove. Groups and tabs too.
  • Drag and drop, plus a customise mode in which tabs and groups can be dragged and + tiles add new ones.
  • Adapts like Office: large → small → icon-only → group drop-down → More. Never a horizontal scroll bar.
  • Follows your theme in light and dark. Icon colours come from the theme's palette; product logos keep their brand colour.
  • Export and import the layout as one JSON file.
  • Subpages without folders: a subpage is a plain note with a parent property. In the file explorer it sits under its parent, with a small "L".

Changed

  • OneNote keyboard shortcuts are now opt-in (plugin settings). If you update from 1.x they stay on.
  • Subpages no longer create a folder. Page folders made by 1.x can be converted with the command Turn page folder into plain subpages.
  • The Styles and Tags galleries are ordinary ribbon buttons now.
  • Needs Obsidian 1.10.6 or newer.

Install

Copy main.js, manifest.json and styles.css into <your vault>/.obsidian/plugins/onenote-style/ and enable OneNote Style.

1.1.0

Choose a tag to compare

@Sundowna Sundowna released this 09 Nov 18:31

AI group on the Home ribbon: Sync All plus Claude, ChatGPT, Lumo, Claude Desktop and Codex buttons, using the AI ChatBridge plugin.