AutoYADM commit: 2025-05-21 23:52:39

This commit is contained in:
Daniel Fichtinger 2025-05-21 23:52:39 -04:00
parent 4271658423
commit 5ceb87dd7b
3 changed files with 17 additions and 0 deletions

View file

@ -1,6 +1,8 @@
# https://strongly-typed-thoughts.net/blog/kakoune-philosophy # https://strongly-typed-thoughts.net/blog/kakoune-philosophy
set-option global grepcmd 'rg --column --smart-case --sort path' set-option global grepcmd 'rg --column --smart-case --sort path'
# TODO: Highlight the actual search term, too? would be cool
define-command -hidden grep-jump-current-line %{ define-command -hidden grep-jump-current-line %{
evaluate-commands -save-regs clp %{ evaluate-commands -save-regs clp %{
execute-keys -draft 'ghT:"py2lT:"ly2lT:"cy' execute-keys -draft 'ghT:"py2lT:"ly2lT:"cy'
@ -9,4 +11,9 @@ define-command -hidden grep-jump-current-line %{
} }
hook global WinSetOption filetype=grep %{ hook global WinSetOption filetype=grep %{
map window normal <ret> ': grep-jump-current-line<ret>' map window normal <ret> ': grep-jump-current-line<ret>'
try %{
remove-highlighter window/number-lines
remove-highlighter window/show-whitespaces
ui-wrap-disable
}
} }

View file

@ -0,0 +1,3 @@
evaluate-commands %sh{ hop-kak --init }
declare-option str hop_kak_keyset 'tnserigmaodhc,x.plfuwyqz'

View file

@ -0,0 +1,7 @@
define-command file-picker %{
prompt -shell-script-candidates 'fd . --type f --follow --no-ignore-vcs' open: %{
edit -existing %val{text}
}
}
map global user F ':file-picker<ret>'