diff --git a/helix/config.toml b/helix/config.toml index 57dffca..7868a99 100644 --- a/helix/config.toml +++ b/helix/config.toml @@ -75,13 +75,25 @@ tabpad = "‒" "f" = "changed_file_picker" "h" = ":noop %sh{gh browse '%{buffer_name}:%{cursor_line}' --commit=%sh{git rev-parse HEAD}}" +[keys.select.space.g] +"b" = ":sh git blame -L '%{selection_line_start},%{selection_line_end}' '%{buffer_name}'" +"f" = "changed_file_picker" +"h" = ":noop %sh{gh browse '%{buffer_name}:%{cursor_line}' --commit=%sh{git rev-parse HEAD}}" + [keys.normal.space.q] "q" = ":reflow" +[keys.select.space.q] +"q" = ":reflow" + [keys.normal.space.t] "w" = ":toggle whitespace.render all none" "W" = ":toggle soft-wrap.enable" +[keys.select.space.t] +"w" = ":toggle whitespace.render all none" +"W" = ":toggle soft-wrap.enable" + [keys.normal.space.y] "y" = "yank" "Y" = "yank_to_clipboard" @@ -89,7 +101,19 @@ tabpad = "‒" "J" = "yank_joined_to_clipboard" "d" = ":yank-diagnostic" +[keys.select.space.y] +"y" = "yank" +"Y" = "yank_to_clipboard" +"j" = "yank_joined" +"J" = "yank_joined_to_clipboard" +"d" = ":yank-diagnostic" + [keys.normal.space.Y] "p" = ":noop %sh{printf '%%s' '%{buffer_name}' | cbcopy}" "d" = ":noop %sh{printf '%%s' $(dirname '%{buffer_name}') | cbcopy}" "b" = ":noop %sh{printf '%%s' $(basename '%{buffer_name}') | cbcopy}" + +[keys.select.space.Y] +"p" = ":noop %sh{printf '%%s' '%{buffer_name}' | cbcopy}" +"d" = ":noop %sh{printf '%%s' $(dirname '%{buffer_name}') | cbcopy}" +"b" = ":noop %sh{printf '%%s' $(basename '%{buffer_name}') | cbcopy}"