Skip to content

Comments

WIP: first try of new UI#265

Closed
EpsilonKu wants to merge 15 commits intomasterfrom
newUI
Closed

WIP: first try of new UI#265
EpsilonKu wants to merge 15 commits intomasterfrom
newUI

Conversation

@EpsilonKu
Copy link
Member

@EpsilonKu EpsilonKu commented Apr 28, 2025

Status: Don't even try, it's under heavy WIP. Feel free for any idea or suggestions.

Today I wake up and decided to make some experiments. I'm rewriting spectre with new UI. I'm using nui -components

Forgive me guys, for not being active here. I hope it's not too late and I hope we have active users of spectre.

Screenshot 2025-04-28 at 21 10 34

@EpsilonKu
Copy link
Member Author

EpsilonKu commented Apr 29, 2025

Screenshot 2025-04-29 at 10 30 28 Draft is ready. Now it's time for some TODO's

@windwp
Copy link
Collaborator

windwp commented May 5, 2025

Hi, thanks for your work!
I’ve already tested this PR, but it breaks the setup function in my config . possibly due to the changes in state.user_config in lua/spectre/state.lua.

I really like the new UI. It provides a better way to preview the current file. However, it now depends on two additional plugins. Maybe we can call to the new UI as "floating" and the old one call "buffer" not plenary.

Regarding the future of this plugin, I still use it daily and will keep maintain it.
My big mistake on this plugin is making sed the default replace engine. While we do have the Rust-based engine with Oxi, requiring users to install Rust just to use the plugin isn’t very convenient.

I'm also looking forward to Neovim 0.12, which will bring a new remote plugin host maybe this might allow me to implement another engine based on Python

Cheers

@EpsilonKu
Copy link
Member Author

EpsilonKu commented May 5, 2025

Hi, my master🤣.

  1. Yeah, I will work on stability starting from now.
  2. Sure, I will rename it to float and buffer.
  3. So better leave sed as the default one? I thought about ripgrep because grug-far.nvim uses it.

@EpsilonKu
Copy link
Member Author

@windwp can you share ur config?

@EpsilonKu
Copy link
Member Author

ChatGPT Image May 6, 2025, 10_53_26 AM

Emm... I generated logo

@EpsilonKu
Copy link
Member Author

EpsilonKu commented May 6, 2025

I'm closing this for to take 2. Code is mess now. But luckily take 2 will be faster to make

@EpsilonKu EpsilonKu closed this May 6, 2025
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

Successfully merging this pull request may close these issues.

2 participants