Fzf for fish changed, lazygit new bind for commitizen and change .gitconfig to use nvimmerge
This commit is contained in:
parent
9d153ecfca
commit
99b2c9ee92
3 changed files with 22 additions and 7 deletions
|
@ -31,9 +31,17 @@ function _fzf_search_directory --description "Search the current directory. Repl
|
||||||
set -f file_paths_selected ($fd_cmd 2>/dev/null | _fzf_wrapper $fzf_arguments)
|
set -f file_paths_selected ($fd_cmd 2>/dev/null | _fzf_wrapper $fzf_arguments)
|
||||||
end
|
end
|
||||||
|
|
||||||
|
# if test $status -eq 0
|
||||||
|
# commandline --current-token --replace -- (string escape -- $file_paths_selected | string join ' ')
|
||||||
|
# end
|
||||||
if test $status -eq 0
|
if test $status -eq 0
|
||||||
commandline --current-token --replace -- (string escape -- $file_paths_selected | string join ' ')
|
if test -d $file_paths_selected
|
||||||
|
cd $file_paths_selected
|
||||||
|
|
||||||
|
_fzf_search_directory
|
||||||
|
else
|
||||||
|
$EDITOR $file_paths_selected
|
||||||
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
commandline --function repaint
|
commandline --function repaint
|
||||||
|
|
|
@ -81,10 +81,10 @@ git:
|
||||||
parseEmoji: false
|
parseEmoji: false
|
||||||
diffContextSize: 3 # how many lines of context are shown around a change in diffs
|
diffContextSize: 3 # how many lines of context are shown around a change in diffs
|
||||||
os:
|
os:
|
||||||
editPreset: "neovim" # see 'Configuring File Editing' section
|
editPreset: "nvim-remote" # see 'Configuring File Editing' section
|
||||||
edit: "neovim {{filename}}"
|
edit: "nvim {{filename}}"
|
||||||
editAtLine: "neovim --line={{line}} {{filename}}"
|
editAtLine: "nvim --line={{line}} {{filename}}"
|
||||||
editAtLineAndWait: "neovim --block --line={{line}} {{filename}}"
|
editAtLineAndWait: "nvim --block --line={{line}} {{filename}}"
|
||||||
refresher:
|
refresher:
|
||||||
refreshInterval: 10 # File/submodule refresh interval in seconds. Auto-refresh can be disabled via option 'git.autoRefresh'.
|
refreshInterval: 10 # File/submodule refresh interval in seconds. Auto-refresh can be disabled via option 'git.autoRefresh'.
|
||||||
fetchInterval: 60 # Re-fetch interval in seconds. Auto-fetch can be disabled via option 'git.autoFetch'.
|
fetchInterval: 60 # Re-fetch interval in seconds. Auto-fetch can be disabled via option 'git.autoFetch'.
|
||||||
|
@ -226,3 +226,10 @@ keybinding:
|
||||||
init: "i"
|
init: "i"
|
||||||
update: "u"
|
update: "u"
|
||||||
bulkMenu: "b"
|
bulkMenu: "b"
|
||||||
|
customCommands:
|
||||||
|
- key: "C"
|
||||||
|
command: "git cz c"
|
||||||
|
description: "commit with commitizen"
|
||||||
|
context: "files"
|
||||||
|
loadingText: "opening commitizen commit tool"
|
||||||
|
subprocess: true
|
||||||
|
|
|
@ -23,7 +23,7 @@
|
||||||
[interactive]
|
[interactive]
|
||||||
diffFilter = diff-so-fancy --patch
|
diffFilter = diff-so-fancy --patch
|
||||||
[merge]
|
[merge]
|
||||||
tool = nvim
|
tool = nvimdiff
|
||||||
conflictstyle = diff3
|
conflictstyle = diff3
|
||||||
[pager]
|
[pager]
|
||||||
blame = diff-so-fancy | less --tabs=4 -RFX
|
blame = diff-so-fancy | less --tabs=4 -RFX
|
||||||
|
|
Loading…
Add table
Reference in a new issue