5

GitHub - iquiw/company-restclient: Company-mode completion back-end for restclie...

 2 years ago
source link: https://github.com/iquiw/company-restclient
Go to the source link to view the article. You can view the picture content, updated content and better typesetting reading experience. If the link is broken, please click the button below to view the snapshot at that time.

company-restclient

Company-mode completion back-end for restclient-mode.

It provides auto-completion for HTTP methods and headers in restclient-mode. Completion source is given by know-your-http-well.

Installation

Depends

Setup from MELPA

  1. Install from MELPA:

    M-x package-install RET company-restclient RET
    
  2. Add company-restclient to company-backends after loading company-mode.

    (add-to-list 'company-backends 'company-restclient)

Setup from Git

  1. Install from Git:

    git clone https://github.com/iquiw/company-restclient.git
    
  2. Add company-restclient to company-backends after loading company-mode.

    (add-to-list 'load-path "/path/to/company-restclient")
    (add-to-list 'company-backends 'company-restclient)

Feature

  • HTTP method name completion

  • HTTP header name completion

    If header name starts with uppercase character, the completion result is capitalized (e.g. "Content-Type"). Otherwise, the completion result contains lowercase characters only (e.g. "content-type").

  • HTTP header value completion

    If header name matches with key of a cutomizable association list, company-restclient-header-values, the corresponding value, list of strings, is used for completion candidates.

  • Description about HTTP method and header is displayed in minibuffer

  • Variable name completion

License

Public domain


About Joyk


Aggregate valuable and interesting links.
Joyk means Joy of geeK