kyoh86 / vim-ripgrep Goto Github PK
View Code? Open in Web Editor NEWA plugin for Vim8/Neovim to search text by ripgrep (rg) asynchronously
License: MIT License
A plugin for Vim8/Neovim to search text by ripgrep (rg) asynchronously
License: MIT License
:call ripgrep#search('-w -i foo')
caused error in Vim.
(it works well in Neovim)
setting file:
set nocompatible
packadd vim-jetpack
call jetpack#begin()
call jetpack#add('tani/vim-jetpack', {'opt': 1})
call jetpack#add('kyoh86/vim-ripgrep')
call jetpack#end()
error:
function ripgrep#search[12]..ripgrep#call[3]..ripgrep#job#start[1]..<SNR>36_job_start の処理中にエラーが検出されました:
行 77:
E475: 無効な引数です: stdin
続けるにはENTERを押すかコマンドを入力してください
Vim version:
VIM - Vi IMproved 9.0 (2022 Jun 28, compiled Oct 19 2022 18:24:48)
macOS 版 - arm64
適用済パッチ: 1-800
Compiled by Homebrew
Huge 版 without GUI
ripgrep#observe#add_observer()
doesn't add an observer if the first observer for the same event has already been added.
Reproduction steps are as below in Vim 9.1(patches: 1-163).
function! Observer1(_) abort
call setqflist([{ 'text': 'Observer1' }], 'a')
endfunction
function! Observer2(_) abort
call setqflist([{ 'text': 'Observer2' }], 'a')
endfunction
call ripgrep#observe#add_observer('match', 'Observer1')
call ripgrep#observe#add_observer('match', 'Observer2')
call ripgrep#search('ripgrep')
copen
" Only "Observer1" are listed in the quickfix window.
ref: thinca/vim-themis
If the issue prabirshrestha/async.vim#48 is resolved
Like this: https://github.com/jremmen/vim-ripgrep . There is a g:rg_highlight
option.
So I have to input :call ripgrep#search('-w --ignore-case foo')
to search foo
? I really do not know how to use it. Could you give me an example?
call()
function can use funcref
as arguments. Could you add document about funcref
?
By the way, ripgrep#__register_match()
can be made local function because of this.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.