Releases: chrisgurney/obsidian-note-toolbar
v1.10.0-beta-11
Disclaimer: In this beta release, the format of Note Toolbar's settings has been updated. There may be bugs, so if you wish to give it a go, make a backup of your Note Toolbar
data.json
file before updating to the beta via BRAT.
New Features 🎉
Separators are now available in both toolbars and callouts.
- To add a separator to toolbars (and menus), look for a new icon next to the + Add toolbar item button.
- Separators can be configured to be visibile on desktop, mobile, or both (default).
- I wanted to set my own icon for this button but I think I've run into a bug in Obsidian, so consider this one a placeholder.
- To add a separator to a callout, here's an example of adding a separator between two items.
- Update: As of the latest betas you can just use
> - <hr>
- Update: As of the latest betas you can just use
> - [Item 1](...)
> - <data data-ntb-sep=""/>
> - [Item 2](...)
- Separators can be styled in Style Settings, including color, spacing, and vertical size.
Improvements 🎉
- Style Settings has been reorganized to separate settings for toolbars, items, and separators, which should help make them easier to find.
Changelog
- feat: toggle platform visibility for separators ↗
- feat: Style Settings reorg: Toolbars, Items, Separators ↗
- chore: make sure keyboard nav does not include separators ↗
- fix: make sure first focus element isn't a separator ↗
- feat: Style Settings support for separators ↗
- feat: separators in toolbars and menus ↗
- fix: none svg missing double-quote ↗
- chore: Settings form UI for separators ↗
- chore: Settings item list UI for separators ↗
- refactor: put delete button and add item logic in functions ↗
- fix: hide separator hover if link markdown is used; make non-clickable ↗
- feat: separators in callouts via data-ntb-sep ↗
- refactor: setAttribute to setAttrs for readability ↗
- fix: callout list bullets might appear in reading mode ↗
v1.10.0-beta-10
Disclaimer: In this beta release, the format of Note Toolbar's settings has been updated. There may be bugs, so if you wish to give it a go, make a backup of your Note Toolbar
data.json
file before updating to the beta via BRAT.
New Feature 🎉
In addition to using a Note Toolbar URI to execute commands, you can now focus on folders, and open menus.
> [!note-toolbar]
> - [Command URI](obsidian://note-toolbar?command=workspace%3Atoggle-pin)
> - [Folder URI](obsidian://note-toolbar?folder=Demos)
> - [Menu URI](obsidian://note-toolbar?menu=Tools)
> - [Menu URI with ID](obsidian://note-toolbar?menu=7fb30215-d92c-43ce-8158-b79096672bd1)
Notes:
- This works as an alternative to the method introduced in
beta-09
. - URIs don't appear to work in notes that were opened in a new window, as the focus is returned to the main window on click. Use the other method if this better fits your usage.
- For commands, you can use either
command=
orcommandid=
. Both work the same. - For menus, you can pass in the toolbar name or the UUID, as per the above example.
Fixed
- Callout/URI menus now work, even if there's no toolbar on the note (the previous menu position is kept in local storage).
Changelog
- fix: callout/URI menus don’t work if no toolbar on the note ↗
- feat: note-toolbar URI folder + menu support ↗
- refactor: renamed getLinkDest to getLinkUiDest ↗
- refactor: created handleLinkFolder ↗
- refactor: created handleLinkCommand ↗
- chore: track last clicked callout link for menu URI ↗
- feat: protocol support for both
command=
andcommandid=
↗ - feat: callout menus: support for IDs ↗
- refactor: rename getToolbar to getToolbarById ↗
v1.10.0-beta-09
Disclaimer: In this beta release, the format of Note Toolbar's settings has been updated. There may be bugs, so if you wish to give it a go, make a backup of your Note Toolbar
data.json
file before updating to the beta via BRAT.
New Feature 🎉
Experimental: Note Toolbar Callouts have received an upgrade!
Links can now be formatted to open menus, highlight folders, and provide another way to execute commands (without needing another plugin).
Thanks to @liamcain and @gfxholo for their guidance to get this working.
Here’s the example showing the three item types now available, which are largely similar to what's available in a standard toolbar:
> [!note-toolbar]
> - [Demos folder]()<data data-ntb-folder="Demos"/>
> - [Tools menu]()<data data-ntb-menu="Tools"/>
> - [Toggle pin]()<data data-ntb-command="workspace:toggle-pin"/>
Notes:
- The
folder
,menu
, andcommand
types require empty links()
, or Obsidian will open the link content instead. - Ensure the
<data>
element is closed (i.e., ends with a/>
). - These links work in new windows opened from a note as well, unlike
obsidian://
URIs which seem to return focus to the main window. TheNow supported indata-ntb-menu
attribute currently only accepts a toolbar name.beta-10
.- I’m still working out some edge cases and making sure this works consistently well, so expect bugs and possible changes to syntax.
Known issues:
TheFixed inmenu
type doesn’t work if there is no existing standard toolbar on the note.beta-10
.- There might be an unsolvable problem (that I can't consistently reproduce) where events are being fired more than once, and thus these items seemingly don't work. I'm investigating, and hopefully will find a solution!
- I've implemented URI support in
beta-10
if you would rather try that method.
- I've implemented URI support in
Changelog
v1.10.0-beta-07
v1.10.0-beta-06
Disclaimer: In this beta release, the format of Note Toolbar's settings has been updated. There may be bugs, so if you wish to give it a go, make a backup of your Note Toolbar
data.json
file before updating to the beta via BRAT.
New Feature 🎉
- Added a new
between
/mbtwn
style that appliesspace-between
to items in a toolbar. Similar toeven
, this spaces items out across a toolbar, but the left and right items are flush with the edges of the toolbar. Thank you @stracaganasse
Improvement 🎉
- When the focus leaves the editor or the window, the opacity of the toolbar is now very slightly decreased.
- The intent is to provide some user feedback that an additional click is required, matching the behavior of the tab and header title when they dim.
- The amount the toolbar dims is configurable via the Style Settings plugin, under Toolbars > Style > Toolbar: Inactive opacity
- Thank you @onyxogen and @FeralFlora for reporting the original issue #69
Changelog
- feat: decrease opacity of toolbar when editor is not in focus ↗
- docs: menu error: "Note Toolbar settings" instead of "settings" ↗ Thank you @MrComputron
- feat: add space-between style option for items ↗
v1.10.0-beta-05
Hopefully fixes settings migration bug (#112). See release notes for 1.10.0-beta-04.
Disclaimer: In this beta release, the format of Note Toolbar's settings has been updated. There may be bugs, so if you wish to give it a go, make a backup of your Note Toolbar
data.json
file before updating to the beta via BRAT.
Changelog
- docs: attempt to make menu item error message more helpful ↗
- fix: migration: menu toolbar not updating ↗ ↗ (#112) Thank you @MrComputron
v1.10.0-beta-04
🐞 There is a known bug with this release (#112). Please wait for the next version to give it a try. 🐞
Disclaimer: In this beta release, the format of Note Toolbar's settings has been updated. There may be bugs, so if you wish to give it a go, make a backup of your Note Toolbar
data.json
file before updating to the beta via BRAT.
Improvement 🎉
- Now when you rename your toolbars, mappings and menu items that use that toolbar will also update their references automatically.
- Be aware that if you used the toolbar's name in a note's property to display that toolbar, it will not be updated. Check the toolbar's Usage section for a link to search the configured property for the toolbar's name, to find the notes you'll need to update.
- UUIDs are now added to toolbars and items as their DOM element IDs, which, as a side benefit, allows you to apply your own click handlers if you desire.
- This is also fixes a problem where toolbar deletions were also deleting toolbars of the same name (particularly those with empty names, which are allowed).
- Shoutout to @Moyf for raising this improvement in #105
Changelog
v1.10.0-beta-01
Start of a new beta cycle for Item Groups and probably other stuff. Keep checking in for updates!
Changelog
- chore: migration: add IDs for all toolbars + items (if not set) ↗
v1.9.12
v1.9.11
Changelog
- fix: increased startup time (remove API access for now) ↗ See this discussion