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.
This commit is contained in:
Sanchayan Maity 2022-05-06 12:02:56 +05:30
parent 463e9f5811
commit 8fd4ae0da9
10 changed files with 0 additions and 30 deletions

View File

@ -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

View File

@ -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

View File

@ -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

View File

@ -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

View File

@ -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

View File

@ -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

View File

@ -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

View File

@ -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

View File

@ -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

View File

@ -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