Skip to content
This repository has been archived by the owner on Sep 12, 2024. It is now read-only.

Commit

Permalink
Remove double space after hook
Browse files Browse the repository at this point in the history
  • Loading branch information
mmlb committed Feb 10, 2022
1 parent 3e40448 commit 4f2be07
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions fetch.kak
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
# SPDX-License-Identifier: AGPL-3.0

# trailing colon: :lnum[:colnum[:]]
hook global WinDisplay (.*?):(\d+)(?::(\d+):?)? %{ evaluate-commands %sh{
hook global WinDisplay (.*?):(\d+)(?::(\d+):?)? %{ evaluate-commands %sh{
file=$kak_hook_param_capture_1
line=$kak_hook_param_capture_2
col=$kak_hook_param_capture_3
Expand All @@ -16,7 +16,7 @@ hook global WinDisplay (.*?):(\d+)(?::(\d+):?)? %{ evaluate-commands %sh{
}}

# trailing parentheses: (lnum[:colnum])
hook global WinDisplay (.*?)\((\d+)(?::(\d+))?\) %{ evaluate-commands %sh{
hook global WinDisplay (.*?)\((\d+)(?::(\d+))?\) %{ evaluate-commands %sh{
file=$kak_hook_param_capture_1
line=$kak_hook_param_capture_2
col=$kak_hook_param_capture_3
Expand All @@ -30,7 +30,7 @@ hook global WinDisplay (.*?)\((\d+)(?::(\d+))?\) %{ evaluate-commands %sh{
echo "edit $file $line $col";
}}
# trailing equals: =lnum=
hook global WinDisplay (.*?)=(\d+)= %{ evaluate-commands %sh{
hook global WinDisplay (.*?)=(\d+)= %{ evaluate-commands %sh{
file=$kak_hook_param_capture_1
line=$kak_hook_param_capture_2
Expand All @@ -44,7 +44,7 @@ hook global WinDisplay (.*?)=(\d+)= %{ evaluate-commands %sh{
}}

# trailing dash: -lnum-
hook global WinDisplay (.*?)-(\d+)- %{ evaluate-commands %sh{
hook global WinDisplay (.*?)-(\d+)- %{ evaluate-commands %sh{
file=$kak_hook_param_capture_1
line=$kak_hook_param_capture_2
Expand All @@ -58,7 +58,7 @@ hook global WinDisplay (.*?)-(\d+)- %{ evaluate-commands %sh{
}}

# Plan 9 type line spec: [:]#lnum
hook global WinDisplay (.*?)(?::)?#(\d+) %{ evaluate-commands %sh{
hook global WinDisplay (.*?)(?::)?#(\d+) %{ evaluate-commands %sh{
file=$kak_hook_param_capture_1
line=$kak_hook_param_capture_2

Expand Down

0 comments on commit 4f2be07

Please sign in to comment.