diff --git a/rc/tools/man.kak b/rc/tools/man.kak index ed85ce2a..f017fa8c 100644 --- a/rc/tools/man.kak +++ b/rc/tools/man.kak @@ -122,19 +122,9 @@ man-link-next %{ man-search %opt[man_link2] n } define-command -docstring 'Go to previous man page link' \ man-link-prev %{ man-search %opt[man_link2] } -# Expand backward and forward, and then try to search for a man page link -define-command man-link-here %{ evaluate-commands -save-regs / %{ - man-search %opt[man_link2] '\b\w?\)' -}} -hidden - -# Search current selection for a man page link -define-command man-link %{ evaluate-commands -save-regs / %{ - man-search %opt[man_link1] s -}} -hidden - define-command -docstring 'Try to jump to a man page' \ man-jump %{ - try %{ man-link } catch %{ man-link-here } catch %{ fail 'Not a valid man page link' } + try %{ execute-keys s %opt[man_link1] } catch %{ fail 'Not a valid man page link' } try %{ man } catch %{ fail 'No man page link to follow' } }