diff options
| author | Johannes Altmanninger <aclopte@gmail.com> | 2024-02-03 00:26:57 +0100 |
|---|---|---|
| committer | Maxime Coste <mawww@kakoune.org> | 2024-02-05 21:42:02 +1100 |
| commit | 24bf123503c06c44e73892aaf1ae550ae11af66e (patch) | |
| tree | 446f7cf384ec54b6c6d2347483a55093a32291dd /test/shell/prompt-shell-script-completion/script | |
| parent | 86d940c225d4d1e316efebf6d915feaa1aa49f63 (diff) | |
rc tools git: while blame annotations are shown, map <ret> to "git blame-jump"
Running git blame signals intent to view the blamed commit. Let's make
`<ret>` to go to that commit+line as long as blame info is shown.
In diff buffers we already use `<ret>` for "diff-jump".
Like blame annotations, the blame-jump mapping lives in window scope.
This means it will not collide with "diff-jump" which is mapped in
buffer scope.
Add the mapping synchronously (unlike the rest of the git-blame code)
to perhaps allow the user to override the mapping:
git blame; map window normal <ret> ...
Diffstat (limited to 'test/shell/prompt-shell-script-completion/script')
0 files changed, 0 insertions, 0 deletions
