Comments (8)
That seems fine as an optional configuration. We can just use isearch-no-upper-case-p
; it's not going anywhere.
from ctrlf.
Case folding is now guessed based on the current search query by default, and you can toggle it persistently (for the search session) using M-s c
, the same binding as in Isearch.
from ctrlf.
This works well! But I don't know if the keybinding is the best. M-s
calls next-matching-history-item
in minibuffer by default, so I have to bind ctrlf-toggle-case-fold-search
to another key to use it.
from ctrlf.
I noticed that. Any suggestions on a better binding? I was unable to find anything standard that wasn't a bad idea in one way or another.
from ctrlf.
How about M-c
? That seems to do the same thing in isearch.
from ctrlf.
But as I mention in #29, that conflicts with capitalize-dwim
, which to me is even worse than conflicting with next-matching-history-item
as it is a better-known command.
from ctrlf.
Ah yes... I think bind M-s
to nil is not a bad idea. Or if we have to invent it, I think we could have a prefix key (like C-o
in ivy. I personally have M-l
(means "local") in various temporary state / special major mode to execute their commands), and put c
under it to toggle case fold. In the future we may have other switches, and commands like "recursive edit" during replacing, we could put those under that prefix too. Actually I think it's a good idea to also have search style switches under it.
from ctrlf.
M-l
is bad because it conflicts with downcase-dwim
, but C-o
is a fair choice because wanting to use open-line
in the middle of a search would be an odd use case. Changed.
from ctrlf.
Related Issues (20)
- Lacks isearch-query-replace HOT 5
- Can it support wgrep in occur mode? HOT 1
- Question: How to add Chinese pinyin support? HOT 1
- Doesn't honor search-invisible HOT 1
- C-g behaves like RET HOT 4
- first character is not deleted HOT 9
- moving the mark back into the main buffer leaves things in a goofy state HOT 4
- Renaming default branch from 'master' to 'main' HOT 1
- C-r wrong HOT 2
- Don't jump to invisible text HOT 1
- Does not open up org mode folded headings HOT 2
- How do I customise `ctrlf-minibuffer-bindings` in my config? HOT 2
- Expose match count/index for modeline segments? HOT 1
- C-s and C-r doesn't always search the next or previous occurrence. HOT 2
- Other messages in minibuffer HOT 5
- Does not work in specific special buffer HOT 1
- Go to next match after "ending" search HOT 5
- No isearch-esque unprettifying while searching HOT 2
- Mention isearch-mb in the readme HOT 1
- isearch-repeat-forward? HOT 3
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 ctrlf.