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

Quitting the Quick view mode reset the cursor/point at the beggining of the Ztree buffer and not to the current file. #69

Open 4goodapp opened 4 years ago

4goodapp commented 4 years ago

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.

fourier commented 4 years ago

Good catch. Unfortunately I was not able to find a quick way to fix it yet..

4goodapp commented 3 years ago

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?

4goodapp commented 3 years ago

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.

DrChr commented 3 years ago

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)"

fourier commented 3 years ago

@DrChr I cannot reproduce this issue anymore, If you can please create a separate issue.

DrChr commented 3 years ago

I've now created a separate issue, #78