Skip to content

Commit

Permalink
settings udpate
Browse files Browse the repository at this point in the history
  • Loading branch information
ecornell committed Mar 13, 2023
1 parent 32fea72 commit c54f6f7
Show file tree
Hide file tree
Showing 2 changed files with 21 additions and 11 deletions.
6 changes: 3 additions & 3 deletions AI-Tools.ahk
Original file line number Diff line number Diff line change
Expand Up @@ -72,7 +72,7 @@ PromptHandler(promptName, append := false) {

global isRunning := true
ShowWaitTooltip()
SetSystemCursor(GetSetting("settings", "cursor_wait_animation_file","wait-1.ani"))
SetSystemCursor(GetSetting("settings", "cursor_wait_animation_file","wait"))

prompt := GetSetting(promptName, "prompt")
promptEnd := GetSetting(promptName, "prompt_end")
Expand Down Expand Up @@ -393,8 +393,8 @@ Unescape(obj) {

ShowWaitTooltip() {
if (isRunning) {
ToolTip " Generating response..."
SetTimer () => ShowWaitTooltip(), -250
ToolTip "Generating response..."
SetTimer () => ShowWaitTooltip(), -50
} else {
ToolTip()
}
Expand Down
26 changes: 18 additions & 8 deletions settings.ini.default
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ hotkey_2 = ^+k
menu_hotkey = ^!+k

;- Misc
cursor_wait_animation_file=wait-1.ani
; cursor_wait_animation_file=wait-1.ani

;------------------------------------------------------------------------------
; Popup Menu
Expand Down Expand Up @@ -46,13 +46,23 @@ prompt_continue
;------------------------------------------------------------------------------
; Prompts
;---------
; prompt: The main prompt to prepend before to the user input
; menu_text: The text to be displayed in the popup menu
; mode: The mode to be used for the prompt - see modes section
; prompt_system: The system prompt send of system input for chat completion mode
; prompt_end: Text to append to the end of user input
; append: If true, the response will be appended to the user input
; ~mode overrides~: Any mode setting can be overriden for a specific prompt
; prompt : (Required) The main prompt to prepend before to
; the user input
; mode : (Required) The mode to be used for the prompt
; - see modes section
; menu_text : (Optional) The text to be displayed in the popup menu
; prompt_system : (Optional) The system prompt send of system input
; for chat completion mode
; prompt_end : (Optional) Text to append to the end of user input
; replace_selected : (Optional:True/False:Defult True) If true, the response
; will be appended to the user input
; response_seperator : (Optional:Default "") The text to append between
; the user input and the response
; ~mode overrides~ : (Optional) Any mode setting can be overriden for a
; specific prompt
; --
; Note: String values must be enclosed in double quotes and can use \n for
; new lines
;------------------------------------------------------------------------------
[prompt_writting]
prompt="Improve the writting for clarity and conciseness and correct the spelling (American English) and grammar of the following:\n\n"
Expand Down

0 comments on commit c54f6f7

Please sign in to comment.