7 Commits

Author SHA1 Message Date
bobo
dd716e4475 Refactor code and improve comments in main.py 2024-05-11 15:17:18 +08:00
bobo
ddd14faffa Refactor command.yml and rewrite.py for improved code readability and error handling 2024-05-11 15:07:50 +08:00
bobo
09d23d34a8 fix lint error 2024-04-01 16:55:10 +08:00
bobo
5395639347 fix: Improve selection validation logic across modules
- Changed the condition to determine selection absence by comparing start and end range instead of checking if text is empty.
- Ensures that a non-selection (where start and end range are the same) correctly triggers the absence of selection error.
- Applied this logic uniformly in comments, docstring, explain, fix, and refactor modules.
2024-04-01 16:46:47 +08:00
bobo
852706d25d feat: Display README when no code is selected
- Add feature to show README.md when no text is selected
- Modify all command and main modules to support this feature
- Remove 'input: required' from command.yml files for flexibility
2024-04-01 16:41:25 +08:00
bobo
7981a7e5bb refactor: Optimize docstring gen without visible code
- Remove references to current visible code in docstring generation
- Ensure large functions retain original code when adding docstrings
- Aim for minimal interference from visible code context in outputs
2024-03-12 16:41:13 +08:00
Luo Tim
95c29f8aac Add the new /docstring command 2024-03-08 11:28:13 +08:00