summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPaul Buetow <paul@buetow.org>2025-04-24 23:53:36 +0300
committerPaul Buetow <paul@buetow.org>2025-04-24 23:53:36 +0300
commit18658e511ffb2b3f8d887400ee243192d5373ab5 (patch)
treecbab2ab01028e822601b3b36374f1f7163ed243a
parenteb15e5bd18a537901430d407f37595c846e67dfe (diff)
jo
-rw-r--r--dotfiles/fish/conf.d/ai.fish1
-rw-r--r--dotfiles/helix/config.toml4
-rwxr-xr-xdotfiles/scripts/hx.aichat-prompt3
3 files changed, 6 insertions, 2 deletions
diff --git a/dotfiles/fish/conf.d/ai.fish b/dotfiles/fish/conf.d/ai.fish
index 1315ab7..5ad80d2 100644
--- a/dotfiles/fish/conf.d/ai.fish
+++ b/dotfiles/fish/conf.d/ai.fish
@@ -2,3 +2,4 @@ abbr -a gpt chatgpt
abbr -a gpti "chatgpt --interactive"
abbr -a suggest 'gh copilot suggest'
abbr -a explain 'gh copilot explain'
+abbr -a ai 'aichat -e'
diff --git a/dotfiles/helix/config.toml b/dotfiles/helix/config.toml
index 748fdf0..d5fcc0a 100644
--- a/dotfiles/helix/config.toml
+++ b/dotfiles/helix/config.toml
@@ -57,8 +57,8 @@ C-s = { e = ":set-option soft-wrap.enable true", d = ":set-option soft-wrap.enab
# Buffer stuff
C-q = ":buffer-close"
-# AI commands
-C-p = { c = ":pipe chatgpt correct this sentence and only print out the corrected text", r = ":pipe chatgpt restructure and reword the input and dont leave information out and only print out the new text", a = ":pipe chatgpt rewrite this in a more casual style", n = ":pipe chatgpt 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 hx.chatgpt-prompt" }
+# AI commands are good here.
+C-p = { c = ":pipe aichat correct this sentence and only print out the corrected text", r = ":pipe aichat restructure and reword the input and dont leave information out and only print out the new text", a = ":pipe aichat rewrite this in a more casual style", n = ":pipe aichat 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 hx.aichat-prompt" }
# 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/hx.aichat-prompt b/dotfiles/scripts/hx.aichat-prompt
new file mode 100755
index 0000000..0ccd41b
--- /dev/null
+++ b/dotfiles/scripts/hx.aichat-prompt
@@ -0,0 +1,3 @@
+#!/usr/bin/env zsh
+
+aichat "$(hx.prompt). Answer only. If it is code, code only without code-block at the beginning and the end."