Minimal bundler: holding tiddlers not a live part of current wiki

shadowlings


1 Like

halflings? (because they’re half-way there)

“Go answer the door. It looks like we have Halloween carolers again.”

“Yep, you’re right. It looks like two shadowlings from the half-world, and one spirit chaser with a proton pack. What are you going to sing for us, friends?”

"♩ ♭ ♫ Tiddlings of comfort and joy, comfort and joy! ♬ ♪ ♮ "

2 Likes

With that stray flat and natural, I’d stick to coding if I were you. :stuck_out_tongue:

1 Like

Yeah, the world is a whole lot better that way.

I just wanted to say thank you again. I just tested this technique, and while I have a lot of work to do on my workflow for this, it’s working great. You can see an example at the bottom of Conditionally showing view templates

@Mark_S thanks for this code pattern, it reminds me of the value of both droppable and dragable features including on the button widget.

  • In the long run I can see meeting @Scott_Sauyet needs by allowing tiddlers in the current or an external wiki to be dropped and added to the JSON/Plugin tiddler.

Nice. Looks like the beginning of a roll-your-own-edition TW file.

Well, it’s based on my personal documentation edition, https://crosseye.github.io/TW5-Tiddox/. It’s just a POC for a new way to document TW itself.

… If you’re viewing from a single-file wiki, you can toggle the edit state with CTRL-SHIFT-/.

If users have a different keyboard layout than US or GB this shortcut is not accessible. It’s an Ö or Ä for me.

So it needs to be configurable or it should be a different one.

Damn, that’s the first I heard about this.

Configurable isn’t going to work, not at a user level. (Think about it. :wink:)

Any suggestions for an alternative?

For anyone not seeing the original, this is the keystroke to toggle between read-only mode and edit-mode. It’s set to edit mode by default if you’re running in Node, read mode otherwise. It’s meant for publicly visible wikis, editable only by an individual or a small group.

It needs to be unobtrusive. A typical reader shouldn’t even know that edit mode exists. So I really can’t have a button. (Well, I suppose I can, but it would have to be on a tiddler you’d have to search for and would not likely trip over. But that feels a bit unwieldy.)

I haven’t tried, but I imagine I can offer a few different keystrokes for the same action.

Any suggestions?

May be CTRL-ALT-M for “Mode” – CTRL-ALT-M is not “consumed” by the browser itself.
Edit. CTRL-ALT-M is not detected by the shortcut-editor – (Fount it) CTRL-ALT is equal to ALTGR and ALTGR-M is µ :confused:

SHIFT-ALT-M is detected – and seems to work for me, with a German keyboard layout

CTRL-SHIFT-M (Toggle Mobile View) is a browser shortcut that I do need a lot.

Special keys, which are near the ENTER-key depend on the OS key-board layout. So they often cause problems.

I’ll try it this evening or tomorrow. Off to a family celebration now.

Ctrl-Click/Alt-Click somewhere meaningful?

1 Like

I’ve tried adding this as a second keystroke to Title — Subtitle. It isn’t working for me, but perhaps that has to do with different keyboard layouts. @pmario, when you have a moment, would you be willing to check if it’s working for you?

Hmmm, It’s funny. As I did test it with windows it worked. Now on a linux laptop it does not. That’s strange. More testing will be needed.

Hmm, I’m not going to be able to focus on this for a while. But if anyone has suggested more universal keystrokes, I can add them quickly and post for more widespread testing.

I suppose if I really had to, I would do that, but keystrokes are nicely universal and are not messed up when layout/content changes.

This works for me. The last element (toggle-reader-mode) does nothing with no configuration.

I’m going to have to read more on keyboard handling to figure this out. I’ll try to get to it soon.