From 8f16113c07be54427af140f70d9f965a784ce048 Mon Sep 17 00:00:00 2001 From: Eli Cornell Date: Mon, 13 Mar 2023 21:29:34 -0500 Subject: [PATCH] fixed VS Code and notepad++ single line select --- AI-Tools.ahk | 2 +- settings.ini.default | 41 +++++++++++++++++++---------------------- 2 files changed, 20 insertions(+), 23 deletions(-) diff --git a/AI-Tools.ahk b/AI-Tools.ahk index 23136a4..5835fb4 100644 --- a/AI-Tools.ahk +++ b/AI-Tools.ahk @@ -99,7 +99,7 @@ SelectText() { } else if WinActive("ahk_exe notepad++.exe") or WinActive("ahk_exe Code.exe") { ; In Notepad++ select the current line - Send "{End}+{Home}+{Home}" + Send "{End}{End}+{Home}+{Home}" } else { Send "^a" } diff --git a/settings.ini.default b/settings.ini.default index c47bdef..565a13d 100644 --- a/settings.ini.default +++ b/settings.ini.default @@ -64,14 +64,6 @@ prompt_continue ; 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" -prompt_end="###" -menu_text="Rewrite for clarity" - -[prompt_writting_edit] -prompt="Fix the spelling (American English) and grammar" -mode=mode_edit [prompt_spelling_chat_completion] prompt_system="I want you to act as an English spelling corrector and grammar improver. I want you to only reply the correction, the improvements and nothing else, do not write explanations." @@ -80,48 +72,53 @@ prompt_end="\nOutput: " menu_text="Fix spelling && grammar" temperature=0 +[prompt_writting] +prompt="Improve the writting for clarity and conciseness and correct the spelling (American English) and grammar of the following:\n\n" +menu_text="Rewrite for clarity" + [prompt_shorter] prompt="Make the following shorter:\n\n" -prompt_end="###" menu_text="Make shorter" [prompt_longer] prompt="Make the following longer:\n\n" -prompt_end="###" menu_text="Make longer" [prompt_tone_professional] prompt="Make the following more professional:\n\n" -prompt_end="###" menu_text="Change Tone - Professional" [prompt_simplify] prompt="Simplify the following:\n\n" -prompt_end="###" menu_text="Simplify language" +[prompt_proof_chat_completion] +prompt_system="I want you act as a English proofreader. I will provide you texts and I would like you to review them for any spelling, grammar, or punctuation errors. Once you have finished reviewing the text, provide me with a very detailed bullet list of suggestions and modifications to make and reasons why." +prompt="My text is the following: " +menu_text="Proofread" +replace_selected=False +response_seperator="\n\n" +temperature=0 + [prompt_summarize] prompt="Summarize the following:\n\n" -prompt_end="###" menu_text="Summarize" +replace_selected=False +response_seperator="\n" +temperature=0 [prompt_explain] prompt="Explain the following:\n\n" -prompt_end="###" menu_text="Explain this" +replace_selected=False +response_seperator="\n" +temperature=0 [prompt_items] prompt="Summarize as a statement and identify any action items as a bullet list:\n\n" -prompt_end="###" menu_text="Find action items" - -[prompt_proof_chat_completion] -prompt_system="I want you act as a English proofreader. I will provide you texts and I would like you to review them for any spelling, grammar, or punctuation errors. Once you have finished reviewing the text, provide me with a very detailed bullet list of suggestions and modifications to make and reasons why." -prompt="My text is the following: " -prompt_end="" -menu_text="Proofread" replace_selected=False -response_seperator="\n\n" +response_seperator="\n" temperature=0 [prompt_continue]