ztree
ztree copied to clipboard
ztree-next-line and ztree-previous-line don't always work right
Given the following ztree-mode buffer
Differences tree
Left: /tmp/foo/
Right: /tmp/abc/
Legend:
Normal file - same on both sides
Orphan file - does not exist on other side
Mismatch file - different from other side
Ignored file - ignored from comparison
==============
[-] foo | [-] abc
`--[-] bar | |--[-] bar
`--[-] baz | |
| `--[-] def
With point on foo, bar, or baz on the left, ztree-next-line and ztree-previous-line work as expected, moving from parent to child and back.
However, with point on bar on the right, ztree-next-line moves point under the tree on the left instead of to def.
Also, with point on def on the right, ztree-previous-line moves point to abc instead of to bar on the right.
I see the confusion, but I'm not sure if this behavior is not correct. When I move cursor I expect it to not jump several lines at once. It just moves one line as expected. Maybe user wants to jump then to another side with TAB to copy the file/folder absent?