Open andrew-scala-zapier opened 1 year ago
Probably an obvious suggestion:
Add another option in the shortcut config to allow us to customise what happens with the output of the prompt. The default can be whatever function is called to process the output now.
E.g:
shortcut = {
name = "gitcommit",
...
process_function = require("neoai.utils").output_before_cursor,
}
This would also allow for different ways to output stuff. For example if you want to output to a different file, or create a new one for example.
I'd like to leverage the git commit shortcut as suggested in the README, but I'd like to be able to control where the output is added to the buffer. It's a cosmetic issue, but I'd like to be able to configure it to write to the top of the file instead of the bottom.
I can imagine other use cases where it'd be nice to be able to control the output location