vim_codex icon indicating copy to clipboard operation
vim_codex copied to clipboard

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

Open clotodex opened this issue 2 years ago • 4 comments

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!

clotodex avatar Oct 04 '21 18:10 clotodex

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

tom-doerr avatar Oct 07 '21 02:10 tom-doerr

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)

clotodex avatar Jan 08 '23 20:01 clotodex

"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.

tom-doerr avatar Jan 09 '23 01:01 tom-doerr

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.

slacksystem avatar Apr 13 '23 02:04 slacksystem