Add regex filtering support (Fixes #554)#882
Add regex filtering support (Fixes #554)#882sabbellasri wants to merge 1 commit intodalance:masterfrom
Conversation
d0942a3 to
172e252
Compare
|
Hi @dalance Following are the changes Added new CLI search mode flags in opt.rs: --text, --regex, and --smart (mutually exclusive). Kept existing text/numeric search logic unchanged, and added a separate regex path in view.rs so regex is only used when regex mode is active. Added smart regex detection in util.rs (has_regex_syntax) to auto-switch behavior in --smart mode when regex-like symbols are present. Added argument validation in main.rs: --regex accepts only one pattern argument. Updated dependency placement in Cargo.toml: moved regex to top-level [dependencies] so builds work on macOS/Linux/Windows (not only Linux/Android). The CI checks appear to be waiting for workflow approval. Thank you! |
Added --text, --regex, --smart
Regex filtering path in View::filter
Interactive regex edit in watch mode (/, Enter, Esc)
regex moved to top-level dependencies for cross-platform build compatibility.