fourier / ztree

Directory tree comparison mode for Emacs
http://www.emacswiki.org/emacs/ZtreeDiff
GNU General Public License v3.0
239 stars 21 forks source link

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

Open diamond-lizard opened 3 years ago

diamond-lizard commented 3 years ago

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.

fourier commented 3 years ago

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?