Modifying the "More actions" menu

83 views
Skip to first unread message

Hubert

unread,
Apr 18, 2020, 3:41:43 PM4/18/20
to TiddlyWiki
Hello,

I'd like to hide some options shown in the "More actions" list of a tiddler:

more_actions.png



I don't remember there being an option to toggle any of these items in the Control Panel.

I did find a couple of shadow tiddlers that I could modify (some of which are already set to "hide" for some reason) or remove their relevant tag(s) but thought I would ask here first in case there was a cleaner (and a reversible) solution.

Thank you!
Hubert


Birthe C

unread,
Apr 18, 2020, 4:20:34 PM4/18/20
to TiddlyWiki
Hubert,

When upgrading it is not good to have overwritten shadow tiddlers. But you could edit $:/core/ui/Buttons/more-tiddler-actions. Edit the list filter.


Birthe

Mark S.

unread,
Apr 18, 2020, 5:16:39 PM4/18/20
to TiddlyWiki
Under control panel, appearance, toolbars, view toolbar you can set and unset items to appear on your tiddler toolbar.
You can even drag and drop items to rearrange the order in which they appear.

TonyM

unread,
Apr 18, 2020, 5:40:40 PM4/18/20
to TiddlyWiki
The tag $:/tags/ViewToolbar places any button on the view toolbar. Removing that tag removes it from the toolbar.

'<<tag "$:/tags/ViewToolbar">>' allows you to view and open the tiddlers.

Regards
Tony

Mat

unread,
Apr 18, 2020, 5:48:13 PM4/18/20
to TiddlyWiki
Hubert, as the others correctly point out, you set it where they state. What is not clear, however, is that unchecked items means that it goes into the more dropdown. IMO this UI is not clear. I'll post an issue on github.

<:-)

Hubert

unread,
Apr 18, 2020, 6:30:36 PM4/18/20
to TiddlyWiki
Thank you all.

I should have stressed that I'm only interested in what's shown when clicking on the "More actions" button. I'm not trying to hide this button itself or any other button on the same level for that matter. I am trying to hide what's revealed by the "More actions" button (stuff "beneath" it).

Birthe, you've actually pointed me in the right direction -- I do need to edit the filter in the shadow tiddler $:/core/ui/Buttons/more-tiddler-actions by manually removing references to anything I don't need. I'll do that tomorrow and think this should do the trick. Thank you!

PS. Mat, although that's not exactly what I needed, it's great that you've spotted the UI inconsistency there by the way.

Thanks again to everyone for your involvement :)

Regards,
Hubert

TonyM

unread,
Apr 18, 2020, 7:24:44 PM4/18/20
to TiddlyWiki
Hubert,

A good design approach is to rule something into existence rather than hacking the default behavior to rule something out. Its a bit more long winded but would be a more versatile option.
  • Create a new More Drop down menu and add only the buttons you want in the new more dropdown
  • Hide the standard more drop down button from display on the view toolbar.
  • With a little reference to the current methods you could have another "more toolbar" settings like the current.
I have actually done this before.

Regards
Tony

Hubert

unread,
Apr 19, 2020, 8:04:07 AM4/19/20
to tiddl...@googlegroups.com
Thanks Tony.

For the record, I've decided to take the following route:
  1. Open the shadow tiddler $:/core/ui/Buttons/more-tiddler-actions
  2. Modify the list filter inside of this shadow tiddler so that it excludes the list items I don't want to see
I've also made a copy of the modified shadow tiddler's text field in a separate tiddler in case I ever need to bring back my changes.

If I ever need to bring back the "factory" version, all I need to do is delete the modified (overwritten) shadow tiddler. That's the beauty of shadow tiddlers in general.

Now I only have the stuff that I need:

modified.png



Thanks everyone for your help. Issue solved.

By the way, the built in class .tc-drop-down causes the More tiddler actions dropdown to overflow viewport on mobile, because its min-width is set to 380px for some reason. Most mobile browsers in mobile view have a viewport width of 360px today, so I've targeted that with a media query in my own stylesheet like below, but that's an unrelated note to anyone interested:

@media (max-width: 650px) {
   
.tc-drop-down {
        min
-width: 360px;
   
}
}

Regards,
Hubert
Reply all
Reply to author
Forward
0 new messages