From 74b50db2aa2bb7d33878fb14251dc0f0bfeb49f2 Mon Sep 17 00:00:00 2001 From: TheSiahxyz <164138827+TheSiahxyz@users.noreply.github.com> Date: Sat, 25 Jan 2025 19:16:15 +0900 Subject: modified bin/gpt --- ar/.local/bin/gpt | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) (limited to 'ar') 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" -- cgit v1.2.3