@@ -18,26 +18,39 @@ p = ":toggle-option lsp.display-inlay-hints"
18
18
f = " :theme ayu_dark"
19
19
d = " :theme catppuccin_mocha_transparent"
20
20
21
+ [keys .normal ."A-\\" ] # case convert, underlying tool seems so-so
22
+ S = " :pipe ccase -t screamingsnake"
23
+ c = " :pipe ccase -t camel"
24
+ k = " :pipe ccase -t kebab"
25
+ K = " :pipe ccase -t upperkebab"
26
+ p = " :pipe ccase -t pascal"
27
+ s = " :pipe ccase -t snake"
28
+ l = " :pipe ccase -t lower"
29
+ u = " :pipe ccase -t upper"
30
+
21
31
[keys .normal ."A-m" ] # markdown menu
22
32
# Turn into heading
23
- "A-1" = [" extend_to_line_bounds" , " :pipe sed -E 's/^(#{1,} )?/# /'" , " collapse_selection" ]
24
- "A-2" = [" extend_to_line_bounds" , " :pipe sed -E 's/^(#{1,} )?/## /'" , " collapse_selection" ]
25
- "A-3" = [" extend_to_line_bounds" , " :pipe sed -E 's/^(#{1,} )?/### /'" , " collapse_selection" ]
26
- "A-4" = [" extend_to_line_bounds" , " :pipe sed -E 's/^(#{1,} )?/#### /'" , " collapse_selection" ]
27
- "A-5" = [" extend_to_line_bounds" , " :pipe sed -E 's/^(#{1,} )?/##### /'" , " collapse_selection" ]
28
- "A-6" = [" extend_to_line_bounds" , " :pipe sed -E 's/^(#{1,} )?/###### /'" , " collapse_selection" ]
33
+ "1" = [" extend_to_line_bounds" , " :pipe sed -E 's/^(#{1,} )?/# /'" , " move_char_right" , " insert_newline" , " move_char_left" ]
34
+ "2" = [" extend_to_line_bounds" , " :pipe sed -E 's/^(#{1,} )?/## /'" , " move_char_right" , " insert_newline" , " move_char_left" ]
35
+ "3" = [" extend_to_line_bounds" , " :pipe sed -E 's/^(#{1,} )?/### /'" , " move_char_right" , " insert_newline" , " move_char_left" ]
36
+ "4" = [" extend_to_line_bounds" , " :pipe sed -E 's/^(#{1,} )?/#### /'" , " move_char_right" , " insert_newline" , " move_char_left" ]
37
+ "5" = [" extend_to_line_bounds" , " :pipe sed -E 's/^(#{1,} )?/##### /'" , " move_char_right" , " insert_newline" , " move_char_left" ]
38
+ "6" = [" extend_to_line_bounds" , " :pipe sed -E 's/^(#{1,} )?/###### /'" , " move_char_right" , " insert_newline" , " move_char_left" ]
39
+
40
+ # xit todo manipulation from any line
41
+ x = [" extend_to_line_bounds" , " :pipe ~/.config/helix/helix-commands md tick" , " move_char_right" , " insert_newline" , " move_char_left" ]
42
+ z = [" extend_to_line_bounds" , " :pipe ~/.config/helix/helix-commands md untick" , " move_char_right" , " insert_newline" , " move_char_left" ]
43
+ c = [" extend_to_line_bounds" , " :pipe ~/.config/helix/helix-commands md cancel" , " move_char_right" , " insert_newline" , " move_char_left" ]
44
+
29
45
# useful, but can we do these with standard ms* ms**?
30
- i = [" :pipe ~/.config/helix/helix-commands markdown italic" ]
31
- b = [" :pipe ~/.config/helix/helix-commands markdown bold" ]
32
- s = [" :pipe ~/.config/helix/helix-commands markdown strikethrough" ]
33
- "`" = [" :pipe ~/.config/helix/helix-commands markdown backtick" ]
34
- h = [" :pipe ~/.config/helix/helix-commands markdown link" ]
35
-
36
- # list creators, awkward, want something like this
37
- o = [" split_selection_on_newline" , " goto_first_nonwhitespace" , " :insert-output printf '1. '" , " rotate_selections_backward" , ' keep_primary_selection' , " collapse_selection" , " goto_line_end" ]
38
- q = [" split_selection_on_newline" , " goto_first_nonwhitespace" , " :insert-output printf '> '" , " rotate_selections_backward" , ' keep_primary_selection' , " collapse_selection" , " goto_line_end" ]
39
- u = [" split_selection_on_newline" , " goto_first_nonwhitespace" , " :insert-output printf -- '- '" , " rotate_selections_backward" , ' keep_primary_selection' , " collapse_selection" , " goto_line_end" ]
40
- t = [" split_selection_on_newline" , " goto_first_nonwhitespace" , " :insert-output printf -- '- [ ] '" , " rotate_selections_backward" , ' keep_primary_selection' , " collapse_selection" , " goto_line_end" ]
46
+ # relying on :pipe is quirky; drops your select, strips trailing newlines
47
+ # stuff is never what you truly want...
48
+ i = " :pipe ~/.config/helix/helix-commands md italic"
49
+ b = " :pipe ~/.config/helix/helix-commands md bold"
50
+ s = " :pipe ~/.config/helix/helix-commands mdstrikethrough"
51
+ "`" = " :pipe ~/.config/helix/helix-commands md backtick"
52
+ h = " :pipe ~/.config/helix/helix-commands md link"
53
+ # c = ":pipe ~/.config/helix/helix-commands md code"
41
54
42
55
[editor ]
43
56
cursorline = true
0 commit comments