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

[ENHANCEMENT] Option for CODEX to ignore certain comments (or code) #5

Open
clotodex opened this issue Oct 4, 2021 · 4 comments
Open

Comments

@clotodex
Copy link

clotodex commented Oct 4, 2021

Often I put random ideas I have into comments (library ideas, todos, cleanup etc).
While it is nice to use CODEX to also put ideas into the generated code as well I notice the generated code not to be what I want anymore.

It would be great if there is an option to ignore certain comment types (as language agnostic as feasible of course).
E.g. TODO or IDEA lines; maybe a custom one like cignore or something makes sense.
A switch with line comments like # CODEXOFF and # CODEXON might also be helpful - also to "comment out code" you dont want CODEX to see.

Thanks for the great plugin!

@tom-doerr
Copy link
Owner

That sounds like a good idea, I might implement it at some point.

@clotodex
Copy link
Author

clotodex commented Jan 8, 2023

I think two things could be cool

  • #codex-ignore and #codex-on/off
  • a special command that ignores all special comment types (since this is sth I would like to do in certain situations)

@tom-doerr
Copy link
Owner

"special command that ignores all special comment types" - Do you want a special command for making the plugin ignore the commands that make the plugin ignore the text? :D Pretty meta
I'm happy to merge PRs, shouldn't be too hard to implement since it's Python.

@slacksystem
Copy link
Contributor

An implementation of the completion functions that can be used in a range, as an alternative option to all the text, could be great in relation to this, both from the perspective of emphasizing what to focus on and for saving tokens as well.

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

3 participants