Coder Social home page Coder Social logo

asyncomplete-buffer.vim's People

Contributors

itchyny avatar jsit avatar prabirshrestha avatar renovate[bot] avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar

asyncomplete-buffer.vim's Issues

Delayed suggestions & unwanted suggestions

Suggestions only appear after 4 seconds. Deleted keyword are still shown as suggestions.
b

If I change updatetime to 1, keywords are shown immediately but suggestions are created for every typed letter.
bb

Terminal Buffers

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:
    demo

Is it possible to provide word completion from terminal buffers with asyncomplete-buffer.vim?

refresh_keywords question

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?

Only searches when entered text contains word characters

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:]_-]\+$')

Dependency Dashboard

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.

Detected dependencies

None detected


  • Check this box to trigger a request for Renovate to run again on this repository

Regression with commit 'b88179d'

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.

Allow custom string for splitting text in buffer

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.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.