From c667c26f81588a6594c2a07bd3cba89edd653df4 Mon Sep 17 00:00:00 2001 From: Paul Buetow Date: Sat, 6 Sep 2025 14:00:01 +0300 Subject: fix --- dotfiles/helix/config.toml | 2 ++ dotfiles/scripts/ai | 4 +++- dotfiles/scripts/hx.goformatter | 3 +++ 3 files changed, 8 insertions(+), 1 deletion(-) create mode 100755 dotfiles/scripts/hx.goformatter diff --git a/dotfiles/helix/config.toml b/dotfiles/helix/config.toml index 10bf264..b77ab54 100644 --- a/dotfiles/helix/config.toml +++ b/dotfiles/helix/config.toml @@ -67,6 +67,8 @@ C-q = ":buffer-close" # AI commands are good here. C-p = { c = ":pipe ai correct this sentence and only print out the corrected text", r = ":pipe ai restructure and reword the input and dont leave information out and only print out the new text", a = ":pipe ai rewrite this in a more casual style", n = ":pipe ai these are book notes of mine. correct the grammar and re-organize the notes. use bullet points for short information and whole paragraphs for longer one. the output must be in Gemini Gemtext format with the star * as the bullet point symbol and not the minus - . dont leave out any content.", p = ":pipe ai" } +# Will replace the above +C-a = ":pipe ai hexai-action" # Git commands C-g = { d = ":run-shell-command git diff", p = ":run-shell-command git pull", u = ":run-shell-command git push", t = ":run-shell-command tmux new-window -n hx-git-tig tig", c = ":run-shell-command tmux split-window -v 'git commit -a'" } diff --git a/dotfiles/scripts/ai b/dotfiles/scripts/ai index abcf490..085baad 100755 --- a/dotfiles/scripts/ai +++ b/dotfiles/scripts/ai @@ -1,6 +1,8 @@ #!/usr/bin/env zsh -if [ $(uname) = Darwin ]; then +if [ $1 = hexai-action ]; then + exec hx.hexai-action-prompt +elif [ $(uname) = Darwin ]; then exec hx.nvim-copilot-prompt "$@" else exec hx.hexai-prompt "$@" diff --git a/dotfiles/scripts/hx.goformatter b/dotfiles/scripts/hx.goformatter new file mode 100755 index 0000000..028fbb2 --- /dev/null +++ b/dotfiles/scripts/hx.goformatter @@ -0,0 +1,3 @@ +#!/bin/sh + +goimports | gofumpt -- cgit v1.2.3