- commit
- 10f962d
- parent
- 3ffc2df
- author
- Eric Bower
- date
- 2026-04-13 00:08:30 -0400 EDT
chore(kak): having fun ricing
1 files changed,
+25,
-20
+25,
-20
1@@ -1,10 +1,28 @@
2-colorscheme tomorrow-night
3+colorscheme gruvbox-dark
4
5+face global Information default,rgb:504945
6+face global PrimarySelection default,rgb:458588
7 set-option global autoreload true
8 set-option global grepcmd 'rg -n'
9 set-option global ui_options terminal_assistant=none # disable clippy
10 set-option global scrolloff 3,3
11-# set-option global autoinfo ''
12+
13+hook global BufOpenFile .* editorconfig-load
14+hook global BufNewFile .* editorconfig-load
15+hook global WinCreate .* %{
16+ addhl window/ column 80 default,rgb:404040
17+ addhl window/ column 100 default,rgb:404040
18+}
19+add-highlighter global/ show-matching
20+
21+map global user y ":copy-to-osc<ret>" -docstring "copy selection to OSC52 clipboard"
22+map global user u ":copy-github-permalink<ret>" -docstring "copy github permalink"
23+map global user t ":copy-filename-to-osc<ret>" -docstring "copy filename to OSC52 clipboard"
24+map global user f ":find<space>" -docstring "find file"
25+map global user g ":grep<space>" -docstring "grep project directory"
26+map global user q ":delete-buffer<ret>" -docstring "close buffer"
27+map global user b ":buffer<space>" -docstring "buffer list"
28+map global user B ":delete-buffer-picker<ret>" -docstring "delete buffer"
29
30 define-command find -docstring "find files" -params 1 %{ edit %arg{1} }
31 complete-command find shell-script-candidates %{ fd -t f }
32@@ -23,18 +41,14 @@ define-command copy-to-osc %{
33 echo "Copied selections to OSC52 clipboard"
34 }
35
36-map global user y ':copy-to-osc<ret>' -docstring 'Copy selection to OSC52 clipboard'
37-
38 define-command copy-filename-to-osc %{
39 nop %sh{
40 encoded=$(printf "%s" "$kak_buffile" | sed "s|^$(pwd)/||" | base64 | tr -d '\n')
41 printf "\e]52;;%s\e\\" "$encoded" >/dev/tty
42 }
43- echo "Copied selections to OSC52 clipboard"
44+ echo "Copied filename to OSC52 clipboard"
45 }
46
47-map global user t ':copy-filename-to-osc<ret>' -docstring 'Copy filename to OSC52 clipboard'
48-
49 define-command copy-github-permalink %{
50 evaluate-commands %sh{
51 file=$(printf "%s" "$kak_buffile" | sed "s|^$(pwd)/||")
52@@ -54,15 +68,11 @@ define-command copy-github-permalink %{
53 }
54 }
55
56-map global user u ':copy-github-permalink<ret>' -docstring 'Copy github permalink'
57-
58-hook global BufOpenFile .* editorconfig-load
59-hook global BufNewFile .* editorconfig-load
60-
61-hook global WinCreate .* %{
62- addhl window/ column 100 default,rgb:404040
63+define-command delete-buffer-picker %{
64+ prompt -menu -buffer-completion 'delete buffer:' %{
65+ delete-buffer %val{text}
66+ }
67 }
68-add-highlighter global/ show-matching
69
70 evaluate-commands %sh{
71 if command -V kak-lsp >/dev/null 2>/dev/null ; then
72@@ -91,8 +101,3 @@ evaluate-commands %sh{
73 echo "echo -debug kak-lsp not found in PATH"
74 fi
75 }
76-
77-map global user f ':find<space>' -docstring "find file"
78-map global user g ':grep<space>' -docstring "grep project directory"
79-map global user q ':delete-buffer<ret>' -docstring "close buffer"
80-map global user b ':buffer<space>' -docstring "buffer list"