Comments (6)
Just stumbled over this: https://github.com/doyensec/regexploit
from orderless.
One good test to try would be to test (setq completion-style '(orderless) orderless-matching-styles '(orderless-flex))
vs (setq completion-styles '(flex))
. If, as I suspect, they are comparably slow, it would be an indication that there isn't much to be done about this.
I wasn't fully aware of my motivation at the time, but in my personal configuration the expensive styles like initialism and flex are always introduced by explicit syntax. It must have been that I felt those were slower (but I never deal with long lines, so the difference is pretty small).
from orderless.
I am not using flex by default since it seems so much more expensive. It always leads to a noticeable slowdown. But initialism is activated always. I am using the default settings with the explicit syntax for flex~ and literal= and !negated literal.
from orderless.
My syntax for flex even has two characters! Again, probably subconsciously I felt it was even slower than initialism. I use a single (either leading or trailing) .
for initialisms but curly braces for flex (I also use electric-pair-mode
so I only type one brace).
from orderless.
It is not unreasonable to use multiple characters for the explicit styles in order to avoid interference with regexps. And usually when I do an explicit style switching, typing two letters wouldn't make a difference.
from orderless.
What about removing initialism from orderless by default? Instead recommend creating special orderless-styles which include more matching styles? And in any case we have the matching style dispatchers.
(orderless-define-completion-style orderless+initialism
(orderless-matching-styles '(orderless-initialism orderless-literal orderless-regexp)))
(setq orderless-matching-styles '(orderless-literal orderless-regexp))
(setq completion-category-overrides
'((file (styles partial-completion orderless+initialism))
(command (styles orderless+initialism))
(buffer (styles orderless+initialism))
(consult-multi (styles orderless+initialism))
(symbol (styles orderless+initialism))))
from orderless.
Related Issues (20)
- Release new version 0.8 on GNU ELPA HOT 7
- Completion variables recommended configuration HOT 3
- Orderless never returns a sole match for `switch-to-buffer` HOT 2
- Non-greedy match for orderless-flex? HOT 9
- Prescient defines a completion style
- How do I dispatch filtering on a suffix? HOT 3
- Ido or icomplete HOT 2
- Multiple matches, and/or over specifying candidates HOT 2
- I can't get the suggsted configuration for integration with Company to work. HOT 3
- Confusing highlighting when using `orderless-flex` style HOT 3
- Orderless with a single component HOT 3
- possible bug in completion style for repeated pattern HOT 12
- It doesn't seem to affect `C-x b` the same way as, e.g., `M-x` HOT 2
- Add simple affix dispatcher HOT 11
- I've been thinking about using it for Embark and maybe removing the `embark-define-keymap` macro in favor of `defvar-keymap`. HOT 1
- FEATURE REQUEST: Consider making your personal configuration the default (doc does not help get to that solution) HOT 8
- How to disable orderless for company or corfu HOT 8
- Get file basename? HOT 19
- Use company, orderless, company-fuzzy, auctex, and ispell all together. HOT 6
- Orderless doesn't work as desired. 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 orderless.