Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Shortcuts always output at the end of the file #37

Open
andrew-scala-zapier opened this issue Apr 28, 2023 · 1 comment
Open

Shortcuts always output at the end of the file #37

andrew-scala-zapier opened this issue Apr 28, 2023 · 1 comment

Comments

@andrew-scala-zapier
Copy link

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

image

@Akeboshiwind
Copy link

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants