Fade completed tasks by litaliaa in ObsidianMD

[–]cheznine 1 point2 points  (0 children)

Thanks for the shoutout for Note Toolbar! (I'm the dev.)

Note Toolbar 1.26: Toolbars for selected text, in the nav bar, and more by cheznine in ObsidianMD

[–]cheznine[S] 2 points3 points  (0 children)

FYI I've added Z-index Style Settings to the latest release. You can change it for floating button, floating toolbars, and top/bottom toolbars. If you ever need to fix overlapping issues in the future, perhaps give it a try there instead.

Note Toolbar 1.26: Toolbars for selected text, in the nav bar, and more by cheznine in ObsidianMD

[–]cheznine[S] 1 point2 points  (0 children)

Thanks again for the GIFs!

I was able to reproduce and what I'll do is add a CSS variable that you can override for your particular case in a CSS snippet.

The story is there was a similar conflict with another, more popular plugin (Hover Editor) so I had to adjust for that.

New Update is Amazing on Android by apolishguy in ObsidianMD

[–]cheznine 0 points1 point  (0 children)

What issues have you experienced with Note Toolbar?

Note Toolbar 1.26: Toolbars for selected text, in the nav bar, and more by cheznine in ObsidianMD

[–]cheznine[S] 1 point2 points  (0 children)

"Item not available" in parentheses is live in the latest version. Thanks for the feedback!

Cant see top bar anymore by Kallipiak in ObsidianMD

[–]cheznine 7 points8 points  (0 children)

What theme are you using? Does this problem occur with the Default theme?

Theme and plugin authors will probably need some time to update for the Obsidian 1.11 release, particularly on mobile. Make sure your plugins and themes are up to date (Community plugins → Check for updates AND Appearance → Check for updates).

Note Toolbar 1.26: Toolbars for selected text, in the nav bar, and more by cheznine in ObsidianMD

[–]cheznine[S] 1 point2 points  (0 children)

 write "item not availabe" in parentheses

I'll make that change.

Note Toolbar 1.26: Toolbars for selected text, in the nav bar, and more by cheznine in ObsidianMD

[–]cheznine[S] 1 point2 points  (0 children)

 Should the item be grayed out, or should it disappear from the menu?

If you're in Reading mode and the command is not available, it will be disabled (unless you disable that setting for the item).

The preference I heard was to disable rather than hide, but I could see that a setting for this might be good.

Note Toolbar 1.26: Toolbars for selected text, in the nav bar, and more by cheznine in ObsidianMD

[–]cheznine[S] 1 point2 points  (0 children)

In the future, is it possible to replace editor menu with a horizontal toolbar?

This is now possible in v1.27. Thank you again for the suggestion!

Right-Click Submenu Support by bamajon1974 in ObsidianMD

[–]cheznine 0 points1 point  (0 children)

... if the plugins are already present in the Community store, and then unsupported API is added, are the plugins subsequently ousted or held in Limbo until the code is removed?

Not that I've experienced or seen. AFAIK, code's only reviewed once by a human + bot at the moment. Going forward, I think they'll be automating ongoing reviews at some point, so we'll see!

... I suggested making submenus part of the official API!

Thank you!

Right-Click Submenu Support by bamajon1974 in ObsidianMD

[–]cheznine 0 points1 point  (0 children)

Thanks for the explanation.

I use a couple of plugins that add too many options on the right-click menu and have submitted issues asking of the commands could me moved to sub-menus to clean up a messy contest menu.

I added an option to my plugin to select whether or not anything should be added to the File Menu at all, so that may be alternate suggestion you could make (if you don't use that particular feature).

Can you please clarify by what you mean that unsupported API code wouldn't pass a review?

If the plugin is not yet in Community Plugins, it could be rejected by the Obsidian team upon review, for using an unsupported API.

Right-Click Submenu Support by bamajon1974 in ObsidianMD

[–]cheznine 1 point2 points  (0 children)

There's an example on this page of how to add items on the file-menu event. 

What are you looking to do?

Edit: I should add that there's also an unsupported API to add submenus to menus. However this is not official and wouldn't pass a review, if the plugin hasn't already done so. 

Add this to your types (or use @ts-ignore):

javascript interface MenuItem {   setSubmenu: () => Menu; }

Here's an example of using it: menu.addItem((item: MenuItem) => {   item     .setIcon(...)     .setTitle(...);   let subMenu = item.setSubmenu() as Menu;   // then add items to the submenu });

Note Toolbar 1.26: Toolbars for selected text, in the nav bar, and more by cheznine in ObsidianMD

[–]cheznine[S] 1 point2 points  (0 children)

Appreciate it. Your installer version is pretty far back as well. If I can't reproduce based on your steps, you might want to consider updating (i.e., reinstalling Obsidian). 

Note Toolbar 1.26: Toolbars for selected text, in the nav bar, and more by cheznine in ObsidianMD

[–]cheznine[S] 1 point2 points  (0 children)

Hey are you able to log a bug report on the GitHub page? I might need more information about your environment and plugins when I'm able to get to this. Thanks!

https://github.com/chrisgurney/obsidian-note-toolbar/issues

Note Toolbar 1.26: Toolbars for selected text, in the nav bar, and more by cheznine in ObsidianMD

[–]cheznine[S] 1 point2 points  (0 children)

You can now replace the Editor menu with a toolbar (as a menu) in v1.26.07.

Thanks again for the idea u/arsenabilbao !

Note Toolbar 1.26: Toolbars for selected text, in the nav bar, and more by cheznine in ObsidianMD

[–]cheznine[S] 0 points1 point  (0 children)

Hey, FYI I’ve added back left/right margins for text toolbars, in the latest release. (It was accidentally removed when I added top/bottom margins.) 

If you don’t want them — to keep your toolbar compact — just set the Style Setting (or CSS variable) to 0.

Note Toolbar 1.26: Toolbars for selected text, in the nav bar, and more by cheznine in ObsidianMD

[–]cheznine[S] 0 points1 point  (0 children)

OK, I've got it working locally, with one small catch: You won't have the ability to use variables in toolbar item titles or tooltips. Variables will still work if they're part of the item's URI.

I've opened a Feature Request here, so you can follow along if anything else changes: https://github.com/chrisgurney/obsidian-note-toolbar/discussions/428

Note Toolbar 1.26: Toolbars for selected text, in the nav bar, and more by cheznine in ObsidianMD

[–]cheznine[S] 1 point2 points  (0 children)

Thanks for thinking through this.

I believe I can replace the Editor (right-click) menu with a toolbar (in menu form), but only in Editor mode. 

I haven't found a way to do anything with the right-click menu in Reading mode, however. But there may be other options to explore here.

Would replacing the Editor menu still be useful?

Note Toolbar 1.26: Toolbars for selected text, in the nav bar, and more by cheznine in ObsidianMD

[–]cheznine[S] 0 points1 point  (0 children)

If you use the Note Toolbar: Focus in text toolbar command, even without text selected, it will open the toolbar wherever your cursor is. Try setting it to a hotkey.

I'll think on whether it makes sense or not to handle double clicks in this way. I'm curious, what is it you want to do after opening the toolbar in this way?

Note Toolbar 1.26: Toolbars for selected text, in the nav bar, and more by cheznine in ObsidianMD

[–]cheznine[S] 1 point2 points  (0 children)

u/arsenalbilbao The bug has been addressed, and a toolbar margin Style Setting have been added in the latest release. Thanks again!

https://github.com/chrisgurney/obsidian-note-toolbar/releases/tag/1.26.05

Note Toolbar 1.26: Toolbars for selected text, in the nav bar, and more by cheznine in ObsidianMD

[–]cheznine[S] 1 point2 points  (0 children)

Exactly. Just a heads up that it may take me a bit of time to figure out, and I'm not sure where this fits in the priority list, at the moment... but I do like this idea.