Comments (10)
Of notice is also the fact that Icomplete no longer highlights the matching characters (beside the matching candidate), but we can check that later.
from orderless.
I thought the completion-boundaries
function had my back for this initial input business. I guess not, or rather, not in all cases, because it certainly fixed issue #1.
from orderless.
Of notice is also the fact that Icomplete no longer highlights the matching characters (beside the matching candidate), but we can check that later.
Yes, that's issue #4, kindly submitted by @jixiuf.
from orderless.
When completing-read is given an initial input, such as one that represents a directory path, out-of-order matching will yield no results, unless the user's input starts with a space.
I don't think this is actually true. What I think is going on in your image is that /home/prot/the
is being taken as a single regexp and it doesn't match any candidate. If, instead of the mo
, you had typed G the mo
, for example, it would use regexps /home/prot/G
, the
and mo
, and some candidates do match all three. That would happen even though you started with G
and not with a space.
So, I think it's working as advertised, so maybe this isn't technically a bug. It can be inconvenient, though, and we can try to fix it. Let me think about it a bit.
from orderless.
Maybe a good solution is to have the regexp separator configurable. For completing paths you'd want to split the pattern on whitespace and slashes.
from orderless.
i just realized the separators are already configurable. :) You can wrap your completing-read
call in:
(let ((split-string-default-separators "[/ ]"))
...)
to have both slashes and spaces separate the regexps.
from orderless.
You are right, this is not a faulty behaviour per se. Just a matter of easing the user experience.
With regard to split-string-default-separators
, it does indeed work. Could this be exposed as a user-facing option for when orderless is being used?
from orderless.
I was first inclined to just document the usage split-string-default-separators
, but I decided to add a variable orderless-regexp-separator
, mostly because I think people might want to change its value for their entire Emacs session, and it seems like a terrible idea to fiddle with split-string-default-separators
(as it affects every call to split-string
which does not specify a separator).
Does adding that option adequately address this issue?
from orderless.
Yes, I can confirm this works!
from orderless.
Excellent, I'll close this issue then.
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.