ztree icon indicating copy to clipboard operation
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.

Open 4goodapp opened this issue 4 years ago • 6 comments

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.

4goodapp avatar Aug 17 '20 09:08 4goodapp

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

fourier avatar Aug 18 '20 08:08 fourier

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 avatar Aug 23 '20 16:08 4goodapp

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.

4goodapp avatar Aug 23 '20 16:08 4goodapp

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 avatar Oct 19 '20 07:10 DrChr

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

fourier avatar Feb 21 '21 13:02 fourier

I've now created a separate issue, #78

DrChr avatar Feb 21 '21 14:02 DrChr