Comments (6)
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.
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.
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.
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.
I like the first version showing more of the state at a single spot. Depends on preferences 🤷
from isearch-mb.
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)
- Should require cl-lib at compile time because of cl-letf HOT 3
- Remap previous/next-line-or-history-element to isearch-repeat-backward/forward HOT 3
- Failing I-search/Wrapped I-search message HOT 6
- When changing the search direction C-s/r must be pressed twice HOT 3
- cursor-in-non-selected-window should be set temporarily in searched buffer HOT 2
- ELPA? HOT 2
- Recenter issue HOT 7
- Avoid moving to the prompt. HOT 1
- Enter non-incremental search on empty submission. HOT 1
- isearch-mode-map issue HOT 1
- After pressing `isearch-forward-regexp` twice, the prompt becomes "Regexp Regexp I-search" HOT 3
- Wrong lazy count info when starting the search HOT 1
- Performance issue when `isearch-mb-mode` is on HOT 12
- Could input methods be made to work? HOT 4
- Feature request: ivy-like space behavior HOT 1
- Is it possible to make to implement `C-w runs the command isearch-yank-word-or-char`? HOT 2
- "Error running timer: (wrong-type-argument" when searching in the help buffer
- Feature request: make `isearch-mb--no-search` part of the public API by renaming it and declaring it with `defcustom` HOT 1
- Feature request: option for indicating current the value of `isearch-case-fold-search` and `isearch-regexp` in the `isearch-mb` minibuffer prompt HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from isearch-mb.