Skip to content

Unable to recenter window after command completion. #3

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
jcs090218 opened this issue Sep 17, 2020 · 1 comment
Open

Unable to recenter window after command completion. #3

jcs090218 opened this issue Sep 17, 2020 · 1 comment
Labels
bug Something isn't working good first issue Good for newcomers help wanted Extra attention is needed

Comments

@jcs090218
Copy link
Member

jcs090218 commented Sep 17, 2020

As the title, I am not able to recenter the preview window after the command is confirmed to be completed.

ezgif-7-144e6c6fd8a7

@jcs090218 jcs090218 added bug Something isn't working good first issue Good for newcomers help wanted Extra attention is needed labels Sep 17, 2020
@jcs090218
Copy link
Member Author

My current solution is

(use-package ivy-searcher
  :defer t
  :init
  (setq ivy-searcher-display-info 'line/column
        ivy-searcher-preselect 'next)
  :config
  (advice-add 'ivy-searcher-search-file :after #'jcs--recenter--advice-after)
  (advice-add 'ivy-searcher-search-project :after #'jcs--recenter--advice-after))

See here.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working good first issue Good for newcomers help wanted Extra attention is needed
Projects
None yet
Development

No branches or pull requests

1 participant