Are we able to tweak the duration or position of the Save wiki notification?

I did track down the notificationDuration setting to the tiddler $:/core/modules/config.js It appears to be fixed at 3 seconds. A little long for my taste. Plus it covers up a part of the Page Toolbar on mobile, and is just long enough to interrupt my flow if that makes sense to anyone.

Maybe the duration or position can be tweaked using css?

I usually don’t like modifying core tiddlers, but I’d make an exception in this case.

Is there a quick and easy way the position or duration can be made configurable?
Thanks.

I have been working on this. See: Extending notification mechanism

In addition to positioning I have modified a theme colour look.

I have some JavaScript export methods where I wanted to provide a notification duration of 10 seconds. I was able to override the default setting before requesting my notification, then restore the setting to three seconds afterwards.

If you want to change the default value, without changing core, this could be done in custom startup action tiddler.

I’ll have a look and see if I can write one for you.

You can easily adjust the notification position via CSS:

Create a tiddler (e.g., “SetNotificationPosition”) tagged with $:/tags/Stylesheet, containing something like this:

.tc-notification { top:auto;left:1em;bottom:1em; }

This will put the notification in the lower left corner.

-e

Try these tiddlers in a test project. It overrides the default setting, setting the duration to 10 seconds on startup. Don’t forget to save and reload to test.

One tiddder is loaded on startup, and it calls a widget to set the default to 10 seconds.

A better solution is modify the widget to accept a parameter.

$__startup_set-notification-duration.json (185 Bytes)
$__plugins_local_set-notification-duration.json (351 Bytes)

Thank you @clsturgeon and @EricShulman - always something new to learn.

These are both great solutions, which together provide the features I wanted (which is why I am not going to mark one as the solution over the other - they are equally useful to me.)

Someone who knows could package this into a plugin with a nice user interface.

In case anyone is interested, I am trying to track live work requests. I have a group of buttons labelled with machine names. Pressing the button creates a tiddler with the machine name and some fields, and saves the wiki. Depending on the machine I may need to switch focus to a more critical machine, in which case I want to record the switch and make a note. There are so many ways to accomplish this and I am trying different things to see what is going to work best for me. There are probably better solutions for what I want but currently the position and slowness of the notifications were a bit of an annoyance.

Thanks again.