AutoYADM commit: 2025-07-07 14:33:56
This commit is contained in:
parent
6d8b7764db
commit
013cce597b
1 changed files with 10 additions and 0 deletions
10
.config/kak/autoload/url.kak
Normal file
10
.config/kak/autoload/url.kak
Normal file
|
@ -0,0 +1,10 @@
|
|||
define-command -override url-open %{
|
||||
evaluate-commands -save-regs 'ab' %{
|
||||
set-register b 'https?://(www\.)?[-a-zA-Z0-9@:%._\+~#=]{1,256}\.[a-zA-Z0-9()]{1,6}\b([-a-zA-Z0-9()@:%_\+.~#?&//=]*)'
|
||||
execute-keys -draft '<a-a><a-w>s<c-r>b<ret>"ay'
|
||||
nop %sh{
|
||||
xdg-open "$kak_reg_a"
|
||||
}
|
||||
echo %reg{a}
|
||||
}
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue