From c96461a898b0e3013ea57428d8e1828eb6971dc8 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=C5=81ukasz=20Pankowski?= Date: Sat, 3 Oct 2026 07:40:48 +0200 Subject: [PATCH] kakoune: replace pickers with live-grep --- kakoune/.config/kak/kakrc | 31 ++++--------------------------- 1 file changed, 4 insertions(+), 27 deletions(-) diff --git a/kakoune/.config/kak/kakrc b/kakoune/.config/kak/kakrc index c1423d9..d925de2 100644 --- a/kakoune/.config/kak/kakrc +++ b/kakoune/.config/kak/kakrc @@ -287,34 +287,11 @@ bundle match 'https://github.com/kmafeni04/match.kak' %{ map global match U ': match-surround-redo' -docstring "Redo" } -# PICKERS +# LIVE GREP -bundle pickers https://codeberg.org/kmafeni04/pickers.kak %{ - declare-user-mode pickers - map global user u ':enter-user-mode pickers' -docstring 'pickers mode' - map global pickers b ':pickers-buffer' -docstring 'Open fuzzy buffer picker' - map global pickers i ':pickers-buffer-info' -docstring 'Show currently open buffers' - map global pickers a ':pickers-buffer-alternate' -docstring 'Switch to previously opened buffer' - map global pickers f ':pickers-file' -docstring 'Open fuzzy file picker in git root or current working directory' - map global pickers n ':pickers-file /home/lupan/notes/' -docstring 'Open fuzzy file picker in notes directory' - map global pickers o ':pickers-file-cbd' -docstring "Open fuzzy file picker in current buffer's directory" - map global pickers g ':pickers-grep' -docstring "Open grep picker in git root" - map global pickers G "/y:pickers-grep" -docstring "Open grep picker in git root with selection as init" - map global pickers ':pickers-grep-cbd' -docstring "Open grep picker in buffer's directory" - map global pickers "/y:pickers-grep-cbd" -docstring "Open grep picker in buffer's directory with selection as init" - - hook global WinCreate \*pickers-grep\* %{ - map window normal ':pickers-grep-open' - map window normal "%%s)" -docstring "Select all matched grep text" - alias window write pickers-grep-write - alias window w pickers-grep-write - } - hook global WinCreate \*pickers-file\* %{ - map window normal ':pickers-file-open' - } - hook global WinCreate \*pickers-buffer\* %{ - map window normal ':pickers-buffer-open' - } +bundle live-grep https://codeberg.org/raiguard/kak-live-grep %{ + map global -docstring 'Live grep' file-mode g ': live-grep' + map global -docstring 'Live grep (selection)' file-mode 'G' ': live-grep %val{selection}' } # HARPOON