aboutsummaryrefslogtreecommitdiff
path: root/src/utils
Commit message (Collapse)AuthorAgeFilesLines
* Add debug glob command for testing file matching魏曹先生2025-12-021-0/+24
| | | | | | 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-011-4/+12
| | | | | | | | | - 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
* Add glob pattern matching utility魏曹先生2025-12-011-0/+239
| | | | | | | | | | 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).
* Add auto update feature via JV_AUTO_UPDATE env var魏曹先生2025-11-231-0/+21
| | | | | When enabled, automatically runs `jv update` if vault content has been modified by local operations.
* Move quick sort utility to data_struct module魏曹先生2025-11-221-233/+0
|
* add: utility functions for table and pager魏曹先生2025-11-202-0/+56
| | | | | - Add insert_item method to SimpleTable for flexible row insertion - Add show_in_pager function for system pager support
* feat: add quick sort utilities魏曹先生2025-11-171-0/+233
| | | | Add quick sort implementation with custom comparison functions
* Remove md_colored utility module魏曹先生2025-11-101-20/+0
|
* Create fs.rs魏曹先生2025-11-102-0/+66
|
* Add JV_LANG environment variable support and improve CLI structure魏曹先生2025-11-102-14/+28
|
* Rename build_env_logger module to logger and improve path handling魏曹先生2025-11-101-0/+13
|
* feat: add display utilities and table component魏曹先生2025-11-061-0/+136
| | | | | | | - 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
* Add input_with_editor function for text editing魏曹先生2025-10-291-0/+53
| | | | | | This function opens the system editor with default text in a cache file, reads back the modified content after editing, and removes comment lines.
* Apply clippy suggestion魏曹先生2025-10-291-6/+4
|
* Add input utility functions for user confirmation魏曹先生2025-10-291-0/+52
|
* Add socket address helper for domain resolution魏曹先生2025-10-271-0/+186
|
* feat: add new binary files and utilities魏曹先生2025-10-181-0/+66
| | | | | - Add jvref.rs binary - Add build_env_logger.rs utility module
* feat: add internationalization support and new command-line tools魏曹先生2025-10-142-0/+34
- 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