aboutsummaryrefslogtreecommitdiff
path: root/src
Commit message (Collapse)AuthorAgeFilesLines
* Add info command to display file details魏曹先生2026-01-031-0/+21
|
* ix update editor to use latest version instead of mapped version魏曹先生2025-12-301-2/+19
| | | | | | | The update editor was incorrectly using the version from the cached sheet mapping, which could be outdated. Now it fetches the latest version from the latest file data to ensure correct version calculations.
* Replace import/export commands with share command魏曹先生2025-12-251-184/+180
|
* Add core version info to CLI version output魏曹先生2025-12-242-4/+23
|
* Add workspace root directory validation for sheet commandsWeicao-CatilGrass2025-12-171-14/+42
| | | | | | | - Add new error message for non-root directory execution - Validate current directory in sheet use/exit commands - Add directory correction helper for other commands - Return Result from jv_sheet_exit to handle validation failures
* Add parent directory creation before moving aligned sheet魏曹先生2025-12-171-0/+15
|
* Escape special characters in markdown formatting魏曹先生2025-12-171-0/+18
| | | | | | | The `md` function now handles backslash escapes for specific characters (*, <, >, `) to allow them to be displayed literally in formatted text. This fixes rendering of help documentation that uses these characters as symbols.
* Add color formatting support to help documentation魏曹先生2025-12-171-14/+177
|
* Add sheet and time context to no changes status message魏曹先生2025-12-171-1/+10
| | | | | | | The "no changes" status message now includes the sheet name and timestamp when displaying that the workspace is synchronized. This provides better context about which sheet and what time the status is based on.
* Fix Windows path conversion issue in `jv move` commandWeicao-CatilGrass2025-12-161-2/+6
| | | | | Use `format_path_str` to properly handle Windows path separators when generating move operation parameters for single file moves.
* Improve alignment command suggestions and error messagesWeicao-CatilGrass2025-12-161-1/+32
|
* Skip missing files in sheet align operationWeicao-CatilGrass2025-12-161-0/+5
| | | | | When aligning sheet files, skip any source files that don't exist instead of failing the entire operation.
* Replace tokio::time::Instant with std::time::SystemTimeWeicao-CatilGrass2025-12-161-10/+15
| | | | | - Use SystemTime::now() for time calculations - Add unwrap_or_default() for duration calculations
* Add Windows-specific import for Instant and KeyEventKindWeicao-CatilGrass2025-12-151-0/+4
| | | | | The KeyEventKind import is moved inside the Windows conditional block to avoid unused import warnings on other platforms.
* Implement `jv align` command with move, lost, and erased operations魏曹先生2025-12-151-50/+310
|
* Fix comment formatting for get_locale function魏曹先生2025-12-151-1/+1
|
* Revert lost items display in `jv status` to previous (b8ac698) style魏曹先生2025-12-151-12/+8
|
* Move file status types to workspace_analyzer module魏曹先生2025-12-151-1/+1
|
* Update help documentation and move command functionality魏曹先生2025-12-153-89/+421
| | | | | | | | | | | | | | - Redesign move command to modify upstream mappings with support for erase operations - Add erased items support to align command and status display - Update help text to reflect new move mapping semantics and add erased item instructions - Add auto-update timeout configuration via JV_OUTDATED_MINUTES environment variable - Improve status display with separate structural and content change modes - Add force flag to hold/throw commands to skip pre-checks - Update completion scripts to include erased items in align command
* Merge remote-tracking branch 'origin/main'魏曹先生2025-12-101-3/+127
|\
| * Fix duplicate input issue on Windows with IME handlingWeicao-CatilGrass2025-12-091-3/+127
| | | | | | | | | | | | Add Windows-specific input filtering to prevent duplicate key events and handle IME composition properly. Skip key release events, detect duplicate events within 20ms window, and filter IME control characters.
* | Fix `jvv here` display for vault size calculation魏曹先生2025-12-091-9/+51
|/ | | | | | Add timeout handling and proper file counting for virtual files Display progress message when calculation takes too long Add error message for size calculation failures
* Add i18n support for jvii editor messages魏曹先生2025-12-081-24/+30
| | | | | | - Add error, message, and status translations for English and Chinese - Replace hardcoded strings with t!() macro calls - Update file precheck to return errors instead of creating files
* Add crossterm dependency and implement jvii editor魏曹先生2025-12-081-4/+15
| | | | | | | - Add crossterm crate for terminal UI capabilities - Update jvii editor with proper status bar and keyboard hints - Add i18n support for editor interface - Remove default nano editor configuration from shell scripts
* Add basic text editor implementation to jvii魏曹先生2025-12-081-8/+567
|
* Add jvii binary and set default text editor魏曹先生2025-12-083-1/+42
| | | | | | | | - Add jvii as a new binary target in Cargo configuration - Set JV_TEXT_EDITOR environment variable to "nano" in CLI scripts - Implement jvii binary with version command support - Add get_default_editor() utility that checks JV_TEXT_EDITOR, EDITOR, then defaults to "jvii"
* Skip empty descriptions in update editor魏曹先生2025-12-081-1/+4
|
* Add --overwrite flag to track command and show skipped files魏曹先生2025-12-081-0/+24
| | | | | | | The flag allows users to confirm overwriting locally modified files during sync operations. When files are skipped due to local modifications, a warning message now displays the skipped files and provides the command to overwrite them.
* Support windows魏曹先生2025-12-062-12/+8
| | | | | | | - Simplify PowerShell wrapper function parameter handling - Change log filename format to use hyphens instead of colons - Correct Windows drive letter extraction logic to avoid compilation errors
* Add description column to `jv here --desc` output魏曹先生2025-12-043-34/+108
|
* Update utils.rs魏曹先生2025-12-042-0/+31
|
* Change `jv track`, `hold`, `throw` to accept glob patterns魏曹先生2025-12-031-100/+116
| | | | | | | The commands now accept a file pattern instead of a list of paths. The internal `glob` function is used to expand the pattern relative to the local workspace directory. This allows for more flexible file selection using wildcards.
* Fix globber matching issues due to base_dir differences魏曹先生2025-12-031-11/+28
|
* Refactor debug glob into reusable function魏曹先生2025-12-021-17/+18
|
* Remove local file existence check from change edit right魏曹先生2025-12-021-19/+0
| | | | | | The check for whether files exist locally before allowing edit right changes has been removed. This allows users to change edit rights for files that may not yet exist locally but are tracked in the sheet.
* Add debug glob command for testing file matching魏曹先生2025-12-022-2/+204
| | | | | | The new `jv _glob` command allows testing glob patterns against both local files and sheet contents. It helps verify how the globber matches files in different contexts.
* Add --show-log flag and refactor vault setup魏曹先生2025-12-012-51/+41
| | | | | | | | | - Add `--show-log` flag to override profile logger setting - Add validation for conflicting `--no-log` and `--show-log` flags - Refactor `Vault::setup_vault` to accept vault name parameter - Update logger initialization to respect configured log level - Add new dependencies: `whoami`, `redox_syscall`, `wasite`, `web-sys` - Add error message for conflicting log flags in locales
* Replace HashMap/HashSet with BTreeMap/BTreeSet for deterministic output魏曹先生2025-12-011-5/+8
|
* Add remote file display to jv here command魏曹先生2025-12-011-13/+68
|
* Add remote mapping display for `jv here`魏曹先生2025-12-011-3/+69
|
* add: comments of Completion Helpers魏曹先生2025-12-011-0/+5
|
* Update docs command to use config directory instead of doc directory魏曹先生2025-12-011-2/+2
|
* Add green color to holder and editing status indicators魏曹先生2025-12-011-0/+2
|
* Add completion helpers for workspace info魏曹先生2025-12-011-1/+36
| | | | | | - Rename HistoryIpAddress to GetHistoryIpAddress for consistency - Add commands to get workspace directory, current account, upstream address, and current sheet
* Update jv.rs魏曹先生2025-12-012-18/+13
|
* Add glob pattern matching utility魏曹先生2025-12-012-0/+240
| | | | | | | | | | This implements a Globber struct that can match files and directories using wildcard patterns (* and ?). It supports relative paths, home directory expansion with ~, and cross-platform path separators. The implementation includes pattern matching with backtracking for complex patterns and handles different directory prefixes (current, user home, and root).
* Refactor: Extract validation failure handling to reduce code duplication魏曹先生2025-11-281-155/+150
| | | | | | | - Created helper function to centralize validation failure logic - Moved error message generation outside helper for proper macro expansion - Maintained same functionality while improving code maintainability - Reduced repetitive if-else blocks for detail/skip-failed scenarios
* Ensure correct current directory before jv_update and jv_throw魏曹先生2025-11-261-1/+5
| | | | | Execute correct_current_dir at the beginning of jv_hold and jv_throw to guarantee proper context environment for these operations.
* Add yellow color to permission check failure details魏曹先生2025-11-261-1/+1
|
* Preserve working directory during auto update魏曹先生2025-11-261-0/+22
| | | | | | | | The auto update process was changing the current working directory, which could cause issues when the program continues execution. This change saves the current directory before updating and restores it afterward, ensuring the program continues in the correct location.