1.1.2 • Published 3 years ago

coc-github-users v1.1.2

Weekly downloads
9
License
MIT
Repository
github
Last release
3 years ago

coc-github-users

An extension for coc.nvim that provides completions for GitHub usernames.

This is useful when writing git commit messages or when using hub pull-request to create a PR.

Allows you to search for users either by their username or real name.

Example

Installation

  1. Add the extension to coc.nvim:

    :CocInstall coc-github-users
  2. Create a GitHub personal access token so the extension can access the GitHub API.

    1. Go to the GitHub tokens page
    2. Click the Generate new token button
    3. Give the token a sensible name, e.g. coc-github-users
    4. The token doesn't need any scopes
    5. Click Generate token at the bottom of the page
  3. Either export the token as environment variable COC_GITHUB_USERS_TOKEN, or add it to your coc.nvim config (:CocConfig) with key coc.githubUsers.githubAccessToken.

How to use

Typing @ followed by 2 or more characters will trigger the extension. For example, if you type @cb3, you will get a list of autocomplete items for usernames starting with @cb3, including my username @cb372.

For users who have added their real name to their GitHub profile, you will see both their username and real name in the autocomplete item label.

You can search by real name by separating the names with underscores. For example, if you type @chris_birchall you will also get you an autocomplete list containing my username @cb372.

Github Enterprise support

If you have an internal GitHub enterprise installation at work, you can configure it like so:

{
  "coc.githubUsers.graphqlApiUrl": "http://your.internal.github.company.com/api/graphql",
  "coc.githubUsers.unixSocket": "/optional/path/to/unix.sock"
}

The unixSocket is optional, but useful if your company proxies all internal traffic through a local socket.

If you prefer ENV variables, you can configure:

  • COC_GITHUB_USERS_GRAPHQL_API_URL
  • COC_GITHUB_USERS_UNIX_SOCKET

in your shell environment instead.

1.1.2

3 years ago

1.1.1

4 years ago

1.1.0

4 years ago

1.0.0

4 years ago

0.0.12

4 years ago

0.0.13

4 years ago

0.0.14

4 years ago

0.0.15

4 years ago

0.0.16

4 years ago

0.0.17

4 years ago

0.0.18

4 years ago

0.0.11

4 years ago

0.0.10

4 years ago

0.0.9

4 years ago

0.0.8

4 years ago

0.0.7

4 years ago

0.0.6

4 years ago

0.0.5

4 years ago

0.0.4

4 years ago

0.0.3

4 years ago

0.0.2

4 years ago

0.0.1

4 years ago