Fix manuals feature when using string to search

This commit is contained in:
ben
2024-10-11 21:42:00 +02:00
parent 2fa39bf76f
commit 25f6100661

2
fms.sh
View File

@@ -61,7 +61,7 @@ function notes() {
function manuals() { function manuals() {
echo -n 0 >${SWITCH_MENU} echo -n 0 >${SWITCH_MENU}
unset RES unset RES
RES=$(man -k . | bat --color=always -pp - | sk --reverse --ansi --inline-info --keep-right --print-query \ RES=$(man -k . | bat --color=always -pp - | sk --reverse --ansi --inline-info --keep-right \
--bind "shift-left:execute-silent(echo -n 1 > ${SWITCH_MENU})+abort" \ --bind "shift-left:execute-silent(echo -n 1 > ${SWITCH_MENU})+abort" \
--bind "shift-right:execute-silent(echo -n 1 > ${SWITCH_MENU})+abort") --bind "shift-right:execute-silent(echo -n 1 > ${SWITCH_MENU})+abort")
SWITCH=$(cat ${SWITCH_MENU}) SWITCH=$(cat ${SWITCH_MENU})