Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ColorPicker does not get document's colors and doesn't Saving New Colors in Documents #12

Open
emirmorris opened this issue Oct 27, 2024 · 9 comments

Comments

@emirmorris
Copy link

emirmorris commented Oct 27, 2024

I’ve recently updaded to NVChad 3.0 and wanna use Minty plugin. I've configured and add mapping for huefy as . But it doesn't work properly. While I place my cursor over a six-character color code the huefy-popup opens correctly but :

  1. The Old Color in the Color Picker window defaults to blue instead of showing my currently color in the document where my cursor is located (white).
  2. When I select a New Color in the Color Picker, this color doesn’t replace the color code in the document, nor does it save as expected.

Here are the details of my setup and steps to reproduce:

Steps to Reproduce:

  1. Open a document with a six-character hex color code (e.g., #FFFFFF).
  2. Place the cursor on the color code.
  3. Press CTRL-T to open the Color Picker.
  4. Observe that the Old Color does not match the document color and defaults to blue.
  5. Select a new color in the Color Picker and attempt to save it.
  6. Notice that the new color is not updated back into the document.

Expected Behavior:

  • The Old Color in the Color Picker should match the color code currently in the document where the cursor is located.
  • After selecting a New Color in the Color Picker and saving it, the color code in the document should update to the new color.

P.S: With "Shades" it doesn't work either.

Please let me know if there is any additional information or debugging steps I can provide. Thank you!

@siduck
Copy link
Collaborator

siduck commented Oct 28, 2024

simplescreenrecorder-2024-10-28_06.42.47.mp4

unable to reproduce, provide a video

@siduck siduck closed this as completed Oct 28, 2024
@emirmorris
Copy link
Author

Yes.

huefy.mp4

Settings are default:

  {
    "nvchad/volt",
    lazy = true,
  },

  {
    "nvchad/minty",
    cmd = { "Shades", "Huefy" },
  },

@siduck siduck reopened this Oct 28, 2024
@siduck
Copy link
Collaborator

siduck commented Oct 28, 2024

weird, still unable to reproduce, is your cursor position shifted 🤔

@emirmorris
Copy link
Author

emirmorris commented Oct 28, 2024

weird, still unable to reproduce, is your cursor position shifted 🤔

Nope. I click on that text - #FFFFFF.

@siduck
Copy link
Collaborator

siduck commented Oct 28, 2024

have u done lazy sync

@emirmorris
Copy link
Author

have u done lazy sync

Yes

@siduck
Copy link
Collaborator

siduck commented Oct 28, 2024

can you try this on vanilla nvchad? idk why i feel like some plugin's shifting the cursor pos 🤔

@emirmorris
Copy link
Author

I don't know what is vanilla nvchad

@siduck
Copy link
Collaborator

siduck commented Oct 29, 2024

just nvchad, without any plugins. Only you're facing this issue, cant reproduce it so I'm unable to help.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants