summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPaul Buetow <paul@buetow.org>2025-09-06 14:00:01 +0300
committerPaul Buetow <paul@buetow.org>2025-09-06 14:00:01 +0300
commitc667c26f81588a6594c2a07bd3cba89edd653df4 (patch)
tree162f25a0b61f1970a2ae81c85b445d92322ecd44
parente669b852c562c044426776f89dbf309432bdb2b3 (diff)
fix
-rw-r--r--dotfiles/helix/config.toml2
-rwxr-xr-xdotfiles/scripts/ai4
-rwxr-xr-xdotfiles/scripts/hx.goformatter3
3 files changed, 8 insertions, 1 deletions
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