Commit d0808e7
committed
Add mapping to yank current commit hash
As you can't enter a Vim popup window, you can't easily yank the current
commit hash, and that seems a natural thing to want to do (I certainly
found myself wanting to do it soon after starting to use git-messenger).
To address this, map 'c' to yank the current commit hash to v:register
(kind of, while the code behaves the same as using v:register, it
doesn't actually use v:register due to some clash with vim-cutlass).
While this is added primarily to aid Vim popup users, it doesn't break
anything for Neovim floating win or preview window users as the buffer
is not modifiable, and it seems a handy mapping for all users anyway.1 parent ef785fb commit d0808e7
File tree
3 files changed
+19
-0
lines changed- autoload/gitmessenger
- doc
3 files changed
+19
-0
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
139 | 139 | | |
140 | 140 | | |
141 | 141 | | |
| 142 | + | |
142 | 143 | | |
143 | 144 | | |
144 | 145 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
63 | 63 | | |
64 | 64 | | |
65 | 65 | | |
| 66 | + | |
| 67 | + | |
| 68 | + | |
| 69 | + | |
| 70 | + | |
| 71 | + | |
| 72 | + | |
| 73 | + | |
| 74 | + | |
| 75 | + | |
| 76 | + | |
| 77 | + | |
| 78 | + | |
| 79 | + | |
| 80 | + | |
| 81 | + | |
66 | 82 | | |
67 | 83 | | |
68 | 84 | | |
| |||
80 | 96 | | |
81 | 97 | | |
82 | 98 | | |
| 99 | + | |
83 | 100 | | |
84 | 101 | | |
85 | 102 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
137 | 137 | | |
138 | 138 | | |
139 | 139 | | |
| 140 | + | |
140 | 141 | | |
141 | 142 | | |
142 | 143 | | |
| |||
0 commit comments