Comments (8)
Sure I'll look into it. I think probably just after every change to the minibuffer contents, we should test-completion
, and if it is a full candidate, update the preview. I'll test that and make a pull request if it seems good enough.
from consult.
Thanks! You beat me to it. I just tested it and works great, including the tricky case of tab cycling which the previous approach wouldn't work for.
from consult.
Yeah. If you have time to clean that up please do. This is a mess. I advise three functions but I have no idea what I am actually doing.
from consult.
How would you feel about lumping in embark-completing-read
with the default completion? You can just change (eq completing-read-function #'completing-read-default)
to (memq completing-read-function '(completing-read-default embark-completing-read))
.
from consult.
@oantolin I guess that would be okay. Btw do you know if there is a better way to distinguish icomplete from default? Icomplete does not overwrite the function.
from consult.
@oantolin I guess that would be okay. Btw do you know if there is a better way to distinguish icomplete from default? Icomplete does not overwrite the function.
No, I don't know of a better way. I would have done it the same way you did.
from consult.
See here 00c820d. I would like if we could find a better way to do this detection, but for now it is okay.
from consult.
Perfect, thanks! It would be nice to have a cleaner way of detecting the various completion systems, but this isn't too bad.
from consult.
Related Issues (20)
- chain consult-find and consult-ripgrep
- Always prompt for directory when starting consult-ripgrep HOT 2
- get-text-property: Args out of range: 0, 0 HOT 1
- [(char-or-string-p nil)] when calling consult--file-preview on certain directories HOT 2
- enhancement request : show all consult-line matches in the buffer
- Can't remove tofus automatically when quit emacs with savehist on
- Error when switching buffer with `consult-ripgrep`
- Order consult-lines candidates by line HOT 1
- Idea: Align the indent size of line number of `consult-ripgrep`?
- `consult--jump-ensure-buffer` does not take partial previews into account
- I can't get consult-ripgrep to show only matching files, as with the "-l" command line option
- consult-line warning in non-org-mode buffer HOT 1
- consult-buffer does not show default candidate in minibuffer HOT 2
- Builing an easy consult-bbdb
- consult--global-mark-candidates only stores the location in places that are stripped HOT 6
- Consult-buffer "not "remembers" open buffers from previous sessions. HOT 1
- Sometimes `consult-line` throws a "Regular expression too big" error HOT 1
- Does consult-fd support directory abbreviation?
- consult hangs with find-file at emacs startup
- Pre-select nearest heading arguments
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 consult.