Open 4goodapp opened 4 years ago
Good catch. Unfortunately I was not able to find a quick way to fix it yet..
Using Enter (and not v - quick view), to view the difference between two files, when you quit with q the cursor. is back in to the right place in the ztree buffer.
Maybe using that same code that take care of that may help?
Ohh I just find out that using Emacs's built-in winner-mode with the command: winner-undo
/ winner-redo
, put it back to the right place. maybe that can help to find a way to.
Hi, I just started having a look at ztree-dir and it seems very neat, but I ran in to an annoying UX issue.
This issue might belong here, or maybe I should create a separate one - please just let me know in that case.
I'm using ztree that I just installed from melpa (20191108.2234), please let me know if I should test with another version.
Here's how to reproduce:
This makes Emacs show a second window, where the second window shows the selected file. However, the cursor in the window for the ztree-dir has now moved (up a number of lines). This is very annoying.
I'm able to reproduce this with a 'clean' Emacs setup, so it shouldn't depend on my local configuration. I.e. I also reproduced this issue after having started Emacs using the following command: $ emacs -q --eval "(package-initialize)"
@DrChr I cannot reproduce this issue anymore, If you can please create a separate issue.
I've now created a separate issue, #78
when you place the point at a file and use v to view it quickly, when you quit with q, the cursor is not placed back to the file but to beggining of the ztree buffer.