AutoYADM commit: 2025-05-19 23:44:44
This commit is contained in:
parent
5cb0a93e3a
commit
7fbf98e281
3 changed files with 41 additions and 35 deletions
|
@ -5,9 +5,9 @@ require-module fishr
|
|||
require-module peneira
|
||||
|
||||
define-command fish-test %{
|
||||
fish %{
|
||||
notify-send $kak_buffile
|
||||
}
|
||||
fish %{
|
||||
notify-send $kak_buffile
|
||||
}
|
||||
}
|
||||
|
||||
set-option global ashen_dynamic_cursor true
|
||||
|
@ -36,11 +36,10 @@ add-highlighter global/regex-escaped regex \\[\[\]\(\)\{\}fnrtv0\\dwshDWSH] 0:rg
|
|||
add-highlighter global/ show-whitespaces -lf "" -tab "" -only-trailing
|
||||
add-highlighter global/ show-matching
|
||||
|
||||
|
||||
hook global WinCreate .* %{
|
||||
ui-wrap-enable
|
||||
ui-scrolloff-toggle
|
||||
add-highlighter window/number-lines number-lines -hlcursor -relative -separator " "
|
||||
add-highlighter window/number-lines number-lines -hlcursor -relative -separator " "
|
||||
}
|
||||
|
||||
map -docstring "quit" global user q ": q<ret>"
|
||||
|
@ -52,7 +51,6 @@ map -docstring "save" global normal <a-v> ": write!<ret>"
|
|||
# map -docstring "save" global normal <a-v> ": write-all<ret>"
|
||||
# map -docstring "save" global normal <a-V> ": write-all!<ret>"
|
||||
|
||||
|
||||
map -docstring "close current buffer" global user x ": db<ret>"
|
||||
map -docstring "goto previous buffer" global user m ": bp<ret>"
|
||||
map -docstring "goto next buffer" global user i ": bn<ret>"
|
||||
|
@ -97,37 +95,15 @@ map -docstring 'Select to file end' global user N "Gj<a-L>L"
|
|||
map -docstring 'Extend to file end' global user n "gj<a-l>l"
|
||||
|
||||
define-command -docstring %{
|
||||
Spawns a Zathura pdf preview and Typst watcher for the currently open Typst file
|
||||
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 &
|
||||
}
|
||||
nop %sh{
|
||||
{
|
||||
"$kak_config/scripts/kak-typ-zathura.fish" -k -w "$kak_buffile" "$kak_client_pid"
|
||||
} > /dev/null 2>&1 < /dev/null &
|
||||
}
|
||||
}
|
||||
define-command -docstring "Create a scratch buffer" scratch %{
|
||||
edit -scratch
|
||||
edit -scratch
|
||||
}
|
||||
alias global s scratch
|
||||
|
||||
define-command -hidden bar-buflist %{
|
||||
evaluate-commands %sh{
|
||||
list=''
|
||||
while read buf; do
|
||||
if [ "$buf" = '*debug*' ]; then
|
||||
continue
|
||||
fi
|
||||
index=$(($index + 1))
|
||||
if [ "$buf" = "$kak_bufname" ]; then
|
||||
cur=$(printf '[%s %s]' "$index" "$buf")
|
||||
else
|
||||
cur=$(printf '%s %s' "$index" "$buf")
|
||||
fi
|
||||
list="$list $cur"
|
||||
done <<< $(printf '%s\n' "$kak_buflist" | tr ' ' '\n')
|
||||
title="$list - $kak_client@[$kak_session]"
|
||||
printf "set-option -add global ui_options %%{terminal_title=%s}" "$title"
|
||||
}
|
||||
}
|
||||
|
||||
hook global WinDisplay .* bar-buflist
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue