Skip to content
This repository has been archived by the owner on Jun 17, 2023. It is now read-only.

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

Open
diamond-lizard opened this issue Oct 20, 2020 · 1 comment
Open

Comments

@diamond-lizard
Copy link

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
Copy link
Owner

fourier commented Feb 10, 2021

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?

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants