What is the best way to get two or more text inputs in a window? #1957
rootschafer
started this conversation in
Ideas
Replies: 1 comment 1 reply
-
No, multiple inputs aren't supported. In your case, I would simply use the
|
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
I've been pretty disappointed with the neovim tools for multi-file search and replace. Spectre.nvim is decent, but the UI could be improved. So tonight I decided to try to try build my own find-and-replace tool/ui that functions similarly to Spectre.nvim, but uses snacks for the UI. I think it could be a really useful tool for a lot of people. I dove into the snacks code and was able to get a window with two text inputs displaying, although the second text input doesn't work yet.
My fork (https://github.com/rootschafer/snacks.nvim) is messy, but you should be able to test it out without breaking your existing snacks stuff. All the dual_picker logic is, for now, inside a new directory
lua/snacks/dual_picker
(started as a copy of thelua/snacks/picker
dir). You can try out the window from the screenshot below by callingSnacks.dual_picker.far()
.I'd love to know if snacks.nvim has support for more than one text input boxes in some way that I missed, if not, is this something snacks would like to support in the future? What do you think that looks like ideally? Would it be a new picker that's separate from the existing one or could the functionality be built into the exiting picker without breaking changes?
Would a find and replace tool that feels similar to
Snacks.picker.grep
be something you'd want to use?Beta Was this translation helpful? Give feedback.
All reactions