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

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 this issue Aug 17, 2020 · 6 comments

Comments

@4goodapp
Copy link

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

fourier commented Aug 18, 2020

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

@4goodapp
Copy link
Author

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

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

DrChr commented Oct 19, 2020

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

@fourier
Copy link
Owner

fourier commented Feb 21, 2021

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

@DrChr
Copy link

DrChr commented Feb 21, 2021

I've now created a separate issue, #78

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

3 participants