Tiddlywiki has long had the feature that allows you to open a tiddler in a new window, It has a range of uses, I am not confident too many people know, for example if you open a table of contents in a new window, it becomes a separate window on your device that can remote control the parent wiki, click on an item and it will open in the parent wiki.
- I am writing a window manager tool to share and celebrate the release of tiddlywiki 5.3.2 now 5.3.3
You see until now it was easy to loose a window once opened, especially on my two screen desktop and with a lot of windows open. However we now have all the pieces of the puzzle to build a Window manager, for tiddlywiki’s open in new window, given the following “bug fix”;
fixed - WidgetMessage: tm-open-window when opening an existing window to bring it to the front and focus it
- This means we can easily return to the open window without returning to the tiddler first, especially after other windows end up being in front.
I have raised this “Request For Comment” (RFC) if anyone would like to influence the resulting solution and to raise a question.
Planned functionality;
- Open any tiddler in a window (remains in the story)
- Optionally another button, Open any tiddler in a window and close that tiddler in the story, eg move tiddler to window.
- Capture a list of all opened windows in a sidebar list, sidebar segment select widget, and/or menu item.
- This allows you to open/reopen find a window anytime
- Able to close the window, or close and remove from the open window list.
- Maintain a list of previously opened windows so you can reopen them without first finding the tiddler.
What other features can you think would be helpful?
What do you think having a “Window Manager” implies?
Do we want a similar set of tools for " tm-open-external-window" as well?
- I am still to research the possibilities here
Background
The default open in new window typically only renders and displays the text of the tiddler in question.
- This is often enough, however if you rely on various elements introduced by the view template tags you will not see them in the new window.
- In the past I remedied this by creating another button which also applied the view template items to the new window, as a result things like footers also appeared.
- If we want the option to open a tiddler in a window or move the tiddler we may need another two buttons?
Here is are some specific questions I would like feedback on;
Should we have a choice of one, two or even four buttons, can we do with only one ?, and which do you think you would most often want to use?
- Open new window With or without the full view template in the window (Less the title and buttons) and with or without closing it in the story?
Do you have any icons that you think represents these different new window buttons?
More for the technically minded
- Window: open() method - Web APIs | MDN
- What use is iframes in this context?