From 924ca6b43aa20938152b92f13cfae18ad827d655 Mon Sep 17 00:00:00 2001 From: Frank LENORMAND Date: Thu, 4 Nov 2021 07:17:54 +0300 Subject: [PATCH] rc man: Drop helper command The mappings declaration code is not necessarily more readable and the resulting command is shorter by a single flag. --- rc/tools/man.kak | 12 ++++-------- 1 file changed, 4 insertions(+), 8 deletions(-) diff --git a/rc/tools/man.kak b/rc/tools/man.kak index 7f69eb34..0b275770 100644 --- a/rc/tools/man.kak +++ b/rc/tools/man.kak @@ -137,11 +137,7 @@ man-jump %{ # Suggested keymaps for a user mode declare-user-mode man -define-command man-mode-map -params 3 %{ - map global man %arg[1] %arg[2] -docstring %arg[3] -} -hidden - -man-mode-map 'g' ': man-jump' 'Jump to a man page using selected man page link' -man-mode-map 'j' ': try %{ man-link-next }' 'Go to next man page link' -man-mode-map 'k' ': try %{ man-link-prev }' 'Go to previous man page link' -man-mode-map 'm' ': man' 'Look up a man page' +map global man 'g' -docstring 'Jump to a man page using selected man page link' ': man-jump' +map global man 'j' -docstring 'Go to next man page link' ': try %{ man-link-next }' +map global man 'k' -docstring 'Go to previous man page link' ': try %{ man-link-prev }' +map global man 'm' -docstring 'Look up a man page' ': man'