enable find to be able to highlight some hits (#6086)

* enable find to be able to highlight some hits

* oops, deps in the wrong place
This commit is contained in:
Darren Schroeder
2022-07-20 10:09:33 -05:00
committed by GitHub
parent a35a71fd82
commit db9b88089e
9 changed files with 219 additions and 74 deletions

View File

@ -344,7 +344,7 @@ You can also learn more at https://www.nushell.sh/book/"#;
}
// Highlight the search string using ANSI escape sequences and regular expressions.
fn highlight_search_string(
pub fn highlight_search_string(
haystack: &str,
needle: &str,
string_style: &Style,

View File

@ -14,7 +14,7 @@ mod export_env;
mod export_extern;
mod extern_;
mod for_;
mod help;
pub mod help;
mod hide;
mod if_;
mod ignore;