{"id":13681497,"url":"https://github.com/knsh14/vim-github-link","last_synced_at":"2025-04-07T17:11:03.730Z","repository":{"id":42081918,"uuid":"183922512","full_name":"knsh14/vim-github-link","owner":"knsh14","description":"generate github link from selected lines in vim","archived":false,"fork":false,"pushed_at":"2024-11-01T05:18:22.000Z","size":26,"stargazers_count":64,"open_issues_count":2,"forks_count":15,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-03-31T15:18:56.152Z","etag":null,"topics":["git","github","vim","vim-plugin"],"latest_commit_sha":null,"homepage":null,"language":"Vim Script","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/knsh14.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,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2019-04-28T15:00:14.000Z","updated_at":"2025-03-30T14:51:49.000Z","dependencies_parsed_at":"2025-01-03T04:11:58.576Z","dependency_job_id":"f4b0c1f3-00fa-428f-918a-a415ce8cd239","html_url":"https://github.com/knsh14/vim-github-link","commit_stats":{"total_commits":28,"total_committers":8,"mean_commits":3.5,"dds":0.5,"last_synced_commit":"9df238dbf150417772f2a1b7748750cfeda3d167"},"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/knsh14%2Fvim-github-link","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/knsh14%2Fvim-github-link/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/knsh14%2Fvim-github-link/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/knsh14%2Fvim-github-link/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/knsh14","download_url":"https://codeload.github.com/knsh14/vim-github-link/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":247694876,"owners_count":20980733,"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":["git","github","vim","vim-plugin"],"created_at":"2024-08-02T13:01:31.598Z","updated_at":"2025-04-07T17:11:03.699Z","avatar_url":"https://github.com/knsh14.png","language":"Vim Script","readme":"vim-github-link\n---\n\nCopy github/gitlab link for current line(s) to clipboard.\n\nLinks have the format:\n\n- GitHub - `https://GITHUB_REMOTE_DOMAIN/OWNER/REPO/blob/$REF/PATH/TO/FILE#L1-L10`.\n- GitLab - `https://GITLAB_REMOTE_DOMAIN/OWNER/REPO/blob/$REF/PATH/TO/FILE#L1-10`.\n\nThe plugin defines the following functions which returns different `$REF` references:\n\n- `GetCommitLink`: commit which most recently modified the current file (permalink)\n- `GetCurrentBranchLink`: active branch name\n- `GetCurrentCommitLink`: most recent commit - URL will 404 if you haven't pushed it to the remote\n\n# Usage\nIn normal mode\n\n```\n:1,3GetCurrentBranchLink\n```\nthen link is copied to your clipboard.\n\nIn visual mode, same command after selected.\n\n# Install\n## dein.vim\nadd below line into .vimrc\n\n```\ncall dein#add('knsh14/vim-github-link')\n```\n\nor add to toml file\n\n```\n[[plugins]]\nrepo = 'knsh14/vim-github-link'\n```\n\n## vim-plug\n\n```\nPlug 'knsh14/vim-github-link'\n```\n","funding_links":[],"categories":["Vim Script"],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fknsh14%2Fvim-github-link","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fknsh14%2Fvim-github-link","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fknsh14%2Fvim-github-link/lists"}