Commit 1fadea8
Eric Bower
·
2026-08-05 20:29:46 -0400 EDT
parent 377c97e
style: kak
1 files changed,
+39,
-38
+39,
-38
1@@ -1,10 +1,11 @@
2 colorscheme default
3
4-face global Information default,black
5+face global Information default,black
6 face global PrimarySelection black,blue
7-face global MenuBackground default,default@Information
8-face global MenuForeground default,default@PrimarySelection
9-face global MenuInfo default,default@Information
10+face global MenuBackground default,default@Information
11+face global MenuForeground default,default@PrimarySelection
12+face global MenuInfo default,default@Information
13+face global MatchingChar bright-cyan,blue
14
15 set-option global autoreload true
16 set-option global grepcmd 'rg -n'
17@@ -15,54 +16,54 @@ hook global BufOpenFile .* %{ modeline-parse }
18 hook global BufOpenFile .* editorconfig-load
19 hook global BufNewFile .* editorconfig-load
20 hook global WinCreate .* %{
21- addhl window/ column 80 default,bright-black
22- addhl window/ column 100 default,bright-black
23+ addhl window/ column 80 default,bright-black
24+ addhl window/ column 100 default,bright-black
25 }
26 add-highlighter global/ show-matching
27-add-highlighter global/highlight-todos regex \b(TODO|HACK|FIXME|XXX|NOTE)\b 0:+rb
28+add-highlighter global/highlight-todos regex \b(TODO|NOTE)\b 0:+rb
29
30-map global user y ":copy-to-osc<ret>" -docstring "copy selection to OSC52 clipboard"
31+map global user y ":copy-to-osc<ret>" -docstring "copy selection to OSC52 clipboard"
32 map global user u ":copy-github-permalink<ret>" -docstring "copy github permalink"
33-map global user t ":copy-filename-to-osc<ret>" -docstring "copy filename to OSC52 clipboard"
34-map global user f ":find<space>" -docstring "find file"
35-map global user g ":grep<space>" -docstring "grep project directory"
36-map global user q ":delete-buffer<ret>" -docstring "close buffer"
37-map global user b ":buffer<space>" -docstring "buffer list"
38-map global user B ":delete-buffer-picker<ret>" -docstring "delete buffer"
39+map global user t ":copy-filename-to-osc<ret>" -docstring "copy filename to OSC52 clipboard"
40+map global user f ":find<space>" -docstring "find file"
41+map global user g ":grep<space>" -docstring "grep project directory"
42+map global user q ":delete-buffer<ret>" -docstring "close buffer"
43+map global user b ":buffer<space>" -docstring "buffer list"
44+map global user B ":delete-buffer-picker<ret>" -docstring "delete buffer"
45
46 define-command find -docstring "find files" -params 1 %{ edit %arg{1} }
47 # complete-command find shell-script-candidates %{ fd -t f }
48 complete-command find shell-script-candidates %{
49- find . -type d \
50- \( -name .git -o -name .jj \
51- -o -name .zig-cache -o -name zig-pkg -o -name zig-out \
52- -o -name node_modules \
53- -o -name __pycache__ -o -name .mypy_cache \
54- -o -name .pytest_cache -o -name .ruff_cache -o -name .venv \
55- \) -prune \
56- -o -type f -print | sed 's|^\./||'
57+ find . -type d \
58+ \( -name .git -o -name .jj \
59+ -o -name .zig-cache -o -name zig-pkg -o -name zig-out \
60+ -o -name node_modules \
61+ -o -name __pycache__ -o -name .mypy_cache \
62+ -o -name .pytest_cache -o -name .ruff_cache -o -name .venv \
63+ \) -prune \
64+ -o -type f -print | sed 's|^\./||'
65 }
66
67 define-command dowrap %{ # soft-wrap command
68- add-highlighter buffer/ wrap -indent -word -marker "… "
69- map buffer normal j gd
70- map buffer normal k gu
71+ add-highlighter buffer/ wrap -indent -word -marker "… "
72+ map buffer normal j gd
73+ map buffer normal k gu
74 }
75
76 define-command copy-to-osc %{
77- nop %sh{
78- encoded=$(printf %s "$kak_selections" | base64 | tr -d '\n')
79- printf "\e]52;;%s\e\\" "$encoded" >/dev/tty
80- }
81- echo "Copied selections to OSC52 clipboard"
82+ nop %sh{
83+ encoded=$(printf %s "$kak_selections" | base64 | tr -d '\n')
84+ printf "\e]52;;%s\e\\" "$encoded" >/dev/tty
85+ }
86+ echo "Copied selections to OSC52 clipboard"
87 }
88
89 define-command copy-filename-to-osc %{
90- nop %sh{
91- encoded=$(printf "%s" "$kak_buffile" | sed "s|^$(pwd)/||" | base64 | tr -d '\n')
92- printf "\e]52;;%s\e\\" "$encoded" >/dev/tty
93- }
94- echo "Copied filename to OSC52 clipboard"
95+ nop %sh{
96+ encoded=$(printf "%s" "$kak_buffile" | sed "s|^$(pwd)/||" | base64 | tr -d '\n')
97+ printf "\e]52;;%s\e\\" "$encoded" >/dev/tty
98+ }
99+ echo "Copied filename to OSC52 clipboard"
100 }
101
102 define-command copy-github-permalink %{
103@@ -85,9 +86,9 @@ define-command copy-github-permalink %{
104 }
105
106 define-command delete-buffer-picker %{
107- prompt -menu -buffer-completion 'delete buffer:' %{
108- delete-buffer %val{text}
109- }
110+ prompt -menu -buffer-completion 'delete buffer:' %{
111+ delete-buffer %val{text}
112+ }
113 }
114
115 evaluate-commands %sh{