AutoYADM commit: 2025-05-11 00:22:28
This commit is contained in:
parent
7d53867bc3
commit
8a0debc1ff
1 changed files with 20 additions and 8 deletions
|
@ -44,7 +44,7 @@ define-command -override tree-sitter-user-after-highlighter %{
|
|||
add-highlighter global/ number-lines -hlcursor -relative -separator " "
|
||||
add-highlighter global/ show-whitespaces -lf "" -tab "" -only-trailing
|
||||
add-highlighter global/ show-matching
|
||||
add-highlighter global/wrap wrap -word -indent
|
||||
# add-highlighter global/wrap wrap -word -indent
|
||||
|
||||
declare-user-mode ui
|
||||
map -docstring "UI" global user u ": enter-user-mode ui<ret>"
|
||||
|
@ -59,9 +59,13 @@ define-command ui-wrap-disable -docstring "disable wrap" %{
|
|||
echo -markup "{Information}wrap disabled"
|
||||
}
|
||||
|
||||
hook global WinCreate %{
|
||||
add-highlighter window/wrap wrap -word -indent
|
||||
define-command -override ui-wrap-toggle -docstring "toggle wrap" %{
|
||||
try %{ ui-wrap-enable } catch %{ ui-wrap-disable }
|
||||
}
|
||||
map -docstring "Wrap UI" global ui w ": ui-wrap-toggle<ret>"
|
||||
|
||||
hook global WinCreate .* %{
|
||||
ui-wrap-enable
|
||||
}
|
||||
|
||||
map -docstring "yank the selection into the clipboard" global user y "<a-|> wl-copy<ret>"
|
||||
|
@ -84,6 +88,14 @@ map -docstring "goto next buffer" global user i ": bn<ret>"
|
|||
|
||||
map global normal <tab> _
|
||||
map -docstring "commenct line" global normal <c-v> ":comment-line<ret>"
|
||||
define-command open_yazi %{
|
||||
nop %sh{
|
||||
rm -f /tmp/yazi-path
|
||||
}
|
||||
terminal yazi %val{buffile} --chooser-file=/tmp/yazi-path
|
||||
edit %sh{cat /tmp/yazi-path}
|
||||
}
|
||||
map -docstring "open file in yazi" global user <space> ": open_yazi<ret>"
|
||||
|
||||
declare-user-mode git
|
||||
map -docstring "git" global user g ": enter-user-mode git<ret>"
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue