devchat-ai / devchat

Automate your dev tasks with AI-powered scripts, from your IDE's chat panel.
https://www.devchat.ai
Apache License 2.0
340 stars 39 forks source link

Feature Request: Add Recent Files for Code Completion Suggestions #327

Closed yangbobo2021 closed 4 months ago

yangbobo2021 commented 4 months ago

Feature Description

The idea is to enhance the code completion feature by incorporating a mechanism that considers recently edited files. This approach aims to make the code completion suggestions more context-aware and relevant to the developer's current tasks and recent edits, providing a smarter assistance in predicting the next lines of code or implementations.

Rationale

Given a developer often edits a number of files that are closely related when working on a specific feature or fixing a bug, tracking these recently edited files and utilizing them in predicting code completion can significantly streamline the development workflow. This feature would enhance the accuracy of code suggestions by factoring in the developer's recent activities.

Expected Behavior

Potential Challenges

I believe this feature would make a valuable addition by making the development environment more intuitive and reducing the cognitive load on developers, thereby boosting productivity.

Looking forward to the community’s input and further discussions on this suggestion.