Comments (18)
@glepnir if ok, let me know if was intended to design like that, then let it be..
from vim.
and @chrisbra what do you think?
i supposed this two hl groups fit for genenral compl, not regarding to fuzzy or something as seems you said somewhere.
from vim.
emm a simple reprodcue script will be useful .
from vim.
and @chrisbra what do you think?
i supposed this two hl groups fit for any compl, and not regarding to fuzzy or something, as seems you said somewhere.
from vim.
diff --git a/src/insexpand.c b/src/insexpand.c
index 28e4d344e..c673df927 100644
--- a/src/insexpand.c
+++ b/src/insexpand.c
@@ -1448,7 +1448,7 @@ ins_compl_show_pum(void)
char_u *
ins_compl_leader(void)
{
- return compl_leader;
+ return compl_leader != NULL ? compl_leader : compl_orig_text;
}
/*
could you try this patch.
from vim.
and @chrisbra what do you think?
i supposed this two hl groups fit for any compl, and not regarding to fuzzy or something, as seems you said somewhere.
from vim.
you publish duplicate comments.
from vim.
you publish duplicate comments.
yea~ sry, we are living in the great cn, sry for the wonderful network~ 😅
from vim.
could you try this patch.
yes, the item 2 seems worked after this patch
// item 1 remained.
from vim.
It may be necessary to store the start and the end of the matched position when using non-fuzzy completion, so that highlighting of matched text works when using 'ignorecase', but I'm not entirely sure about that. That'll also be required to highlight matched text for cmdline non-fuzzy completion, as in cmdline completion the pattern can contain wildcards.
Speaking of that, should matched text be highlighted for cmdline completion as well?
from vim.
okay good to know. I am still finding a way to reproduce the peoblem 1.. could you provide more information about problem 1
from vim.
i have not tried to use fuzzy
of completeopt yet, but generally fuzzy should be same like the case ignored.
// it is not the caseignore
, but the icase of compl items attribute.
from vim.
ins_compl_bs then invoke ins_compl_free it free leader like currently leader is cl
both freed. so when bs a leader the ins_compl_leader get a null pointer then nothing highlighted. but the compl_orig_text
keep the original value.
from vim.
i have not tried to use
fuzzy
of completeopt yet, but generally fuzzy should be same like the case ignored. // it is not thecaseignore
, but the icase of compl items attribute.
you mean the problem 1 is run with the completeopt no fuzzy right ?
from vim.
no, it is not regarding to fuzzy of completeopt option, or to fuzzy
as common sense usually its case was not matter.
icase is a complete_item attribute.
// not sure pum in cmdline, it maybe no icase attribute.
from vim.
reproduced.
from vim.
Speaking of that, should matched text be highlighted for cmdline completion as well?
should be :)
from vim.
Speaking of that, should matched text be highlighted for cmdline completion as well?
i donot know, i am not a fan of pum in cli, i usually like its behavior as in bash cli.
// but as i know @yegappan impl it as different way like insert-compl, it should be some different?
from vim.
Related Issues (20)
- :Termdebug returns E1012: Type mismatch (expected string got list<string>) if g:termdebugger set HOT 8
- vim.vim: Outermost _foreign_ comments after :endfun _or_ :endef are not recognised HOT 1
- The execution result of enum variable in `==` is incorrect in vim9script HOT 6
- cursormovedc didnot work when c-w or c-u HOT 13
- let g:netrw_liststyle = 2 clobbers registers HOT 8
- Built in full vim syntax support for Podman Quadlet unit files
- [vim9class] `echo obj` puts vim into infinite loop requiring force kill
- [vim9class] incorrect type checking modifying list in class from outside class
- The `ps` output is truncated in the terminal HOT 4
- xxd.exe is detected by an awful lot of virus scanners HOT 5
- Fuzzy completion does not allow cycle back to original, wrong highlight, and Ctrl-P Ctrl-N issues HOT 1
- Add `get({func}, 'arity')` to determine the number of expected arguments to a funcref
- Termdebug: use conpty with Windows. HOT 3
- mousemodel=popup not working properly with many items on PopUp menu
- manpager.vim emits a "Changing a readonly file" error/warning
- foldexpr '<1' results in a level-3 fold HOT 2
- Clarification on expected behavior of <S-CR>
- A correction to the docs
- Clipboard and primary selection registers not working despite +clipboard HOT 7
- incsearch option to highlight matches without moving the cursor HOT 4
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 vim.