Coder Social home page Coder Social logo

Comments (5)

seagle0128 avatar seagle0128 commented on July 17, 2024

Hello,
I have a few questions. First I want to double confirm if you are using evil-anzu, since evil-search won't trigger anzu segment. The second is how to change buffer: switch to other window or buffer? And whether are the same buffers in different windows?

According my understanding, I tested on my env. Below is recording on Vanilla Emacs (emacs -Q --debug-init). No such issue which you clarify.

Please upgrade to the latest version. If you still have this issue, I hope I can get more details, e.g. Emacs version, OS, recordings... Thanks!

emacs

from doom-modeline.

wedens avatar wedens commented on July 17, 2024

First I want to double confirm if you are using evil-anzu, since evil-search won't trigger anzu segment.

I press / for a search which is bound to evil-ex-search-forward.

The second is how to change buffer: switch to other window or buffer? And whether are the same buffers in different windows?

Other buffer in the same window. But if I open multiple windows, I get the same segment in all modelines.

Tried with doom-modeline 58eb5c3 (HEAD). Same result.

Performing a search and opening another buffer in another window:
peek 2018-11-27 20-02

Opening another buffer in the same window:
peek 2018-11-27 20-04

Here I just press / type defun and press RET.

Can you try it with (evil-select-search-module 'evil-search-module 'evil-search) and/or (setq evil-search-module 'evil-search)? There is some code that makes it work with evil-search: https://github.com/syohex/emacs-evil-anzu/blob/master/evil-anzu.el#L37

Emacs version: 27.0.50
OS: GNU/Linux

from doom-modeline.

wedens avatar wedens commented on July 17, 2024

Btw, I can't reproduce the issue in doom-emacs which also does (evil-select-search-module 'evil-search-module 'evil-search)

from doom-modeline.

wedens avatar wedens commented on July 17, 2024

I've found the cause. I don't have global-anzu-mode enabled (I have it in my config with an (apparently failed) attempt to lazy-load it).

Please close the issue if it's expected behaviour. And sorry for disturbance.

from doom-modeline.

seagle0128 avatar seagle0128 commented on July 17, 2024

Good to know the issue was addressed!

Actually some hooks are loaded after loading anzu to reset anzu status. anzu-mode should be enabled before using evil-anzu and evil-search. It's as designed so close it.

from doom-modeline.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.