Prompts are markdown files with the
name chore-interface.md, where interface is one of
"replace", "prefix" or "suffix".
An example directory might look like:
/
|-- .config/
| |-- chores/
| |-- proofread-replace.md
| |-- summarize-prefix.md
In that case, chores will register two custom helpers when you call library(chores).
One of them is for the "proofread" chore and will replace the selected text with
a proofread version (according to the instructions contained in the markdown
file itself). The other is for the "summarize" chore and will prefix the selected
text with a summarized version (again, according to the markdown file's
instructions). Note:
Files without a .md extension are ignored.
Files with a .md extension must contain only one hyphen in their filename,
and the text following the hyphen must be one of replace, prefix, or
suffix.
To load custom prompts every time the package is loaded, place your
prompts in directory_path(). To change the prompt directory without
loading the package, just set the .chores_dir option with
options(.chores_dir = some_dir). To load a directory of files that's not
the prompt directory, provide a dir argument to directory_load().