d
This commit is contained in:
@@ -1,25 +1,7 @@
|
|||||||
function fish_user_key_bindings
|
function fish_user_key_bindings
|
||||||
if command -q fzf
|
if command -q fzf; and functions -q fzf_key_bindings
|
||||||
set -gx FZF_CTRL_R_OPTS '--reverse'
|
set -gx FZF_CTRL_R_OPTS --reverse
|
||||||
|
|
||||||
function bind; end # thanks fzf for not using `builtin`
|
|
||||||
if functions -q fzf_key_bindings
|
|
||||||
fzf_key_bindings
|
fzf_key_bindings
|
||||||
else
|
|
||||||
echo (set_color bryellow)'WARNING: using `fzf --fish | source`'
|
|
||||||
command fzf --fish | source
|
|
||||||
end
|
|
||||||
functions -e bind
|
|
||||||
|
|
||||||
# FZF_ALT_C_COMMAND, FZF_ALT_C_OPTS
|
|
||||||
bind alt-c fzf-cd-widget
|
|
||||||
bind -M insert alt-c fzf-cd-widget
|
|
||||||
# FZF_CTRL_T_COMMAND, FZF_CTRL_T_OPTS
|
|
||||||
bind alt-f fzf-file-widget
|
|
||||||
bind -M insert alt-f fzf-file-widget
|
|
||||||
# FZF_CTRL_R_OPTS
|
|
||||||
bind ctrl-f fzf-history-widget
|
|
||||||
bind -M insert ctrl-f fzf-history-widget
|
|
||||||
else
|
else
|
||||||
echo (set_color brcyan)'INFO: fzf not found'
|
echo (set_color brcyan)'INFO: fzf not found'
|
||||||
end
|
end
|
||||||
@@ -29,9 +11,9 @@ function fish_user_key_bindings
|
|||||||
bind alt-t transpose-words
|
bind alt-t transpose-words
|
||||||
bind -M insert alt-t transpose-words
|
bind -M insert alt-t transpose-words
|
||||||
bind -M visual alt-t transpose-words
|
bind -M visual alt-t transpose-words
|
||||||
bind ctrl-t transpose-chars
|
# bind ctrl-t transpose-chars
|
||||||
bind -M insert ctrl-t transpose-chars
|
# bind -M insert ctrl-t transpose-chars
|
||||||
bind -M visual ctrl-t transpose-chars
|
# bind -M visual ctrl-t transpose-chars
|
||||||
|
|
||||||
bind ctrl-z 'fish_commandline_append " &; disown"'
|
bind ctrl-z 'fish_commandline_append " &; disown"'
|
||||||
bind -M insert ctrl-z 'fish_commandline_append " &; disown"'
|
bind -M insert ctrl-z 'fish_commandline_append " &; disown"'
|
||||||
|
|||||||
+13
-10
@@ -1,20 +1,29 @@
|
|||||||
[init]
|
[init]
|
||||||
defaultBranch = main
|
defaultBranch = main
|
||||||
[diff]
|
[fetch]
|
||||||
tool = nvimdiff
|
prune = true
|
||||||
[core]
|
[core]
|
||||||
editor = helix
|
editor = helix
|
||||||
pager = delta
|
pager = delta
|
||||||
; repositoryformatversion = 1
|
; repositoryformatversion = 1
|
||||||
; [extensions]
|
; [extensions]
|
||||||
; objectformat = sha256
|
; objectformat = sha256
|
||||||
|
[diff]
|
||||||
|
tool = nvimdiff
|
||||||
|
[merge]
|
||||||
|
conflictStyle = zdiff3
|
||||||
|
[interactive]
|
||||||
|
diffFilter = delta --color-only
|
||||||
|
[delta]
|
||||||
|
dark = true
|
||||||
|
navigate = true
|
||||||
|
|
||||||
[log]
|
[log]
|
||||||
showSignature = true
|
showSignature = true
|
||||||
abbrevCommit = true
|
abbrevCommit = true
|
||||||
|
|
||||||
[gpg "ssh"]
|
[gpg "ssh"]
|
||||||
allowedSignersFile = ~/.config/git/allowed_signers
|
allowedSignersFile = ~/.config/git/allowed_signers
|
||||||
[fetch]
|
|
||||||
prune = true
|
|
||||||
|
|
||||||
[includeIf "gitdir:~/src/"]
|
[includeIf "gitdir:~/src/"]
|
||||||
path = ~/src/.gitconfig
|
path = ~/src/.gitconfig
|
||||||
@@ -24,9 +33,3 @@
|
|||||||
; clean = git-lfs clean -- %f
|
; clean = git-lfs clean -- %f
|
||||||
; smudge = git-lfs smudge -- %f
|
; smudge = git-lfs smudge -- %f
|
||||||
; process = git-lfs filter-process
|
; process = git-lfs filter-process
|
||||||
[interactive]
|
|
||||||
diffFilter = delta --color-only
|
|
||||||
[delta]
|
|
||||||
navigate = true
|
|
||||||
[merge]
|
|
||||||
conflictStyle = zdiff3
|
|
||||||
|
|||||||
@@ -98,11 +98,13 @@ wrap-indicator = "↪"
|
|||||||
|
|
||||||
[keys.insert]
|
[keys.insert]
|
||||||
tab = "completion"
|
tab = "completion"
|
||||||
A-tab = "insert_tab"
|
S-tab = "insert_tab"
|
||||||
|
# A-tab = "move_parent_node_end"
|
||||||
C-space = "signature_help"
|
C-space = "signature_help"
|
||||||
C-backspace = "delete_word_backward"
|
C-backspace = "delete_word_backward"
|
||||||
# tab = "move_parent_node_end"
|
|
||||||
# S-tab = "move_parent_node_start"
|
A-e = "move_parent_node_end"
|
||||||
|
A-b = "move_parent_node_start"
|
||||||
|
|
||||||
|
|
||||||
[keys.select]
|
[keys.select]
|
||||||
@@ -119,7 +121,7 @@ C-backspace = "delete_word_backward"
|
|||||||
|
|
||||||
tab = "expand_selection"
|
tab = "expand_selection"
|
||||||
S-tab = "shrink_selection"
|
S-tab = "shrink_selection"
|
||||||
A-tab = "insert_tab"
|
# A-tab = "insert_tab"
|
||||||
# tab = "extend_parent_node_end"
|
# tab = "extend_parent_node_end"
|
||||||
# S-tab = "extend_parent_node_start"
|
# S-tab = "extend_parent_node_start"
|
||||||
|
|
||||||
@@ -146,7 +148,7 @@ C-space = "signature_help"
|
|||||||
|
|
||||||
tab = "expand_selection"
|
tab = "expand_selection"
|
||||||
S-tab = "shrink_selection"
|
S-tab = "shrink_selection"
|
||||||
A-tab = "insert_tab"
|
# A-tab = "insert_tab"
|
||||||
# tab = "move_parent_node_end"
|
# tab = "move_parent_node_end"
|
||||||
# S-tab = "move_parent_node_start"
|
# S-tab = "move_parent_node_start"
|
||||||
|
|
||||||
@@ -178,6 +180,7 @@ q = ":buffer-close"
|
|||||||
Q = ":buffer-close-all"
|
Q = ":buffer-close-all"
|
||||||
o = ":buffer-close-others"
|
o = ":buffer-close-others"
|
||||||
n = "file_picker_in_current_buffer_directory"
|
n = "file_picker_in_current_buffer_directory"
|
||||||
|
ret = "insert_newline"
|
||||||
|
|
||||||
# Toggle
|
# Toggle
|
||||||
[keys.normal.space.t]
|
[keys.normal.space.t]
|
||||||
|
|||||||
@@ -3,14 +3,19 @@
|
|||||||
[mgr]
|
[mgr]
|
||||||
prepend_keymap = [
|
prepend_keymap = [
|
||||||
# { on = "<C-y>", run = "plugin wl-clipboard", desc = "Yank to clipboard" },
|
# { on = "<C-y>", run = "plugin wl-clipboard", desc = "Yank to clipboard" },
|
||||||
{ on = "<C-y>", run = 'shell -- for path in "$@"; do echo "file://$path"; done | wl-copy -t text/uri-list' },
|
{ on = "<C-y>", run = 'shell -- for path in "$@"; do echo "file://$path"; done | wl-copy -t text/uri-list', desc = "Yank to clipboard" },
|
||||||
{ on = "<C-n>", run = 'shell -- dragon-drop -x -a -T -s 256 "$@"', desc = "Open drag and drop window" },
|
{ on = "<C-n>", run = 'shell -- dragon-drop -x -a -T -s 256 "$@"', desc = "Open drag and drop window" },
|
||||||
|
{ on = "!", run = 'shell "$SHELL" --block', desc = "Open $SHELL here" },
|
||||||
|
|
||||||
{ on = "R", run = "rename --empty=stem --cursor=start", desc = "Rename file full" },
|
{ on = "R", run = "rename --empty=stem --cursor=start", desc = "Rename file full" },
|
||||||
|
# { on = [
|
||||||
|
# "g",
|
||||||
|
# "d",
|
||||||
|
# ], run = "cd ~/documents", desc = "Goto ~/documents" },
|
||||||
{ on = [
|
{ on = [
|
||||||
"g",
|
"g",
|
||||||
"d",
|
"r",
|
||||||
], run = "cd ~/documents", desc = "Goto ~/documents" },
|
], run = 'shell -- ya emit cd "$(git rev-parse --show-toplevel)"', desc = "Go git root" },
|
||||||
|
|
||||||
{ on = "<A-s>", run = "search --via=rga", desc = "Search files by content via ripgrep-all" },
|
{ on = "<A-s>", run = "search --via=rga", desc = "Search files by content via ripgrep-all" },
|
||||||
]
|
]
|
||||||
|
|||||||
Reference in New Issue
Block a user