AutoYADM commit: 2025-05-21 16:45:14
This commit is contained in:
parent
3dba6d45c5
commit
050b548393
3 changed files with 21 additions and 4 deletions
|
@ -25,6 +25,15 @@ hook global WinSetOption filetype=typst %{
|
|||
unset-option window formatcmd
|
||||
remove-hooks window typst-auto-format
|
||||
}
|
||||
define-command -docstring %{
|
||||
Spawns a Zathura pdf preview and Typst watcher for the currently open Typst file
|
||||
} typst %{
|
||||
nop %sh{
|
||||
{
|
||||
"$kak_config/scripts/kak-typ-zathura.fish" -k -w "$kak_buffile" "$kak_client_pid"
|
||||
} > /dev/null 2>&1 < /dev/null &
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
hook global WinSetOption filetype=fish %{
|
||||
|
@ -36,7 +45,7 @@ hook global WinSetOption filetype=fish %{
|
|||
# line doesn't cause hortizonal overflow!
|
||||
hook global WinSetOption filetype=man %{
|
||||
try %{
|
||||
# remove these highlighters so everything displays properly
|
||||
# remove these highlighters so everything displays properly
|
||||
remove-highlighter window/number-lines
|
||||
remove-highlighter window/show-whitespaces
|
||||
ui-wrap-disable
|
||||
|
@ -44,12 +53,12 @@ hook global WinSetOption filetype=man %{
|
|||
# man.kak emits this user hook event
|
||||
# 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
|
||||
hook -once global User manpageloaded %{
|
||||
# This will move the cursor to the enter of the screen
|
||||
set-option window scrolloff "99,0"
|
||||
execute-keys %sh{
|
||||
result=$((kak_window_height / 2 - 1))
|
||||
printf '%d%s' "$result" 'j'
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
@ -99,4 +99,6 @@ map -docstring 'surround' global normal k ': enter-user-mode surround<ret>'
|
|||
map -docstring 'add surrounding' global surround s ': enter-user-mode surround-add<ret>'
|
||||
map -docstring 'delete surrounding' global surround d ':surround-delete<ret>'
|
||||
map -docstring 'replace surrounding' global surround r ':surround-replace<ret>'
|
||||
map -docstring 'select inside object' global surround i '<a-i>'
|
||||
map -docstring 'select around object' global surround a '<a-a>'
|
||||
~
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue