summaryrefslogtreecommitdiff
path: root/src/utils
AgeCommit message (Collapse)Author
2025-12-02Add debug glob command for testing file matching魏曹先生
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.
2025-12-01Add --show-log flag and refactor vault setup魏曹先生
- 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
2025-12-01Add glob pattern matching utility魏曹先生
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).
2025-11-23Add auto update feature via JV_AUTO_UPDATE env var魏曹先生
When enabled, automatically runs `jv update` if vault content has been modified by local operations.
2025-11-22Move quick sort utility to data_struct module魏曹先生
2025-11-20add: utility functions for table and pager魏曹先生
- Add insert_item method to SimpleTable for flexible row insertion - Add show_in_pager function for system pager support
2025-11-17feat: add quick sort utilities魏曹先生
Add quick sort implementation with custom comparison functions
2025-11-10Remove md_colored utility module魏曹先生
2025-11-10Create fs.rs魏曹先生
2025-11-10Add JV_LANG environment variable support and improve CLI structure魏曹先生
2025-11-10Rename build_env_logger module to logger and improve path handling魏曹先生
2025-11-06feat: add display utilities and table component魏曹先生
- Create display module with SimpleTable structure - Add size_str function for file size formatting - Support ANSI escape sequence filtering in display width - Provide table formatting with proper column alignment
2025-10-29Add input_with_editor function for text editing魏曹先生
This function opens the system editor with default text in a cache file, reads back the modified content after editing, and removes comment lines.
2025-10-29Apply clippy suggestion魏曹先生
2025-10-29Add input utility functions for user confirmation魏曹先生
2025-10-27Add socket address helper for domain resolution魏曹先生
2025-10-18feat: add new binary files and utilities魏曹先生
- Add jvref.rs binary - Add build_env_logger.rs utility module
2025-10-14feat: add internationalization support and new command-line tools魏曹先生
- Add locale support with English and Chinese translations - Introduce new jv and jvv command-line tools - Replace jvc.rs with improved command structure - Add utility modules for language selection and markdown coloring - Update configuration and dependencies