All Projects → calleluks → pick.vim

calleluks / pick.vim

Licence: MIT license
Functions for using pick from within Vim.

Programming Languages

Vim Script
2826 projects

Projects that are alternatives of or similar to pick.vim

List.js
The perfect library for adding search, sort, filters and flexibility to tables, lists and various HTML elements. Built to be invisible and work on existing HTML.
Stars: ✭ 10,650 (+26525%)
Mutual labels:  fuzzy-search
Enhancd
🚀 A next-generation cd command with your interactive filter
Stars: ✭ 2,049 (+5022.5%)
Mutual labels:  fuzzy-search
Fuzzball.js
Easy to use and powerful fuzzy string matching, port of fuzzywuzzy.
Stars: ✭ 225 (+462.5%)
Mutual labels:  fuzzy-search
Symspell
SymSpell: 1 million times faster spelling correction & fuzzy search through Symmetric Delete spelling correction algorithm
Stars: ✭ 1,976 (+4840%)
Mutual labels:  fuzzy-search
Fuzzyfilepath
Autocomplete relative or absolute file paths in Sublime Text project folder
Stars: ✭ 153 (+282.5%)
Mutual labels:  fuzzy-search
Fuse
🔍 Fuzzy search for PHP based on the Bitap algorithm
Stars: ✭ 189 (+372.5%)
Mutual labels:  fuzzy-search
Elassandra
Elassandra = Elasticsearch + Apache Cassandra
Stars: ✭ 1,610 (+3925%)
Mutual labels:  fuzzy-search
git-smart-checkout
🧠 A command-line utility for switching git branches more easily. Switch branches interactively or use a fuzzy search to find that long-forgotten branch name.
Stars: ✭ 51 (+27.5%)
Mutual labels:  fuzzy-search
Fuzzysearch
Find parts of long text or data, allowing for some changes/typos.
Stars: ✭ 157 (+292.5%)
Mutual labels:  fuzzy-search
Scoper
Fuzzy and semantic search for captioned YouTube videos.
Stars: ✭ 225 (+462.5%)
Mutual labels:  fuzzy-search
Chrome Ff
Fuzzy Finder for Chrome/Chromium tabs and windows
Stars: ✭ 142 (+255%)
Mutual labels:  fuzzy-search
Kube Fzf
Shell commands using kubectl and fzf for command-line fuzzy searching of Kubernetes Pods.
Stars: ✭ 153 (+282.5%)
Mutual labels:  fuzzy-search
Tntsearch
A fully featured full text search engine written in PHP
Stars: ✭ 2,693 (+6632.5%)
Mutual labels:  fuzzy-search
Similar Text Finder
🐝 PHP Similar Text Finder aka Fuzzy search. `Did you mean "banana"?`
Stars: ✭ 126 (+215%)
Mutual labels:  fuzzy-search
levenshtein.c
Levenshtein algorithm in C
Stars: ✭ 77 (+92.5%)
Mutual labels:  fuzzy-search
Vim Ctrlspace
Vim Space Controller
Stars: ✭ 1,621 (+3952.5%)
Mutual labels:  fuzzy-search
Fzy
🔍 A simple, fast fuzzy finder for the terminal
Stars: ✭ 2,295 (+5637.5%)
Mutual labels:  fuzzy-search
sqlscan
Quick SQL Scanner, Dorker, Webshell injector PHP
Stars: ✭ 140 (+250%)
Mutual labels:  fuzzy-search
SSImagePicker
Easy to use and configurable library to Pick an image from the Gallery or Capture an image using a Camera... 📸
Stars: ✭ 227 (+467.5%)
Mutual labels:  pick
Alfred Workflow
Full-featured library for writing Alfred 3 & 4 workflows
Stars: ✭ 2,622 (+6455%)
Mutual labels:  fuzzy-search

pick.vim

Functions for using pick from within Vim.

Please note: pick requires a fully functional terminal to run therefore cannot be run from within gvim or MacVim.

Installation

Recommended installation with Vundle:

Plugin 'calleerlandsson/pick.vim'

Usage

pick.vim provides the following functions:

PickFile()

Pick a file to edit.

If you are working from within a git repository, PickFile() will use git ls-files to get the files to pick from. If not, it will use find.

PickFileSplit()

Pick a file to edit in a new split.

PickFileVerticalSplit()

Pick a file to edit in a new vertical split.

PickFileTab()

Pick a file to edit in a new tab.

PickBuffer()

Pick a buffer to edit.

PickTag()

Pick a tag to jump to, open it with :tag

PickSplitTag()

Pick a tag to jump to, open it with :stag

PickCommand(choice_command, pick_args, vim_command, escapable_output)

Run the choice_command in from the shell and pipe the results to pick run with pick_args and call the vim_command with the selected choice.

For example, you could implement PickFile() like this:

call PickCommand("find * -type f", "", ":edit", 1)

Configuration

Add your preferred key mappings to your .vimrc file:

nnoremap <Leader>p :call PickFile()<CR>
nnoremap <Leader>s :call PickFileSplit()<CR>
nnoremap <Leader>v :call PickFileVerticalSplit()<CR>
nnoremap <Leader>t :call PickFileTab()<CR>
nnoremap <Leader>b :call PickBuffer()<CR>
nnoremap <Leader>] :call PickTag()<CR>

The name of the pick executable can be configured with:

let g:pick_executable = "pick -K"

The -K is useful when running pick(1) from within another interactive program (like vim(1)) which does not re-enable keyboard transmit mode after executing an external program.

The maximum number of lines used when drawing the pick interface can be limited:

let g:pick_height = 10

Copyright

Copyright (c) 2017 Calle Erlandsson, Teo Ljungberg & thoughtbot.

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].