use new reg access syntax in rc files

This commit is contained in:
Maxime Coste 2012-08-11 12:14:17 +02:00
parent 0a976cd309
commit b37f8f470a
2 changed files with 2 additions and 2 deletions

View File

@ -16,4 +16,4 @@ hook global WinSetOption filetype=grep %{
hook global WinSetOption filetype=(?!grep).* %{ rmhl grep-highlight; }
def gjump %{ exec 'xs^([^:]+):(\d+)<ret>'; edit %sh{ echo ${kak_reg_1} ${kak_reg_2} } }
def gjump %{ exec 'xs^([^:]+):(\d+)<ret>'; edit %reg{1} %reg{2} }

View File

@ -16,4 +16,4 @@ hook global WinSetOption filetype=make %{
hook global WinSetOption filetype=(?!make).* %{ rmhl make-highlight; }
def errjump %{ exec 'xs^([^:]+):(\d+)(?::(\d+))?:([^\n]+)\n<ret>'; %sh{ echo "edit ${kak_reg_1} ${kak_reg_2} ${kak_reg_3}; echo %{ ${kak_reg_4} }" } }
def errjump %{ exec 'xs^([^:]+):(\d+)(?::(\d+))?:([^\n]+)\n<ret>'; edit %reg{1} %reg{2} %reg{3}; echo %reg{4}" }