{"id":23209281,"url":"https://github.com/4513echo/ddc-github","last_synced_at":"2025-08-19T04:32:19.438Z","repository":{"id":41875612,"uuid":"484935811","full_name":"4513ECHO/ddc-github","owner":"4513ECHO","description":":octocat: GitHub completion for ddc.vim via gh","archived":false,"fork":false,"pushed_at":"2023-05-16T07:48:38.000Z","size":7,"stargazers_count":11,"open_issues_count":1,"forks_count":2,"subscribers_count":1,"default_branch":"main","last_synced_at":"2024-04-22T05:10:05.428Z","etag":null,"topics":["ddc-source","ddc-vim"],"latest_commit_sha":null,"homepage":"","language":"TypeScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/4513ECHO.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2022-04-24T05:40:38.000Z","updated_at":"2024-04-22T05:10:05.429Z","dependencies_parsed_at":"2022-08-11T20:00:35.705Z","dependency_job_id":null,"html_url":"https://github.com/4513ECHO/ddc-github","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/4513ECHO%2Fddc-github","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/4513ECHO%2Fddc-github/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/4513ECHO%2Fddc-github/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/4513ECHO%2Fddc-github/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/4513ECHO","download_url":"https://codeload.github.com/4513ECHO/ddc-github/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":230318623,"owners_count":18207812,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["ddc-source","ddc-vim"],"created_at":"2024-12-18T18:15:44.630Z","updated_at":"2024-12-18T18:15:45.181Z","avatar_url":"https://github.com/4513ECHO.png","language":"TypeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# ddc-github\n\nGitHub completion for ddc.vim via gh\n\nThese sources collect something related to GitHub (e.g. issues, pull requests)\nvia gh, which is GitHub’s official command line tool.\n\nNow ddc-github provides below sources:\n\n- `github_issue`\n- `github_pull_request`\n\nPlease read [help](doc/ddc-github.txt) for details.\n\n## Requirements\n\n- [gh](https://github.com/cli/cli)\n- [denops.vim](https://github.com/vim-denops/denops.vim)\n- [ddc.vim](https://github.com/Shougo/ddc.vim)\n\n## Configuration\n\n```vim\n\" Use github sources\ncall ddc#custom#patch_global('sources', ['github_issue', 'github_pull_request'])\n\n\" Change source options\ncall ddc#custom#patch_global('souceOptions', {\n      \\ 'github_issue': {\n      \\   'mark': 'issue',\n      \\   'forceCompletionPattern': '#\\d*',\n      \\ },\n      \\ })\n\n\" Use on specific filetype\ncall ddc#custom#patch_filetype(['gitcommit'], {\n      \\ 'sources': ['github_issue', 'github_pull_request'],\n      \\ 'keywordPattern': '[a-zA-Z_:#]\\k*',\n      \\ })\n\n\" Use on `gh (issue|pr) create` buffer\nfunction! s:on_gh() abort\n  \" Check whether the file is gh's buffer\n  let tmpdir = empty($TMPDIR) ? '/tmp' : expand('$TMPDIR')\n  if fnamemodify(bufname(), ':h') != tmpdir || getcwd() == tmpdir\n    return\n  endif\n  \" Over sources\n  call ddc#custom#patch_buffer({\n        \\ 'sources': ['github_issue', 'github_pull_request'],\n        \\ 'keywordPattern': '[a-zA-Z_:#]\\k*',\n        \\ })\n  inoremap \u003csilent\u003e\u003cexpr\u003e\u003cbuffer\u003e \u003cC-x\u003e\u003cC-g\u003e\n        \\ ddc#map#manual_complete('github_issue', 'github_pull_request')\nendfunction\nautocmd FileType markdown call \u003cSID\u003eon_gh()\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2F4513echo%2Fddc-github","html_url":"https://awesome.ecosyste.ms/projects/github.com%2F4513echo%2Fddc-github","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2F4513echo%2Fddc-github/lists"}