AutoYADM commit: 2025-06-14 02:15:08
This commit is contained in:
parent
f46d0bd419
commit
2fee6412de
1 changed files with 12 additions and 1 deletions
|
@ -5,9 +5,20 @@ provide-module ltex-dict %~
|
||||||
'%<a-J>Zbi"<esc>a"<esc>z<a-,>r,x_i[<esc>a]<esc>'
|
'%<a-J>Zbi"<esc>a"<esc>z<a-,>r,x_i[<esc>a]<esc>'
|
||||||
}
|
}
|
||||||
define-command ltex-dict-read %{
|
define-command ltex-dict-read %{
|
||||||
echo -debug %sh{
|
set-register 'a' %sh{
|
||||||
cat "$kak_opt_ltex_dict_path" | kak -f '%<a-J>Zbi"<esc>a"<esc>z<a-,>r,x_i[<esc>a]<esc>'
|
cat "$kak_opt_ltex_dict_path" | kak -f '%<a-J>Zbi"<esc>a"<esc>z<a-,>r,x_i[<esc>a]<esc>'
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
define-command ltex-dict-set -params 1 %{
|
||||||
|
declare-option str foobartest ''
|
||||||
|
set-option buffer foobartest %sh{
|
||||||
|
# printf %s "$kak_opt_lsp_servers" | sed
|
||||||
|
cmd='cat "$kak_opt_ltex_dict_path" | kak -f %<a-J>Zbi"<esc>a"<esc>z<a-,>r,x_i[<esc>a]<esc>'
|
||||||
|
printf %s "$(cat /tmp/lspconf.txt)" | kak -f "$(printf '<a-s><a-k>\\hdictionary =<ret>s\\[|\\]<ret>m|%s<ret>' "$cmd")"
|
||||||
|
|
||||||
|
# printf %s "$kak_opt_lsp_servers" | kak -f "$(printf '<a-s><a-k>\\hdictionary =<ret>s\\[|\\]<ret>m|%s<ret>' "$cmd"
|
||||||
|
}
|
||||||
|
echo -debug %opt{foobartest}
|
||||||
|
}
|
||||||
|
|
||||||
~
|
~
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue