From 18ee9e7644a13922f5f5395068ae854edda81e9e Mon Sep 17 00:00:00 2001 From: Daniel Fichtinger Date: Thu, 24 Apr 2025 17:45:06 -0400 Subject: [PATCH] AutoYADM commit: 2025-04-24 17:45:06 --- .config/helix/config.toml | 35 +++++++++++++++++++++++++++++------ 1 file changed, 29 insertions(+), 6 deletions(-) diff --git a/.config/helix/config.toml b/.config/helix/config.toml index e0eec1a3..f26997fc 100644 --- a/.config/helix/config.toml +++ b/.config/helix/config.toml @@ -95,14 +95,15 @@ C-k = "signature_help" C-c = "completion" S-tab = "move_parent_node_start" +# sticky mode! [keys.normal.Z] -m = "scroll_up" +e = "scroll_up" +n = "scroll_down" +j = "search_next" +J = "search_prev" [keys.normal] tab = "trim_selections" -A-tab = "move_parent_node_end" -S-tab = "move_parent_node_start" - # swap select_mode and regex keys v = "select_regex" V = "split_selection" @@ -217,6 +218,8 @@ m = '@ks*' t = '@:insert-output cat % | markdown-toc --bullets - --no-firsth1 -' [keys.normal.space] +t = "move_parent_node_end" +T = "move_parent_node_start" # yazi integration space = [ ':sh rm -f /tmp/yazi-path', @@ -269,10 +272,30 @@ I = "extend_to_line_end_newline" l = "extend_to_file_end" L = "extend_to_last_line" +[keys.select.space] +t = "extend_parent_node_end" +T = "extend_parent_node_start" +# yazi integration +space = [ + ':sh rm -f /tmp/yazi-path', + ':insert-output footclient -d error yazi %{buffer_name} --chooser-file=/tmp/yazi-path', + ':open %sh{cat /tmp/yazi-path}', + ':redraw', + ':set mouse false', + ':set mouse true', +] + +# insert markdown toc :) + +p = ''' +:append-output clipcat-menu --finder custom --custom-finder-program-path fuzzel --custom-finder-arguments=--dmenu,--placeholder=Clipboard --config <(printf "[log]\nemit_stdout = true\n") | grep -q 'Nothing is selected' && exit 1 || wl-paste''' +P = ''' +:insert-output clipcat-menu --finder custom --custom-finder-program-path fuzzel --custom-finder-arguments=--dmenu,--placeholder=Clipboard --config <(printf "[log]\nemit_stdout = true\n") | grep -q 'Nothing is selected' && exit 1 || wl-paste''' +x = ":bc" + + [keys.select] tab = "trim_selections" -A-tab = "extend_parent_node_end" -S-tab = "extend_parent_node_start" "{" = "rotate_selections_backward" "}" = "rotate_selections_forward" "A-{" = "rotate_selection_contents_backward"