AutoYADM commit: 2025-05-21 03:33:33
This commit is contained in:
parent
2f7643d380
commit
f9d20cf2c4
5 changed files with 72 additions and 39 deletions
|
@ -31,6 +31,9 @@ hook global WinSetOption filetype=fish %{
|
|||
set-option window formatcmd "fish_indent"
|
||||
}
|
||||
|
||||
# TODO: modify man.kak so that it leaves one char of whitespace
|
||||
# on the rightmost column of the whole file, so that selecting the whole
|
||||
# line doesn't cause hortizonal overflow!
|
||||
hook global WinSetOption filetype=man %{
|
||||
try %{
|
||||
# remove these highlighters so everything displays properly
|
||||
|
@ -42,9 +45,11 @@ hook global WinSetOption filetype=man %{
|
|||
# This is needed because we can't modify the selection
|
||||
# in WinSetOption's context
|
||||
hook -once global User manpageloaded %{
|
||||
# This will move the cursor to the enter of the screen
|
||||
execute-keys %sh{
|
||||
result=$((kak_window_height / 2 - 1))
|
||||
printf '%d%s' "$result" 'j'
|
||||
}
|
||||
set-option window scrolloff "99,0"
|
||||
}
|
||||
}
|
||||
|
|
|
@ -1,3 +1,8 @@
|
|||
# CHANGES BY DANIEL:
|
||||
# man-impl emits the 'manpageloaded' User hook event after it's done.
|
||||
# It also unsets readonly before changing the buffer, and re-sets it when
|
||||
# it's done.
|
||||
|
||||
declare-option -docstring "name of the client in which documentation is to be displayed" \
|
||||
str docsclient
|
||||
|
||||
|
@ -67,8 +72,6 @@ define-command -hidden -params ..3 man-impl %{
|
|||
|
||||
}
|
||||
|
||||
# MAN COMMAND
|
||||
# TODO: REMOVE number lines and show whitespace highlighters!
|
||||
define-command -params ..1 \
|
||||
-shell-script-candidates %{
|
||||
find /usr/share/man/ $(printf %s "${MANPATH}" |
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue