blob: ff9067168ee236373a3421ba74b240f374fcf5b2 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
|
add-highlighter global/ number-lines
addhl global/ wrap -word
set -add global ui_options terminal_assistant=none
set -add global ui_options terminal_status_on_top=true
set global indentwidth 0
set global tabstop 4
# hook global WinSetOption filetype=python %{
# set window indentwidth 4
# hook -once -always window WinSetOption filetype=.* %{
# set window indentwidth 0
# }
# }
map global user <c> ':comment-line<ret>' -docstring 'comment line'
# map global user <x> '<a-|>wl-copy<ret>' -docstring 'wl-copy'
add-highlighter global/longline column 70 ,rgb:333333
evaluate-commands %sh{
copy='printf "\033]52;;%s\033\\" $(base64 | tr -d "\n") > $( [ -n "$kak_client_pid" ] && echo /proc/$kak_client_pid/fd/0 || echo /dev/tty )'
backend='OSC 52'
printf "map global user -docstring 'yank to primary' y '<a-|>%s<ret>:echo -markup %%{{Information}copied selection to %s primary}<ret>'\n" "$copy" "$backend"
}
alias global Wq write-quit
alias global W write
|