From 6e35eb0210fd631e1a23dac81557bc345cabffe5 Mon Sep 17 00:00:00 2001 From: Daniel Fichtinger Date: Mon, 7 Jul 2025 15:04:01 -0400 Subject: [PATCH] AutoYADM commit: 2025-07-07 15:04:01 --- .config/kak/autoload/filetype.kak | 5 +++-- .config/kak/kakrc | 6 +++--- 2 files changed, 6 insertions(+), 5 deletions(-) diff --git a/.config/kak/autoload/filetype.kak b/.config/kak/autoload/filetype.kak index 303d4cf8..5f8d047b 100644 --- a/.config/kak/autoload/filetype.kak +++ b/.config/kak/autoload/filetype.kak @@ -1,10 +1,10 @@ hook global WinSetOption filetype=python %{ # set-option window expandtab true # 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 format --line-length 74 - - } + } hook -group python-auto-format window BufWritePre .* %{ try format } @@ -176,6 +176,7 @@ try %{ remove-highlighter window/show-whitespaces ui-wrap-disable ui-scrolloff-disable + map window normal ': url-open' } } catch %{ set-option window formatcmd 'mailfmt' diff --git a/.config/kak/kakrc b/.config/kak/kakrc index 03cb973d..340010c7 100644 --- a/.config/kak/kakrc +++ b/.config/kak/kakrc @@ -159,9 +159,6 @@ hook global WinCreate .* %{ search-highlight-enable } -# open URL -require-module url-open -map -docstring "URL" global goto U ':url-open' # convenience mappings # quitting & saving @@ -276,3 +273,6 @@ map -docstring 'add selection' global normal Y a # } # } +# open URL +require-module url-open +map -docstring "Open URL" global user ':url-open'