GithubHelp home page GithubHelp logo

Comments (6)

astoff avatar astoff commented on June 3, 2024

At some point I included this:

(defvar isearch-mb--lighter
  '(" Isearch:"
    (search-spaces-regexp "s" "-")
    (isearch-case-fold-search "c" "-")
    (isearch-wrapped (:eval (if (and (not isearch-wrap-function)
			             (if isearch-forward
				         (> (point) isearch-opoint)
			               (< (point) isearch-opoint)))
		                "W" "w"))
                     "-"))
  "Mode line indicator for `isearch-mode'.")

But then I removed it, since I'm not really convinced this is better than nothing.

from isearch-mb.

minad avatar minad commented on June 3, 2024

I would love to have some isearch indicators which somehow expose the current configuration of the isearch. I must admit I didn't really know for a long time that isearch offers all these different modi. I think it could be helpful for many users, at least the ones who use Emacs intuitively and don't read the full docs. I used Emacs for many years, but I guess never to its full extent and power since I didn't look deeply into the details. It worked okay, but it would have been neat if there were more visual clues. I am not advocating to not read the docs, but I believe there could be some small improvements to lower the barriers.

from isearch-mb.

minad avatar minad commented on June 3, 2024

If you say that this feature is out of scope for isearch-mb, that is okay since it is more of an orthogonal concern. I just thought I mention it, assuming that isearch-mb aims to be an "improved isearch" package.

from isearch-mb.

astoff avatar astoff commented on June 3, 2024

Maybe something like this

(setf (cadr (assoc 'isearch-mode minor-mode-alist))
      '(""
        isearch-mode
        "/"
        (isearch-regexp
         "R"
         (isearch-regexp-function
          (:eval (upcase
                  (substring
                   (or (get isearch-regexp-function 'isearch-message-prefix) "?")
                   0 1)))
          "-"))
        (isearch-regexp (isearch-regexp-lax-whitespace "S" "-")
                        (isearch-lax-whitespace "S" "-"))
        (isearch-case-fold-search "C" "-")))

or like this?

(setf (cadr (assoc 'isearch-mode minor-mode-alist))
      '(""
        isearch-mode
        "/"        
        (isearch-regexp (isearch-regexp-lax-whitespace "S" "")
                        (isearch-lax-whitespace "S" ""))
        (isearch-case-fold-search "C" "")))

The first version would make the search mode info in the prompt technically redundant, but maybe removing the info from the prompt would be too much. What do you think?

from isearch-mb.

minad avatar minad commented on June 3, 2024

I like the first version showing more of the state at a single spot. Depends on preferences 🤷

from isearch-mb.

astoff avatar astoff commented on June 3, 2024

This is a general isearch question, so I will close the issue. (Improving the mode line indicator in Emacs itself would also allow to declutter the isearch echo area message.)

If you arrived at a solution you find useful, feel free to add it to the wiki.

from isearch-mb.

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.