-
Notifications
You must be signed in to change notification settings - Fork 7
Refactor for 0.2 Release: Code Style, Action Scripts, and Bug Fixes #139
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
Conversation
Part 1 of 2 - Action Scripts, Assets, Core
|
Warning Rate limit exceeded@mkh-user has exceeded the limit for the number of commits or files that can be reviewed per hour. Please wait 3 minutes and 33 seconds before requesting another review. ⌛ How to resolve this issue?After the wait time has elapsed, a review can be triggered using the We recommend that you space out your commits to avoid hitting the rate limit. 🚦 How do rate limits work?CodeRabbit enforces hourly rate limits for each developer per organization. Our paid plans have higher rate limits than the trial, open-source and free plans. In all cases, we re-allow further reviews after a brief timeout. Please see our FAQ for further information. 📒 Files selected for processing (1)
📝 WalkthroughWalkthroughRemoves the FileDatabase constants; splits Settings into settings/presets/data; adds BackupAPI, Project APIs, editor indentation overrides and signals; introduces many new Window/scene classes and action Changes
Possibly related PRs
Pre-merge checks and finishing touches✅ Passed checks (3 passed)
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
This comment was marked as outdated.
This comment was marked as outdated.
This comment was marked as outdated.
This comment was marked as outdated.
This comment was marked as outdated.
This comment was marked as outdated.
Co-authored-by: coderabbitai[bot] <136622811+coderabbitai[bot]@users.noreply.github.com>
Co-authored-by: coderabbitai[bot] <136622811+coderabbitai[bot]@users.noreply.github.com>
This comment was marked as resolved.
This comment was marked as resolved.
Co-authored-by: coderabbitai[bot] <136622811+coderabbitai[bot]@users.noreply.github.com>
This comment was marked as resolved.
This comment was marked as resolved.
Co-authored-by: coderabbitai[bot] <136622811+coderabbitai[bot]@users.noreply.github.com>
Co-authored-by: coderabbitai[bot] <136622811+coderabbitai[bot]@users.noreply.github.com>
Co-authored-by: coderabbitai[bot] <136622811+coderabbitai[bot]@users.noreply.github.com>
Co-authored-by: coderabbitai[bot] <136622811+coderabbitai[bot]@users.noreply.github.com>
Co-authored-by: coderabbitai[bot] <136622811+coderabbitai[bot]@users.noreply.github.com>
Co-authored-by: coderabbitai[bot] <136622811+coderabbitai[bot]@users.noreply.github.com>
Co-authored-by: coderabbitai[bot] <136622811+coderabbitai[bot]@users.noreply.github.com>
Co-authored-by: coderabbitai[bot] <136622811+coderabbitai[bot]@users.noreply.github.com>
This comment was marked as resolved.
This comment was marked as resolved.
This comment was marked as resolved.
This comment was marked as resolved.
Co-authored-by: coderabbitai[bot] <136622811+coderabbitai[bot]@users.noreply.github.com>
Part 1 of 2 - Panels, Docs
This comment was marked as outdated.
This comment was marked as outdated.
This comment was marked as outdated.
This comment was marked as outdated.
This comment was marked as resolved.
This comment was marked as resolved.
|
@coderabbitai, based on |
|
Tip For best results, initiate chat on the files or code changes. 🧩 Analysis chain🏁 Script executed: Length of output: 14147 @mkh-user, based on the current CHANGELOG.md content, here are the notable additions you should add for PR #139 under the Additions for [unreleased] section:Added- **Action Script:** Edit > Evaluate Selection - Evaluates mathematical expressions in selected text ([#139](https://github.com/text-forge/text-forge/pull/105))
- **API:** `Global.mark_file_as_unsaved()` - Marks current file as having unsaved changes ([#139](https://github.com/text-forge/text-forge/pull/139))
- **API:** `Global.has_file()` - Checks if a valid file is currently open ([#139](https://github.com/text-forge/text-forge/pull/139))
- **API:** `backup_failed(was_auto: bool)` signal in BackupCore for backup failure notifications ([#139](https://github.com/text-forge/text-forge/pull/139))
- **API:** `extensions_loaded` signal in Extensions autoload ([#139](https://github.com/text-forge/text-forge/pull/139))
- **API:** `indentation_settings_updated(use_space, indent_size)` signal in EditorAPI ([#139](https://github.com/text-forge/text-forge/pull/139))
- **API:** Per-mode indentation override support with `EditorAPI.custom_mode_indentations` ([#139](https://github.com/text-forge/text-forge/pull/139))
- **API:** `EditorAPI.reset_to_mode_indentation_settings()` ([#139](https://github.com/text-forge/text-forge/pull/139))
- **API:** `EditorAPI.change_indentation_type(use_spaces)` ([#139](https://github.com/text-forge/text-forge/pull/139))
- **API:** `EditorAPI.change_indent_size(indent_size)` ([#139](https://github.com/text-forge/text-forge/pull/139))
- Class name declarations to ~40+ files for better type safety ([#139](https://github.com/text-forge/text-forge/pull/139))
- Security validation for plugin/mod file extraction (prevents path traversal attacks) ([#139](https://github.com/text-forge/text-forge/pull/139))Changed- **Action Script:** ~Command > Command Pallete~ to Command > Command Palette (renamed, improved search) ([#139](https://github.com/text-forge/text-forge/pull/139))
- **API:** ~`Settings.config`~ to `Settings.data` (merged settings loading) ([#139](https://github.com/text-forge/text-forge/pull/139))
- **API:** Extension config keys corrected: `on_activate`, `on_deactivate`, `uninstall` ([#139](https://github.com/text-forge/text-forge/pull/139))
- Backup system ID generation now timestamp-based with random suffix ([#139](https://github.com/text-forge/text-forge/pull/139))
- Unsaved file detection now uses `Global.has_unsaved_change()` instead of filename checks ([#139](https://github.com/text-forge/text-forge/pull/139))Removed- **API:** ~`FileDatabase`~ class - Use direct path references instead ([#139](https://github.com/text-forge/text-forge/pull/112))Fixed- **Action Script:** Move Lines to New File incorrect behavior ([#139](https://github.com/text-forge/text-forge/pull/92))
- **Action Script:** Reset Font Size not loading configuration properly ([#139](https://github.com/text-forge/text-forge/pull/93))
- **Action Script:** Toggle Bookmark incorrectly marking files as unsaved ([#139](https://github.com/text-forge/text-forge/pull/102))
- **Action Script:** Toggle Comment delimiter detection and multi-caret handling ([#139](https://github.com/text-forge/text-forge/pull/139))
- **Action Script:** Restart error handling with process creation validation ([#139](https://github.com/text-forge/text-forge/pull/139))
- Backup system: Restored backup saving functionality ([#139](https://github.com/text-forge/text-forge/pull/54), [#139](https://github.com/text-forge/text-forge/pull/59))
- Backup system: BackupStatus color updates on failure ([#139](https://github.com/text-forge/text-forge/pull/70), [#139](https://github.com/text-forge/text-forge/pull/71))
- Backup system: Infinite save_request cycles ([#139](https://github.com/text-forge/text-forge/pull/73))
- Backup system: Fixed `auto_backup_interval_minutes` setting name (was misspelled) ([#139](https://github.com/text-forge/text-forge/pull/139))
- Internal modes no longer reinstall on every application run ([#139](https://github.com/text-forge/text-forge/pull/3))
- Asset filename: ~`loafing.png`~ to `loading.png` ([#139](https://github.com/text-forge/text-forge/pull/26))
- Unit test execution errors and disabled custom tests during test runs ([#139](https://github.com/text-forge/text-forge/pull/107), [#139](https://github.com/text-forge/text-forge/pull/109))
- File selection dialog filters improved across multiple scenes ([#139](https://github.com/text-forge/text-forge/pull/139))Key points:
|
This comment was marked as resolved.
This comment was marked as resolved.
This comment was marked as resolved.
This comment was marked as resolved.
Co-authored-by: coderabbitai[bot] <136622811+coderabbitai[bot]@users.noreply.github.com>
Co-authored-by: coderabbitai[bot] <136622811+coderabbitai[bot]@users.noreply.github.com>
Summary of Changes
This PR is a very big refactor for all parts, and it is being done as we approach the 0.2 release. Currently, action scripts, assets, and core were reviewed and refactored and next part will be panels and documentation. This changes also includes small bug fixes and some performance improve. Changes include almost all scripts and scenes.
The applied improvements include standardizing whitespace, correcting comments and documentation (including fixing spelling and grammar and adding
class_nameto scripts), reviewing action scripts (including adding requirements, removing unused variables, and modifying various functions such asMove Lines to New FileandReset Font Size), replacing duplicate code with new helper functions, reducing code line length, improving scene node naming and functions connected to signals, improving file selection filters, fixing bugs related to saving backups and running unit tests, adding theGlobal.mark_file_as_unsavedfunction, reviewing code logic and branching, merging settings loading, renaming theSettings.configvariable toSettings.data, disabling custom tests during unit tests, removing the obsoleteFileDatabasescript, sorting functions logically, fixing the issue of installing internal mods on every run, fixing the issue of theBackupStatuscolor not changing in case of backup failure, and protecting the editor from installing files from outside the folder when installing plugins and mods.Related Items
Technical Details & Testing
class_namewas added to a large number of scripts.Move Lines to New Filehas been corrected: it now moves the entire content of the selected lines.Reset Font SizeActionScript.save_requestcycles was resolved.Toggle Bookmarkerror in marking unsaved changes was fixed.__and___.loafing.png.Global.mark_file_as_unsaved.Settings.configtoSettings.data.FileDatabase.BackupStatuscolor not changing when a backup fails.Checklist
Summary by CodeRabbit
New Features
Bug Fixes
Improvements
✏️ Tip: You can customize this high-level summary in your review settings.