From fff24e29e6e215ec1b034a7c33371ded167e01e8 Mon Sep 17 00:00:00 2001 From: Tim Pope Date: Sun, 28 Jul 2019 21:50:40 -0400 Subject: [PATCH] Add czA and czP aliases for cza and czp One set of these will get --index. I'll decide which later. --- autoload/fugitive.vim | 2 ++ 1 file changed, 2 insertions(+) diff --git a/autoload/fugitive.vim b/autoload/fugitive.vim index 29bed22..002d068 100644 --- a/autoload/fugitive.vim +++ b/autoload/fugitive.vim @@ -4927,7 +4927,9 @@ function! fugitive#MapJumps(...) abort nnoremap cz :G stash nnoremap cz :G stash nnoremap cza :exe EchoExec(['stash', 'apply', '--quiet', 'stash@{' . v:count . '}']) + nnoremap czA :exe EchoExec(['stash', 'apply', '--quiet', 'stash@{' . v:count . '}']) nnoremap czp :exe EchoExec(['stash', 'pop', '--quiet', 'stash@{' . v:count . '}']) + nnoremap czP :exe EchoExec(['stash', 'pop', '--quiet', 'stash@{' . v:count . '}']) nnoremap czv :exe 'Gedit' fugitive#RevParse('stash@{' . v:count . '}') nnoremap czw :exe EchoExec(['stash', '--keep-index'] + (v:count > 1 ? ['--all'] : v:count ? ['--include-untracked'] : [])) nnoremap czz :exe EchoExec(['stash'] + (v:count > 1 ? ['--all'] : v:count ? ['--include-untracked'] : []))