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:
parent
e34735a350
commit
3574904105
@ -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 %{
|
||||
|
Loading…
Reference in New Issue
Block a user