diff options
| author | TheSiahxyz <164138827+TheSiahxyz@users.noreply.github.com> | 2025-01-25 19:16:15 +0900 |
|---|---|---|
| committer | TheSiahxyz <164138827+TheSiahxyz@users.noreply.github.com> | 2025-01-25 19:16:15 +0900 |
| commit | 74b50db2aa2bb7d33878fb14251dc0f0bfeb49f2 (patch) | |
| tree | fbe7e5f3c6aee49af2636dba58745edc0255656c | |
| parent | a5f518ca063540b3c4ded55571c56317cdcd385c (diff) | |
modified bin/gpt
| -rwxr-xr-x | ar/.local/bin/gpt | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/ar/.local/bin/gpt b/ar/.local/bin/gpt index 393916a..b8b542d 100755 --- a/ar/.local/bin/gpt +++ b/ar/.local/bin/gpt @@ -16,11 +16,11 @@ tmpfile=$(mktemp /tmp/nvim_buffer_cleaned.XXXXXX) echo "$input" >"$tmpfile" # Process the input and open Neovim directly, ensuring it doesn't suspend -nvim \ - -c "GpChatNew" \ - -c "call append(line('\$')-1, readfile('$tmpfile'))" \ - -c "normal! Gdd" \ - -c "startinsert" +nvim -c "GpChatNew" \ + -c "call append(line('$'), readfile('$tmpfile'))" \ + -c "normal iKeep your responses short and simple, when asked to provide command, provide only one. Do not provide explanations unless explicitly asked for." \ + -c "normal o" \ + -c "call timer_start(100, {-> feedkeys('A', 'n')})" # Remove the temporary file after usage rm "$tmpfile" |
