1
1
mirror of https://github.com/mawww/kakoune.git synced 2024-10-05 17:18:00 +03:00

Use a map instead of a hook to jump to grep result

This commit is contained in:
Loric Brevet 2024-04-19 15:17:30 +02:00
parent e34735a350
commit 3574904105
No known key found for this signature in database
GPG Key ID: 6AB3DBD46F8FB159

View File

@ -45,8 +45,7 @@ hook -group grep-highlight global WinSetOption filetype=grep %{
}
hook global WinSetOption filetype=grep %{
hook buffer -group grep-hooks NormalKey <ret> jump
hook -once -always window WinSetOption filetype=.* %{ remove-hooks buffer grep-hooks }
map buffer normal <ret> :jump<ret>
}
define-command -hidden grep-jump %{