From 39244003bdb390d9778695e535161c4f6a985c1b Mon Sep 17 00:00:00 2001 From: Klesh Wong Date: Wed, 11 Nov 2020 00:53:29 +0800 Subject: [PATCH] [misc] c-p for fzf-open for both ranger/vim --- nvim/config/init.vim | 3 ++- ranger/config/rc.conf | 2 +- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/nvim/config/init.vim b/nvim/config/init.vim index 296c7cf..387ebff 100644 --- a/nvim/config/init.vim +++ b/nvim/config/init.vim @@ -215,7 +215,8 @@ nnoremap gsc :exec "!git switch -c " . input("Enter new branch name:") for fzf let g:fugitive_no_maps=1 -nnoremap :GitFiles + +nnoremap :GitFiles nnoremap gco :call fzf#run({'source': 'git branch \| cut -c 3-; git tag -l', 'sink': '!git checkout'}) nnoremap gm :call fzf#run({'source': 'git branch \| cut -c 3-', 'sink': '!git merge'}) diff --git a/ranger/config/rc.conf b/ranger/config/rc.conf index 8eacefd..75a910d 100644 --- a/ranger/config/rc.conf +++ b/ranger/config/rc.conf @@ -7,4 +7,4 @@ set draw_borders both set vcs_aware true map cg eval import subprocess;fm.cd(subprocess.getoutput('git rev-parse --show-toplevel')) map fzf_select -map fzf_edit +map fzf_edit