6 Commits

Author SHA1 Message Date
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
91cea1b59c fix lint error 2024-02-09 11:09:14 +08:00
bobo
62c60a1386 feat: Add refactoring commands and utility script
- Introduced command configurations for code rewriting, docstring optimization, and variable renaming.
- Added a Python utility script for code selection and refactoring operations.
- Implemented functionality to interact with IDE services and apply changes.
2024-02-09 11:04:29 +08:00