diff options
| -rw-r--r-- | dotfiles/fish/conf.d/ai.fish | 1 | ||||
| -rw-r--r-- | dotfiles/helix/config.toml | 4 | ||||
| -rwxr-xr-x | dotfiles/scripts/hx.aichat-prompt | 3 |
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." |
