Code Monkey home page Code Monkey logo

Comments (19)

languitar avatar languitar commented on July 22, 2024 9

Thanks, interesting. I ended up with this after talking to @Shougo:

call denite#custom#option('_', 'highlight_mode_insert', 'CursorLine')
call denite#custom#option('_', 'highlight_matched_range', 'None')
call denite#custom#option('_', 'highlight_matched_char', 'None')

from denite.nvim.

cartolari avatar cartolari commented on July 22, 2024

I'd like to add that it appears that Denite highlights the entire match from the first matched char to the last, instead of just highlighting the individual chars that caused the match to occur.
For example, today if i searched for dte and an option called denite was available denite will highlight the entire word (like this denite) but it would be better if the only highlighted chars were d, t ande (like this denite).
Is there a way to highlight just the chars instead of the whole substring?

from denite.nvim.

Shougo avatar Shougo commented on July 22, 2024

Is there a way to highlight just the chars instead of the whole substring?

Nothing.

from denite.nvim.

Shougo avatar Shougo commented on July 22, 2024

I want to upgrade Denite to the master branch but I'm uncomfortable with glaring highlight on the matched file names. Is there any way to disable this highlight on file_rec matches? Thanks.

Please change deniteMatched highlight.

And I think highlight on the matched file names with file_rec should be disabled by default.

I don't think so. It is just your opinion.

from denite.nvim.

musaffa avatar musaffa commented on July 22, 2024

@Shougo How do I change deniteMatched? It would be nice if you add some documentation about it. Some scenarios on the top of my head:

  1. completely disable the highlight,
  2. change it to color of cursorline,
  3. any color.

Thanks.

from denite.nvim.

Shougo avatar Shougo commented on July 22, 2024

:help highlight

from denite.nvim.

musaffa avatar musaffa commented on July 22, 2024

Not the highlight of the whole application, I want to change only deniteMatched. Currently, there's no documentation about deniteMatched.

from denite.nvim.

Shougo avatar Shougo commented on July 22, 2024

Have you read the documentation properly?

:hi[ghlight] [default] {group-name} {key}={arg} ..
			Add a highlight group, or change the highlighting for
			an existing group.
			See |highlight-args| for the {key}={arg} arguments.
			See |:highlight-default| for the optional [default]
			argument.

from denite.nvim.

musaffa avatar musaffa commented on July 22, 2024

Is deniteMatched a group name?

from denite.nvim.

Shougo avatar Shougo commented on July 22, 2024

Yes.

from denite.nvim.

musaffa avatar musaffa commented on July 22, 2024

Thanks.

from denite.nvim.

cartolari avatar cartolari commented on July 22, 2024

@Shougo Regarding the chars highlighting, are there plans to implement it in Denite?

from denite.nvim.

Shougo avatar Shougo commented on July 22, 2024

@Shougo Regarding the chars highlighting, are there plans to implement it in Denite?

If possilble. But it is not easy.

from denite.nvim.

cartolari avatar cartolari commented on July 22, 2024

What is the main difficulty, computing the match or making vim highlight it correctly?

from denite.nvim.

Shougo avatar Shougo commented on July 22, 2024

I have improved the default highlight.

from denite.nvim.

cartolari avatar cartolari commented on July 22, 2024

It's not perfect but it's a lot better. Thanks.

from denite.nvim.

languitar avatar languitar commented on July 22, 2024

I don't get it. How do I completely disable the highlighting?

from denite.nvim.

musaffa avatar musaffa commented on July 22, 2024

@languitar Here's my current setup:

highlight default link deniteMatchedChar CursorLine
highlight default link deniteMatchedRange None

To completely disable highlighting you have to set deniteMatchedChar to None as well.

from denite.nvim.

Shougo avatar Shougo commented on July 22, 2024

Using denite#custom#option() is better.

from denite.nvim.

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.