-
Notifications
You must be signed in to change notification settings - Fork 1.2k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
When closing, navigate to previous tiddler #2776
Comments
There is a fundamental difference between navigating "above / below" and "create a new tiddler". New tiddlers are always created below the actual tiddler. |
I think this highly depends on a users preferences and the workflow at a given time. Consider my real live workflow: Open Tiddler: SomeContentWithLinks
... Can you imagine, how "distracted" I am, if the SomeContentWithLinks jumps into view by default now? I know that I need to read the "child" tiddlers in reverse order. So my proposal would be completely different, according to my workflow. ... But depending, what I do, the workflow varies. ... |
For me a new global setting eg: "Closing a tiddler selects the tiddler above" would make sense. It would be independent from the other settings. |
Well, as you mention, you're reading the child tiddlers in reverse. If you wanted to read them in order and went down further to read A first then my proposal would actually bring you to the desired B after closing A. However, my main point; regardless of order the children were read in, when you eventually close the last remaining child, you currently don't get to the parent but instead some unrelated tiddler X. That is distracting.
Ha! That seems to work really well! And, sure, having it as a new global setting is a route - but IMO my proposal makes more sense than the current default behaviour. |
But what, exactly, does "selects the tiddler above" mean? |
Bear in mind that using the "Open" sidebar tab it is possible to close tiddlers without them being visible |
Good point, I've updated the OP to limit it to when the tiddler is closed using the close-tiddler-tool X button. |
I know and that makes it complicated, since the existing mechanism imo has no chance to know this. |
@pmario, since your initial behaviour of opening tids in the background is triggered via some non-default CTRL+Click... so your closing a tiddler could also be non-default, e.g. CTRL+Close I don't think "above" is quite what we're after but rather "the previous title in the history". |
To clarify, I think the idea is to set focus on the title in |
Ctrl+Click is there since ages. .. It's default behaviour, to open tiddlers, without scrolling. |
That's exactly, what the version in the .zip file does. ... But it also does the scrolling, if you close a tiddler form the "Open" sidebar. ... Which can't be detected at the moment. .. But for me it actually works better, than the default behaviour, since it scrolls to the top of the tiddler. ... I'm not sure if we can have CTRL-close to close a tiddler and avoid scrolling. |
Just realized there's no need to try to figure out where the tm-close comes from. We know that only(?) the tiddlers own local close button is where we want the OP idea to play out. ...so the focus should be there, right? The following works. Is there anything principally wrong or inappropriate with it?
Not sure how to make it accommodate to It would be cool if the |
@Jermolene - assuming a properly coded solution that only concerns the local tiddlers close button - would this be accepted for core? Or is there a problem with the concept to begin with? |
Hi @twMat there are quite a few issues that would need working through. For example, the implementation above is specific to the close button in the toolbar, and the logic isn't invoked if the tiddler is closed by other means (eg, the "close" button in the "open" sidebar). Neither of course would one necessarily want the logic invoked in that situation; what if the tiddler being closed isn't currently scrolled into view? Personally, I think it makes more sense to extend the story logic with the sense of a "currently focused tiddler" that can be controlled with the keyboard. |
@Jermolene - in order to solve the issue, we would thus have to specify exactly when one would want the logic invoked. In your opinion, when is this?
Cool. But the question of which tiddler to automatically give focus to after the current is closed still remains, no? |
The trouble is that there is no concept of "focus" in TW5 at the moment, just that of navigating to a new tiddler. As discussed above, using navigate to jump to a new tiddler after a closure will sometimes have unexpected side-effects. Plus I think your logic really only works within the "classic" storyview. But more broadly, whatever defaults we chose for what happens when you close a tiddler, the behaviour is going to be wrong for some users. The ability to navigate with the keyboard would give the user a direct way to rapidly manipulate the story river. |
As long as it's not the tab key, which is used for navigation, I'm fine. |
I have used this close button now for some two years.
Equivalent for the delete button. It works perfectly and does, in deed, give a much better UX. Performance instrumentation show insignificant difference (both plus and minus a few ms here and there). |
@twMat You are a freaking lifesaver... I honestly found the default behavior so annoying and disorienting as to be the largest disruption in my workflow... It's dumb I know, but I can't understand why this feature request is not just a configurable option? I added @Jermolene @pmario would it not just make more sense to offer a checkbox in the theme configuration tiddler to set |
I frankly wonder how can it not be annoying to have a typically irrelevant tiddler appear instead of the one you were previously at? Maybe they have very different use cases where each tiddler is either totally unconnected or, the opposide, the tiddlers are all totally relevant to one another, so an arbitrary tiddler doesn't disrupt their train-of-thought. Or maybe their workflow is to very consistently close a tiddler right after working with it so that they don't have multiple tiddlers in the river? (I'd guess there's an overlap with people who have very few browser tabs open.) Had I remembered, I should have flagged this for 5.1.23 but now I'm hoping it can be dealt with for .24 (@Jermolene ) |
By far the simplest way to solve this would be to change the default value of |
@rmunn - that's a good point but IMO it's not fully satisfactory. (The resulting story river then, of course, doesn't read well from top bottom for the times when one does want that, e.g permalinks.) |
I'm with @twMat on this one. I find it far easier to use his little workaround than to retrain my mind to read a tiddler from top to bottom and link tiddlers from bottom to top, but it's worth noting this as a viable workaround for others until there is the option to flip this close behaviour in TW as a builtin option. For others coming here the best solutions are:
|
I still insist that the requested behaviour, i.e to navigate to previous tiddler in StoryList, is totally superior to default. Would it be possible to add an |
OP is revised, most importantly to inform about the plugin I made. The request is as valid as ever but it touches on the more general need, as noted by @saqimtiaz apropos that it would be desirable to remotely hook into the close- and delete button core tiddlers rather than overwriting them:
With this in mind, and also considering the obvious lack for support for the OP, I'm closing this issue. Thank you, everyone who participated. |
Note 1: I made a plugin for this: https://scrollback.tiddlyhost.com/ - (I still think it should be a core feature though)
Note 2: This post has been revised to reflect insights and clarifications from the succeeding ~14 posts.
Problem scenario
Some common tiddlers are open. You're reading one of them, tiddler A, and inside it click a tiddler link or perhaps create a child, which opens and sets focus to a new tiddler, B, below A. ...but when you then close B, you don't get back to tiddler A. Instead you're presented the tiddler below, tiddler C!
This is typically distracting because A and B had a certain context - and now a possibly completely different matter is scrolled into view. The context is broken as is the users mental chronology of past events.
Proposal
Closing or Deleting a tiddler, via its toolbuttons, should by default shift focus to the tiddler that's listed before the current on in the StoryList!!list. (For default TW this means the tiddler above, not the tiddler below.)
The text was updated successfully, but these errors were encountered: