All Projects → prabirshrestha → quickpick.vim

prabirshrestha / quickpick.vim

Licence: MIT license
experimental quick picker for vim

Programming Languages

Vim Script
2826 projects

quickpick.vim

A UI for Vim to let the user pick an item from a list similar to CtrlP.

NPM Picker

Colorscheme Picker

Pickers

quickpick.vim deliberately does not contain any sources as this allows the core to be very small and focus on providing the best and fast apis for other to use it.

in alphabetical order

Source Links
Colorschemes quickpick-colorschemes.vim
Filetypes quickpick-filetypes.vim
LSP quickpick-lsp.vim
NPM quickpick-npm.vim

Can't find what you are looking for? Write one instead an send a PR to be included here or search github topics tagged with quickpickvim at https://github.com/topics/quickpickvim.

Embedding

:QuickpickEmbed path=./autoload/myplugin/quickpick.vim namespace=myplugin#quickpick prefix=myplugin-quickfix

This can then be referenced using myplugin#quickpick#open()

Roadmap

It is very much work in progress so features are currently limited. The goal is the provide the best apis and be the ultimiate picker UI for me that works on both vim8 and neovim and is very fast, non-blocking and allows me to replace CtrlP, vim-fz and fzf. Refer to #1 for more details.

Why?

A picker should be able to scale from just a few list items (colorscheme, filetypes) to hundreds (files) and thousands (npm packages) of items. We shouldn't be needing multiple UI plugins to handle this case. In order to be fast we need to do minimal work in the UI thread hence it doesn't support any sort of fuzzy search or even a simple string contains search. So, how can an end user using quickpick be productive? Well, how do you search the internet? Do you run a fuzzzy search after google returns a result? NO. You let google do the search and then the browser displays html text. If you don't see it in the first few results you change the query just by typing more characters and let google do its job again. We do the same in quickpick. Let the pickers do the heavy lifting of searching however they want. If the picker wants to using neovim remote plugins or vim job to start a new process, let it do. If your vim has python support pickers might even want to inline python code and use multi-threading without proess overhead, let it do. And if it still doesn't have those capabilities let it fallback to defsult vim script implementation. quickpick.vim is just the UI layer. It is up to the different pickers to implement their own algorithm or tricks to make it fast. Let the battle for the best picker sources begin.

[WIP] In the meantime feel free to read some of my thoughts at vim/vim#3573 (comment) and make sure to give a thumbs up if you would like to official see vim support some kind of apis for picking item for a list.

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].