coc-git 2.7.7 → 2.7.9

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/Readme.md CHANGED
@@ -1,5 +1,11 @@
1
1
  # coc-git
2
2
 
3
+ <p align="center">
4
+ <img src="assets/coc-git-logo.png" alt="coc-git logo" width="180">
5
+ </p>
6
+
7
+ [![CI](https://github.com/neoclide/coc-git/actions/workflows/ci.yaml/badge.svg)](https://github.com/neoclide/coc-git/actions/workflows/ci.yaml)
8
+
3
9
  Git integration of [coc.nvim](https://github.com/neoclide/coc.nvim).
4
10
 
5
11
  **Note:** many useful features not implemented, it's recommended to
@@ -27,7 +33,7 @@ In your vim/neovim, run command:
27
33
  - Git status of current project, by `g:coc_git_status`.
28
34
  - Git status of current buffer, by`b:coc_git_status`.
29
35
  - Git status of current line, by`b:coc_git_blame` for statusline, and `addGBlameToVirtualText` for inline blames.
30
- - Git related lists, including `issues`, `gfiles`, `gstatus`, `commits`, `branches` & `bcommits`
36
+ - Git related lists, including `issues`, `gfiles`, `gstatus`, `gchanges`, `gchunks`, `commits`, `branches` & `bcommits`
31
37
  - Keymaps for git chunks, including `<Plug>(coc-git-chunkinfo)` `<Plug>(coc-git-nextchunk)` & `<Plug>(coc-git-prevchunk)` ,
32
38
  - Commands for chunks, including `git.chunkInfo` `git.chunkStage` `git.chunkUndo` and more.
33
39
  - Keymaps & commands for git conflicts.
@@ -60,14 +66,20 @@ In your vim/neovim, run command:
60
66
 
61
67
  - `git.urlFix`: a object to configure the url style of copyUrl and browserOpen, make this two command support other git services like gitlab and gitea. default: `{}`
62
68
 
69
+ - `git.diffRevision`: Revision used as the gutter diff base, default: `""` (the current index).
70
+
63
71
  - `git.issueFormat`: Formatting string for issue completion. Supported interpolation variables: %i - issue id. %r - repository name. %o - organization/owner name. %t - issue title. %b - issue body. %c - issue created at. %a - issue author. %u - issue url., default: `"#%i"`
64
72
 
65
73
  - `git.virtualTextPrefix`: Prefix of git blame infomation to virtual text, require virtual text feature of neovim., default: `" "`
66
74
 
75
+ - `git.blameFormat`: Format of git blame virtual text. Supported placeholders: `%a` author, `%t` time, `%s` summary, `%S` short sha, `%%` literal percent., default: `"(%a %t) %s"`
76
+
67
77
  - `git.addGBlameToVirtualText`: Add git blame information to virtual text, require virtual text feature of neovim., default: `false`
68
78
 
69
79
  - `git.addGBlameToBufferVar`: Add git blame information to b:coc_git_blame., default: `false`
70
80
 
81
+ - `git.blameUseRealTime`: Use an absolute local timestamp in blame information, default: `false`.
82
+
71
83
  - `git.branchCharacter`: Branch character used with g:coc_git_status, default: `""`
72
84
 
73
85
  - `git.changedDecorator`: Git changed decorator used with g:coc_git_status, default: `"*"`
@@ -84,8 +96,14 @@ In your vim/neovim, run command:
84
96
 
85
97
  - `git.realtimeGutters`: Update gutters in realtime, default: true., default: `true`
86
98
 
99
+ - `git.enableStagedGutters`: Show staged changes in the sign column., default: `false`
100
+
87
101
  - `git.signPriority`: Priority of sign gutters, default to `10`.
88
102
 
103
+ - `git.stagedSignPriority`: Priority of staged gutter signs., default: `9`.
104
+
105
+ - `git.pushArguments`: Additional arguments passed to `git push`, default: `[]`.
106
+
89
107
  - `git.changedSign.text`: Text of changed sign., default: `"~"`
90
108
 
91
109
  - `git.changedSign.hlGroup`: Highlight group for changed sign., default: `"DiffChange"`
@@ -106,6 +124,22 @@ In your vim/neovim, run command:
106
124
 
107
125
  - `git.changeRemovedSign.hlGroup`: Highlight group for change removed sign., default: `"DiffChange"`
108
126
 
127
+ - `git.stagedAddedSign.text`: Text of staged added sign., default: `"┃"`
128
+
129
+ - `git.stagedAddedSign.hlGroup`: Highlight group for staged added sign., default: `"CocGitStagedAdd"`
130
+
131
+ - `git.stagedChangedSign.text`: Text of staged changed sign., default: `"┃"`
132
+
133
+ - `git.stagedChangedSign.hlGroup`: Highlight group for staged changed sign., default: `"CocGitStagedChange"`
134
+
135
+ - `git.stagedRemovedSign.text`: Text of staged removed sign., default: `"╻"`
136
+
137
+ - `git.stagedRemovedSign.hlGroup`: Highlight group for staged removed sign., default: `"CocGitStagedDelete"`
138
+
139
+ - `git.mixedSign.text`: Text of a sign shared by staged and unstaged changes., default: `"┋"`
140
+
141
+ - `git.mixedSign.hlGroup`: Highlight group for a mixed sign., default: `"CocGitMixed"`
142
+
109
143
  - `git.semanticCommit.filetypes`: Enabled filetypes, default: `["gitcommit","gina-commit"]`
110
144
 
111
145
  - `git.semanticCommit.scope`: Commit message with scope field, default: `true`
@@ -114,7 +148,7 @@ In your vim/neovim, run command:
114
148
 
115
149
  - `git.showCommitInFloating`: Show commit in floating or popup window, default: `false`
116
150
 
117
- - `git.floatConfig`: Configure style of float window/popup, extends from floatFactory.floatConfig
151
+ - `git.floatConfig`: Configure style of float window/popup, extends from floatFactory.floatConfig, default: `{}`.
118
152
 
119
153
  - `git.gitlab.hosts`: Custom GitLab hosts, default: `["gitlab.com"]`
120
154
 
@@ -124,6 +158,20 @@ In your vim/neovim, run command:
124
158
 
125
159
  - `git.conflict.incoming.hlGroup`: Highlight group for the incoming version of a merge conflict., default: `"DiffAdd"`
126
160
 
161
+ - `git.conflict.common.hlGroup`: Highlight group for diff3 common-ancestor sections, default: `"DiffText"`.
162
+
163
+ - `git.gstatus.saveBeforeOpen`: Save open buffers before loading the `gstatus` list, default: `false`.
164
+
165
+ - `coc.source.issues.enable`: Enable issue completion, default: `true`.
166
+
167
+ - `coc.source.issues.triggerCharacters`: Trigger characters for issue completion, default: `["#"]`.
168
+
169
+ - `coc.source.issues.priority`: Issue completion priority, default: `99`.
170
+
171
+ - `coc.source.issues.shortcut`: Issue completion menu shortcut, default: `"[I]"`.
172
+
173
+ - `coc.source.issues.filetypes`: Filetypes where issue completion is active, default: `["gitcommit", "gina-commit"]`.
174
+
127
175
  more information, see [package.json](https://github.com/neoclide/coc-git/blob/master/package.json)
128
176
 
129
177
  **Note** for user from [vim-gitgutter](https://github.com/airblade/vim-gitgutter),
@@ -202,10 +250,16 @@ nmap ]g <Plug>(coc-git-nextchunk)
202
250
  " navigate conflicts of current buffer
203
251
  nmap [c <Plug>(coc-git-prevconflict)
204
252
  nmap ]c <Plug>(coc-git-nextconflict)
253
+ " resolve the conflict under the cursor
254
+ nmap <leader>cc <Plug>(coc-git-keepcurrent)
255
+ nmap <leader>ci <Plug>(coc-git-keepincoming)
256
+ nmap <leader>cb <Plug>(coc-git-keepboth)
205
257
  " show chunk diff at current position
206
258
  nmap gs <Plug>(coc-git-chunkinfo)
207
259
  " show commit contains current position
208
260
  nmap gc <Plug>(coc-git-commit)
261
+ " show blame details for the current line
262
+ nmap gb <Plug>(coc-git-showblamedoc)
209
263
  " create text object for git chunks
210
264
  omap ig <Plug>(coc-git-chunk-inner)
211
265
  xmap ig <Plug>(coc-git-chunk-inner)
@@ -219,14 +273,21 @@ Use command `:CocCommand` to open commands and type `git.` to get all git
219
273
  related commands.
220
274
 
221
275
  - `:CocCommand git.copyUrl` Copy url of current line to clipboard.
276
+ - `:CocCommand git.copyPermalink` Copy a permalink for the current line to clipboard.
277
+ - `:CocCommand git.refresh` Refresh Git information for all buffers.
222
278
  - `:CocCommand git.nextChunk` Navigate to the next chunk.
223
279
  - `:CocCommand git.prevChunk` Navigate to the previous chunk.
224
280
  - `:CocCommand git.chunkInfo` Show chunk info under cursor.
281
+ - `:CocCommand git.allChunkInfo` Return all changed chunks in the current buffer.
282
+ - `:CocCommand git.keepCurrent` Keep the current part of the conflict under the cursor.
283
+ - `:CocCommand git.keepIncoming` Keep the incoming part of the conflict under the cursor.
284
+ - `:CocCommand git.keepBoth` Keep both parts of the conflict under the cursor.
225
285
  - `:CocCommand git.chunkUndo` Undo current chunk.
226
286
  - `:CocCommand git.chunkStage` Stage current chunk.
227
287
  - `:CocCommand git.chunkUnstage` Unstage chunk that contains current line.
228
288
  - `:CocCommand git.diffCached` Show cached diff in preview window.
229
289
  - `:CocCommand git.showCommit` Show commit of current chunk.
290
+ - `:CocCommand git.showBlameDoc` Show blame details for the current line.
230
291
  - `:CocCommand git.browserOpen` Open current line in browser
231
292
  - `:CocCommand git.foldUnchanged` Fold unchanged lines of current buffer.
232
293
  - `:CocCommand git.toggleGutters` Toggle git gutters in sign column.
Binary file
package/history.md ADDED
@@ -0,0 +1,19 @@
1
+ ## 2.7.9
2
+
3
+ - docs: add coc-git logo (992064f)
4
+ - feat: show staged git gutters and navigate chunks (9410092)
5
+ - jump to the current code (641396b)
6
+ - fix typo in warning (#222) (9317050)
7
+
8
+ ## 2.7.8
9
+
10
+ - use node24 for CI (eacd2a2)
11
+ - fix uuid, use commonjs version (8ab1a44)
12
+ - fix: narrow vim call results (b72ad90)
13
+ - fix package.json (45b1873)
14
+ - add release.yml (3e68338)
15
+ - fix: address audit findings (e767896)
16
+ - feat: add git.allChunkInfo command for all chunk info (fixes #204) (43469d2)
17
+ - feat: support configurable git blame format (fixes #127) (31e369b)
18
+ - chore: add coc-test integration tests and upgrade toolchain (b10f485)
19
+ - fix: correct warning message typo (PR #222) (f66c361)