-
Notifications
You must be signed in to change notification settings - Fork 23
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
Suggestions for changed in behavior for next/previous #47
Comments
I don't have a clear mind on this, because when there are more than two branches, it is not obvious that the proposed semantic is more intuitive than the current one.
"Following the lines of the graph" becomes ambiguous when you have more than two branches at a single node, IMO.
These are nice, but I don't think they are that useful to justify implementing. TBH, I only use vundo from time to time, when |
Okay, feel free to close this report if you don't think it's practical to implement. |
Two users in that thread tried to go down in this situation and were surprised it didn't work. I felt the same way when I first tried vundo. Is this the situation you describe?
I'd expect this still:
|
Consider this tree, when I press
Of course, we can make it that if the current node doesn't have a sibling, |
I would expect to go to A and not to B there. Intuitively for me, I would expect to have to go back to the root and then go down. I'm not really sure what is best though. I've never used a horizontal tree like this before.
Yes, probably. The current behavior seems the most consistent. I can get used to it. |
If the argument is one of semantics "next" and "prev" aren't really great names for the commands for the same reason. |
I just want to through an other idea in the mix.
Change it to:
This moves the parent knot one step to the left and the "+" sign just displays, that there is a split.
Press "f":
Press "n":
It is just an idea for the discussion. Cheers! |
Thanks for your thoughts on this. Still waiting for a brilliant solution that solves all of our problems ;-) I thought more about the original proposal and found this issue:
In such a tree and according to the proposal, pressing |
I apologize if this has already been said but the way visual undo tree does this is through having switch branch ( |
Thanks for chiming in. For the record I have thought about the way undo-tree does it. But it is not easy to implement in vundo due to how we move between nodes and how is the tree drawn. |
One trivial idea I had on this old topic: at the branch point (yellow below), |
Good to see that you are still thinking about this problem. A lot of users may come from undo-tree, and it is really hard to get used to the alternative behavior of vundo. Which I didn't like much, btw, but I'm still used to it. Maybe consider to just implement an option that when turned on "does what has been suggested above when the situation is not ambiguous, else just raises a user-error." That would not be hard to do and still satisfy most users (without having thought too much about this). |
@casouri any thoughts on attaching |
JD Smith ***@***.***> writes:
@casouri any thoughts on attaching <down> behavior at a branching
parent node?
Do you mean "do the same thing as undo-tree does: just select branches
without changing the current node"?
|
From reddit user nv-elisp.
Pretty cool. I find the graph easier to follow horizontally than the vertical orientation undo-tree has.
A few ideas/suggestions:
I would expect vundo-next to work here as well and follow the diagonal of the graph. From here:
to here:
And I would expect vundo-previous to work similarly:
would lead to here:
Basically follow the lines of the graph when pressed instead of hopping to the the parallel point in the graph. This was just my initial impression, though. I could see getting used to the way it currently works as well.
It would be neat if one could click on any of the unselected points in the graph and show a buffer diffing current position in the graph with that point.
Another idea is to record/display some information about each point in the graph when navigating. Perhaps the time the edit was made?
Food for thought.
The text was updated successfully, but these errors were encountered: