forked from raphaelmansuy/code2prompt
-
Notifications
You must be signed in to change notification settings - Fork 0
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Sync fork #2
Conversation
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
- Refactor comment stripper functions to be more concise and readable - Add docstrings to explain the purpose and functionality of each function - Remove redundant comments and unused imports - Standardize the formatting and organization of the module
…e file or a directory - Update the `should_process_file` function to simplify and clarify the criteria for processing a file - Remove unnecessary comments from the code - Improve code readability and maintainability
… price formatting
…dling in template_processor
* first_phase_refactoring * add nice print help * update * fix(code2prompt): r(code2prompt): improve token price display * update * fix(.): r: remove unused imports and variables * fix: Improve README.md * docs: Improve documentation for code2prompt/main.py * feat: Add improvements.md file with suggested enhancements * feat: Implement logging in critical areas of the code * fix: Add log_error function to logging_utils * fix: Add log_output_created function to logging_utils.py * feat: Add log_clipboard_copy and log_token_count functions to logging_utils * feat: Add colored logging to the terminal * feat: Add log level configuration in command line * feat: Add logging level configuration to .code2promptrc and analyze-code.j2 * feat: Improve log message formatting * fix: Add stderr logging for clipboard copy success and failure * fix: Set default log level to WARNING * feat: Add color and emoji to clipboard copy success message * feat: Add header to token price estimation output * fix: Correct token price output formatting * fix: Correct the order of input and output prices in log_token_prices function * fix: Correct the order of "In" and "Out" tokens in the log_token_prices function * fix: Correct the formatting of the token price table * fix/aider(.gitignore): add .aider* to ignore file * fix(code2prompt): update main.py file * fix(gitignore): add .ruff_cache to gitignore * first version * better version * fix(code2prompt): enhance interactive command with improved cursor navigation and visible line handling * fix(code2prompt): add terminal resize handling and improve instructions * fix(code2prompt): move interactive_command.py to commands directory * fix(include_loader): import jinja2 to resolve undefined name error fix(logging_utils): remove unused logger variable chore(deps): add jinja2 dependency to pyproject.toml test(analyzer): remove unused imports test(create_template_directory): remove unused imports test(include_loader): remove unused imports test(is_filtered): improve readability and consistency test(template_include): remove unused imports * fix(code2prompt/utils): Improve logging and file processing criteria * fix(code2prompt/commands): improve `get_terminal_height`, `get_directory_tree`, and `format_tree` functions * fix(code2prompt/commands): improve interactive command page up and down functionality * fix(code2prompt): add interactive file selector for generate command * fix(code2prompt/commands): Refactored interactive file selector, added support for multiple paths * fix(code2prompt): Refactor InteractiveFileSelector to handle multiple paths * fix(code2prompt/commands): improve interactive file selector responsiveness to terminal resize events * fix(code2prompt): Introduce file_path_retriever module to handle file path filtering and processing * fix(code2prompt/commands): improve code organization and documentation in the GenerateCommand class * fix(code2prompt): Improve performance of `_get_directory_tree` method and remove unnecessary validation for `retrieve_file_paths` * fix(code2prompt/commands): handle invalid or missing paths in interactive selector * fix(code2prompt/commands): create and use private methods to handle key bindings and application creation * fix(code2prompt/commands): update interactive file selector to use Path objects * fix(code2prompt): improve interactive file selector behavior * fix(code2prompt/commands): improve directory tree generation and formatting * fix(code2prompt/commands): improve interactive file selector
* fix(code2prompt): handle both directory and file inputs in generate function * fix(changelog): fix the selection on individual files. you must install it
…mansuy#18) * feat(syntax-highlighting): add custom syntax mapping support * feat(version): bump version to 0.9.0
… patterns, add tests for syntax map (raphaelmansuy#19)
CTY-git
pushed a commit
that referenced
this pull request
Nov 15, 2024
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
No description provided.