Giter Club home page Giter Club logo

Comments (16)

gu-fan avatar gu-fan commented on August 28, 2024

did the swatch change it's color when you click on palette?
did yy in the colov window copy 'xxxxxx'?

from colorv.vim.

gu-fan avatar gu-fan commented on August 28, 2024

and , do you have python support with vim

from colorv.vim.

silouanwright avatar silouanwright commented on August 28, 2024

No I can't get anything to happen in that window... it shows up properly, everything looks fine but clicking / yanking does nothing. None of the keys listed do anything.

+python -python3

from colorv.vim.

gu-fan avatar gu-fan commented on August 28, 2024

does :map yy show something like '@:call<SNR>_28_copy()<CR>'

from colorv.vim.

silouanwright avatar silouanwright commented on August 28, 2024

@:call <SNR>32_copy()<CR>

from colorv.vim.

gu-fan avatar gu-fan commented on August 28, 2024

well. then it should be working all right..

Does :function <SNR>32_copy show it's content.

Can commands like :ColorVName working?

I have no Mac currently and can not test through it.

from colorv.vim.

silouanwright avatar silouanwright commented on August 28, 2024

The output of :function <SNR>32_copy:

function <SNR>32_copy(...)
    let fmt = a:0 ? a:1 : "HEX"
    let l:cliptext=s:hex2txt(g:colorv.HEX,fmt)

    if  a:0>1 && a:2=="\""
        call s:echo("Copied to Clipboard(reg\"):".l:cliptext)
        let @" = l:cliptext
    elseif a:0>1 && a:2=="+"
        call s:echo("Copied to Clipboard(reg+):".l:cliptext)
        let @+ = l:cliptext
    else
        call s:echo("Copied to Clipboard(reg\"):".l:cliptext)
        let @" = l:cliptext
    endif
endfunction   

Yes :ColorVName works fine... I get the list of colors along with hex values which have the background of the actual color.

So you haven't tested this on Mac at all..... but it "should be working all right"?

from colorv.vim.

gu-fan avatar gu-fan commented on August 28, 2024

... I had tested it on a Mac OS with a virtual Machine and works fine. But that disk was formatted now.

Does the window show colored palette and swatches?

If does.
put cursor on palette and use :call <SNR>32_set_in_pos()
if does not
put cursor in the window and use :call <SNR>32_draw_win('ff0000')

tell me if it works or not.

also set g:colorv_has_python to 0 to disable python to see if it works fine.

from colorv.vim.

silouanwright avatar silouanwright commented on August 28, 2024

Doing :ColorVEdit on a color, going to a swatch in the pallete and doing :call <SNR>32_set_in_pos() actually switches the color in the palette it seems...as well as the other command... it however does not switch the color in my main window (the color I executed the original command on).

Doing let g:colorv_has_python = 0 in my vimrc causes colors to lose their highlighting, and executing :ColorVEdit on them renders

[ColorV] no color-text under cursor.

from colorv.vim.

gu-fan avatar gu-fan commented on August 28, 2024

Well. :ColorVEdit will changes the color after you close the colorv window.

If it does. It's the mappings does not activated correctly in colorv window with some weird issues.
And you can try remap them with :call <SNR>32_set_map() in colorv window to see if this works.

from colorv.vim.

silouanwright avatar silouanwright commented on August 28, 2024

No it doesn't. Even though the color appears to be swapped, closing the window does nothing (even if I do :call <SNR>32_set_in_pos())

from colorv.vim.

gu-fan avatar gu-fan commented on August 28, 2024

So the colors are showing in ColorV window, but nothing changed after you close it?

from colorv.vim.

silouanwright avatar silouanwright commented on August 28, 2024

Yeah the palette and everything shows... nothing changes after I close it, and I need to do that command to get the little asterisk to go to another color.

from colorv.vim.

gu-fan avatar gu-fan commented on August 28, 2024

well , I will try rewrite the call back function in next patch to see if it can be fixed.

from colorv.vim.

sashahart avatar sashahart commented on August 28, 2024

After some confusion about how to use ColorV, I found a workaround that works for me: I start with cursor over color, then I type :ColorVEdit or \ce. Now the window is up. I use space to select a new color. Then, I can hit Q or \cq to close the ColorV window, which updates the color in the document.

The color highlight doesn't update immediately for me (ref issue #13) but it's the right RGB code.

from colorv.vim.

gu-fan avatar gu-fan commented on August 28, 2024

that's ok. #13 is fixed

from colorv.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.