~sanchayanmaity/dotfiles

8fd4ae0da9201cfa5b3331139420e159cea25c6f — Sanchayan Maity a month ago 463e9f5
fish: Drop all fzf + git related functions

vim-fugitive is all that is needed. We wrote these functions before
getting well versed with fugitive. These are not required anymore.
10 files changed, 0 insertions(+), 30 deletions(-)

D fish/.config/fish/functions/fcR.fish
D fish/.config/fish/functions/fcf.fish
D fish/.config/fish/functions/fco.fish
D fish/.config/fish/functions/fcoc.fish
D fish/.config/fish/functions/fcr.fish
D fish/.config/fish/functions/ffa.fish
D fish/.config/fish/functions/ffco.fish
D fish/.config/fish/functions/ffr.fish
D fish/.config/fish/functions/ffrs.fish
D fish/.config/fish/functions/frbi.fish
D fish/.config/fish/functions/fcR.fish => fish/.config/fish/functions/fcR.fish +0 -3
@@ 1,3 0,0 @@
function fcR --description 'Git revert a selected commit using fzf'
    git revert (git log --pretty=oneline --abbrev-commit --color=always | fzf --ansi +s | awk '{print $1}')
end

D fish/.config/fish/functions/fcf.fish => fish/.config/fish/functions/fcf.fish +0 -3
@@ 1,3 0,0 @@
function fcf --description 'Git commit fixup using fzf'
    git commit --fixup (git log --pretty=oneline --abbrev-commit --color=always | fzf --ansi | cut -d ' ' -f1)
end

D fish/.config/fish/functions/fco.fish => fish/.config/fish/functions/fco.fish +0 -3
@@ 1,3 0,0 @@
function fco --description 'Checkout a branch using fzf'
    git branch --all | grep -v HEAD | string trim | fzf | read -l result; and git checkout "$result"
end

D fish/.config/fish/functions/fcoc.fish => fish/.config/fish/functions/fcoc.fish +0 -3
@@ 1,3 0,0 @@
function fcoc --description 'Checkout a commit using fzf'
    git log --pretty=oneline --abbrev-commit --reverse | fzf --tac +s -e | awk '{print $1;}' | read -l result; and git checkout "$result"
end

D fish/.config/fish/functions/fcr.fish => fish/.config/fish/functions/fcr.fish +0 -3
@@ 1,3 0,0 @@
function fcr --description 'Git reset to a selected commit using fzf'
    git reset $argv (git log --pretty=oneline --abbrev-commit --color=always | fzf --ansi +s | awk '{print $1}')
end

D fish/.config/fish/functions/ffa.fish => fish/.config/fish/functions/ffa.fish +0 -3
@@ 1,3 0,0 @@
function ffa --description 'Git add files using fzf'
    git add -- (git ls-files --modified --others --exclude-standard | fzf -m --preview 'bat --color=always {}')
end

D fish/.config/fish/functions/ffco.fish => fish/.config/fish/functions/ffco.fish +0 -3
@@ 1,3 0,0 @@
function ffco --description 'Git checkout a file using fzf'
    git checkout $argv -- (git ls-files --modified --exclude-standard | fzf -m)
end

D fish/.config/fish/functions/ffr.fish => fish/.config/fish/functions/ffr.fish +0 -3
@@ 1,3 0,0 @@
function ffr --description 'Git restore a file using fzf'
    git restore $argv -- (git ls-files --modified --exclude-standard | fzf -m)
end

D fish/.config/fish/functions/ffrs.fish => fish/.config/fish/functions/ffrs.fish +0 -3
@@ 1,3 0,0 @@
function ffrs --description 'Git restore a staged file using fzf'
    git restore --staged $argv -- (git diff --name-only --staged | fzf -m)
end

D fish/.config/fish/functions/frbi.fish => fish/.config/fish/functions/frbi.fish +0 -3
@@ 1,3 0,0 @@
function frbi --description 'Git interactive rebase using fzf'
    git rebase -i (git log --pretty=oneline --abbrev-commit --color=always | fzf --ansi | cut -d ' ' -f1)
end