ztree
ztree copied to clipboard
Quitting the Quick view mode reset the cursor/point at the beggining of the Ztree buffer and not to the current file.
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.
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:
- Have Emacs show a single buffer, i.e. C-x 1
- M-x ztree-dir (for some directory)
- Move the cursor down a bit, e.g. do PgDn, and press Enter (ztree-perform-action)
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