From 18658e511ffb2b3f8d887400ee243192d5373ab5 Mon Sep 17 00:00:00 2001 From: Paul Buetow Date: Thu, 24 Apr 2025 23:53:36 +0300 Subject: jo --- dotfiles/fish/conf.d/ai.fish | 1 + dotfiles/helix/config.toml | 4 ++-- dotfiles/scripts/hx.aichat-prompt | 3 +++ 3 files changed, 6 insertions(+), 2 deletions(-) create mode 100755 dotfiles/scripts/hx.aichat-prompt 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." -- cgit v1.2.3