Given the addition of new New open and window messages and parameters we are well on the way to being able to being able to build a window manager that allows tiddlers to be opened in additional browser windows. I am working on one right now, I plan to share, with a link here in this topic.
Currently I will need to add a close button to the opened window so that when a window is closed, it is removed from the open window list.
- However if the user uses the windows close icon (top right) the window will be closed by the browser and the wiki will be “none the wiser” that the window was closed.
My Question(s)
- Is there a way, or could be a way to detect the browser “closed” a given WindowID?
- Alternatively is there a way to detect within the wiki if the window is no longer open?
My expectation
I do expect the answer to be “no” on the above two questions so I would then ask the following;
- Is this even technically possible for tabs/windows to test the status of child window(s} it has opened?
- Clearly tm-close-all-windows and tm-close-window suggest this may be possible
- If so I believe this would be a helpful if we add such support into the next release of tiddlywiki
- If we could also list the windows opened by the parent, a window manager would be more reliable.
[Edited] A related observation is zoom in and out in a window affects the parent window as well. This should be restricted to just the window.