feat(git): alias s for unstage files
This commit is contained in:
parent
ee2b3481cf
commit
8064f04385
@ -45,6 +45,7 @@
|
|||||||
|
|
||||||
[alias]
|
[alias]
|
||||||
a = "!git ls-files --exclude-standard -m --others -t | fzf -m --bind load:last --preview 'git diff --color=always {2}' | cut -d' ' -f2 | xargs git add"
|
a = "!git ls-files --exclude-standard -m --others -t | fzf -m --bind load:last --preview 'git diff --color=always {2}' | cut -d' ' -f2 | xargs git add"
|
||||||
|
s = "!git diff --name-only --cached | fzf -m --bind load:last --preview 'git diff --staged --color=always {1}' | xargs git restore --staged"
|
||||||
d = diff
|
d = diff
|
||||||
di = diff
|
di = diff
|
||||||
ds = diff --staged
|
ds = diff --staged
|
||||||
|
|||||||
@ -1,13 +1,16 @@
|
|||||||
return {
|
return {
|
||||||
|
{
|
||||||
'nvim-telescope/telescope.nvim',
|
'nvim-telescope/telescope.nvim',
|
||||||
enabled = vim.fn.executable "fzf" == 1,
|
enabled = vim.fn.executable("fzf") == 1,
|
||||||
dependencies = {
|
dependencies = {
|
||||||
|
{
|
||||||
'nvim-lua/plenary.nvim',
|
'nvim-lua/plenary.nvim',
|
||||||
|
},
|
||||||
{
|
{
|
||||||
'nvim-telescope/telescope-fzf-native.nvim',
|
'nvim-telescope/telescope-fzf-native.nvim',
|
||||||
enabled = vim.fn.executable "make" == 1,
|
enabled = vim.fn.executable("make") == 1,
|
||||||
build = "make"
|
build = "make"
|
||||||
}
|
},
|
||||||
},
|
},
|
||||||
keys = {
|
keys = {
|
||||||
{ '<Leader>fb', '<cmd>Telescope buffers<CR>' },
|
{ '<Leader>fb', '<cmd>Telescope buffers<CR>' },
|
||||||
@ -115,3 +118,4 @@ return {
|
|||||||
})
|
})
|
||||||
end
|
end
|
||||||
}
|
}
|
||||||
|
}
|
||||||
Loading…
x
Reference in New Issue
Block a user