Coder Social home page Coder Social logo

Comments (18)

Shane-XB-Qian avatar Shane-XB-Qian commented on July 4, 2024

@glepnir if ok, let me know if was intended to design like that, then let it be..

from vim.

Shane-XB-Qian avatar Shane-XB-Qian commented on July 4, 2024

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.

glepnir avatar glepnir commented on July 4, 2024

emm a simple reprodcue script will be useful .

from vim.

Shane-XB-Qian avatar Shane-XB-Qian commented on July 4, 2024

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.

glepnir avatar glepnir commented on July 4, 2024
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.

Shane-XB-Qian avatar Shane-XB-Qian commented on July 4, 2024

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.

glepnir avatar glepnir commented on July 4, 2024

you publish duplicate comments.

from vim.

Shane-XB-Qian avatar Shane-XB-Qian commented on July 4, 2024

you publish duplicate comments.

yea~ sry, we are living in the great cn, sry for the wonderful network~ 😅

from vim.

Shane-XB-Qian avatar Shane-XB-Qian commented on July 4, 2024

could you try this patch.

yes, the item 2 seems worked after this patch
// item 1 remained.

from vim.

zeertzjq avatar zeertzjq commented on July 4, 2024

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.

glepnir avatar glepnir commented on July 4, 2024

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.

Shane-XB-Qian avatar Shane-XB-Qian commented on July 4, 2024

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.

glepnir avatar glepnir commented on July 4, 2024

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.

glepnir avatar glepnir commented on July 4, 2024

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.

you mean the problem 1 is run with the completeopt no fuzzy right ?

from vim.

Shane-XB-Qian avatar Shane-XB-Qian commented on July 4, 2024

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.

glepnir avatar glepnir commented on July 4, 2024

reproduced.

from vim.

glepnir avatar glepnir commented on July 4, 2024

Speaking of that, should matched text be highlighted for cmdline completion as well?

should be :)

from vim.

Shane-XB-Qian avatar Shane-XB-Qian commented on July 4, 2024

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)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.