ztree icon indicating copy to clipboard operation
ztree copied to clipboard

ztree-next-line and ztree-previous-line don't always work right

Open diamond-lizard opened this issue 5 years ago • 1 comments

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.

diamond-lizard avatar Oct 20 '20 23:10 diamond-lizard

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?

fourier avatar Feb 10 '21 20:02 fourier