Coder Social home page Coder Social logo

zfvimim_openapi's Introduction

db source for ZSaberLv0/ZFVimIM, using thirdparty's openapi

Requirement

  • ZSaberLv0/ZFVimIM, of course
  • ZSaberLv0/ZFVimJob, and ZFJobAvailable() must return 1
  • wget or curl

How to use

Plug 'ZSaberLv0/ZFVimIM'
Plug 'ZSaberLv0/ZFVimJob' " ZFVimJob is required for this db repo
Plug 'ZSaberLv0/ZFVimIM_openapi'

once installed, input freely and see the changes

Configs

  • let g:ZFVimIM_openapi_enable=1 : once installed, wget or curl would be invoked each time you input something, if you want to disable it temporarily, you may change this option
  • let g:ZFVimIM_openapi_word_type='sentence' : within the IME popup, where to place the result, see also ZFVimIM_complete()
    • sentence : (default) placed at first of sentence type, which result to top of everything
    • predict : placed at first of predict type
    • match : placed accorrding to g:ZFVimIM_crossDbPos

How it works

if you are interested on how to implement async mode of ZFVimIM's db, here's a workflow of it

user input
    => ZFVimIM_complete()
        => start curl job
        => directly return empty result
    ...
    => curl job returned
        => save as cache
        => ZFVimIME_keymap_update_i() to re-trigger IME popup
        => ZFVimIM_complete()
            => matched from cache, return result

zfvimim_openapi's People

Contributors

zsaberlv0 avatar

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.