AutoYADM commit: 2025-05-21 02:47:39

This commit is contained in:
Daniel Fichtinger 2025-05-21 02:47:39 -04:00
parent bbbc0d4c6b
commit ec6e7d142a
2 changed files with 8 additions and 3 deletions

View file

@ -25,12 +25,12 @@ function man --wraps man --description 'Format and display manual pages'
else
set fish_data_dir $__fish_datadir
end
set -l kakcmd 'set buffer filetype man; set buffer readonly true'
set -l fish_manpath (dirname $fish_data_dir)/fish/man
if test -d "$fish_manpath" -a -n "$MANPATH"
set MANPATH "$fish_manpath":$MANPATH
command man $argv | kak -e 'set buffer filetype man'
command man $argv | kak -e "$kakcmd"
return
end
command man $argv | kak -e 'set buffer filetype man'
command man $argv | kak -e "$kakcmd"
end

View file

@ -37,4 +37,9 @@ hook global WinSetOption filetype=man %{
remove-highlighter window/show-whitespaces
ui-wrap-disable
}
execute-keys %sh{
result=$((kak_window_height / 2 - 1))
notify-send 'this'
printf '%d%s' "$result" 'j'
}
}