AutoYADM commit: 2025-07-07 15:04:01
This commit is contained in:
parent
9e52556703
commit
6e35eb0210
2 changed files with 6 additions and 5 deletions
|
@ -1,10 +1,10 @@
|
||||||
hook global WinSetOption filetype=python %{
|
hook global WinSetOption filetype=python %{
|
||||||
# set-option window expandtab true
|
# set-option window expandtab true
|
||||||
# set-option window softtabstop 4
|
# set-option window softtabstop 4
|
||||||
set-option window formatcmd %{
|
set-option window formatcmd %{
|
||||||
ruff check --select I --fix --stdin-filename $kak_buffile - 2>/dev/null |
|
ruff check --select I --fix --stdin-filename $kak_buffile - 2>/dev/null |
|
||||||
ruff format --line-length 74 -
|
ruff format --line-length 74 -
|
||||||
}
|
}
|
||||||
hook -group python-auto-format window BufWritePre .* %{
|
hook -group python-auto-format window BufWritePre .* %{
|
||||||
try format
|
try format
|
||||||
}
|
}
|
||||||
|
@ -176,6 +176,7 @@ try %{
|
||||||
remove-highlighter window/show-whitespaces
|
remove-highlighter window/show-whitespaces
|
||||||
ui-wrap-disable
|
ui-wrap-disable
|
||||||
ui-scrolloff-disable
|
ui-scrolloff-disable
|
||||||
|
map window normal <ret> ': url-open<ret>'
|
||||||
}
|
}
|
||||||
} catch %{
|
} catch %{
|
||||||
set-option window formatcmd 'mailfmt'
|
set-option window formatcmd 'mailfmt'
|
||||||
|
|
|
@ -159,9 +159,6 @@ hook global WinCreate .* %{
|
||||||
search-highlight-enable
|
search-highlight-enable
|
||||||
}
|
}
|
||||||
|
|
||||||
# open URL
|
|
||||||
require-module url-open
|
|
||||||
map -docstring "URL" global goto U ':url-open<ret>'
|
|
||||||
|
|
||||||
# convenience mappings
|
# convenience mappings
|
||||||
# quitting & saving
|
# quitting & saving
|
||||||
|
@ -276,3 +273,6 @@ map -docstring 'add selection' global normal Y <a-Z>a
|
||||||
# }
|
# }
|
||||||
# }
|
# }
|
||||||
|
|
||||||
|
# open URL
|
||||||
|
require-module url-open
|
||||||
|
map -docstring "Open URL" global user <a-ret> ':url-open<ret>'
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue