Refactor architecture for CLI support, add search, and implement file locking. - #1
Merged
Conversation
… locking - Split `commands.py` into `controller.py`, `mcdr_entry.py`, and `cli_entry.py` to decouple business logic from MCDR API - Implement `TodoController` with advanced search functionality supporting multiple criteria, negation, and caching - Add `__main__.py` to allow running the plugin as a standalone CLI tool - Introduce `FileLock` and transaction context in `TodoManager` for safe concurrent data access - Add `!!todo search` command and update `list` and `archive` to utilize the new search logic - Update `interface.py` to support rendering arbitrary task lists with custom pagination prefixes - Relocate data storage to `sf_tasks/tasks.json` in the working directory to share state between MCDR and CLI - Add localization keys for search features in `lang/zh_cn.json`
This file contains hidden or 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
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.
commands.pyintocontroller.py,mcdr_entry.py, andcli_entry.pyto decouple business logic from MCDR APITodoControllerwith advanced search functionality supporting multiple criteria, negation, and caching__main__.pyto allow running the plugin as a standalone CLI toolFileLockand transaction context inTodoManagerfor safe concurrent data access!!todo searchcommand and updatelistandarchiveto utilize the new search logicinterface.pyto support rendering arbitrary task lists with custom pagination prefixessf_tasks/tasks.jsonin the working directory to share state between MCDR and CLIlang/zh_cn.json