prabirshrestha / asyncomplete-buffer.vim Goto Github PK
View Code? Open in Web Editor NEWprovides buffer autocomplete for asyncomplete.vim
provides buffer autocomplete for asyncomplete.vim
Keywords are only refreshed on BufWinEnter
; does not obey the value of events
in options:
Because extend()
puts the user options first, they are overwritten by the defaults. a:opts
should be the second argument, not the first.
asyncomplete-buffer.vim/autoload/asyncomplete/sources/buffer.vim
Lines 31 to 34 in 68fdc6e
Vim's built-in :help i_CTRL-N
suggests word completions from buffers, including the terminal buffer.
This allows users to run any shell commands in a vim terminal (e.g. :term {command}
) and use the output as completion suggestions.
Consider the following examples:
:term cargo check
/:term cargo clippy
or :term go doc {pkg}
:term ddgr
or :term googler
(combined with BROWSER=$(which w3m || which lynx)
allows you to search DuckDuckGo or Google respectively and open search results in terminal browsers in vim terminal buffers and get word completion in other buffers in vim. Here is a quick gif demo of this workflow:Is it possible to provide word completion from terminal buffers with asyncomplete-buffer.vim
?
refresh_keywords appears to get called heavily when the cursor moves. This seems a bit of an overkill - and really hurts when viewing larger files. I know there's a max file size - but I'd still like to be able to use the buffer in these larger files without hurting movement.
Perhaps the task for compiling these results could be done asynchronously? Or at least is there a way to disable it on cursor move - when there surely are no new updates?
This plugin kill my vim, updatetime=4000
, not responding, tons of [buffer]
entries as candidates.
Because this plugin is only triggered on word characters (let l:kw = matchstr(l:typed, '\w\+$')
), if a string is entered that contains hyphens, for instance, tags aren't searched.
Would it be possible to re-implement g:asyncomplete_default_refresh_pattern
and use that?
Otherwise, I'm finding that this works much better:
let l:kw = matchstr(l:typed, '[[:alnum:]_-]\+$')
This issue lists Renovate updates and detected dependencies. Read the Dependency Dashboard docs to learn more.
This repository currently has no open or pending branches.
None detected
The latest commit (b88179d
) introduced a regression.
To reproduce, create a file with the following contents:
hello
h
Then on the last line type e
. The word hello
is not proposed.
However if you do the same at commit b8f00ea
it works as expected.
Right now the text in the buffer is split with the \W
character, which includes hyphens; I'd like to be able to configure it so that it splits by other characters, like [^[:alnum:]_-
for instance.
It could be really usefull
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.