Marc-R2 / ai-commits-intellij-plugin

CommitGPT for IntelliJ based IDEs/Android Studio.
MIT License
12 stars 6 forks source link

Feature: Convert absolut paths to relative paths in DIFFs #4

Open dragetd opened 1 year ago

dragetd commented 1 year ago

When the diff is passed to the prompt, it includes the absolute paths.

Example: /home/draget/projects/work/mycompany/repos/experiements/secret/mygreatapp/src/…

It would be nice it it could be converted to a relative project path: mygreatapp/src/…

This would reduce the tokens used for the prompt, might increase privacy a tiny bit and lessens the project-irrelevant noise.