mirror of
https://github.com/TECHNOFAB11/tmux-copyrat.git
synced 2025-12-13 16:40:06 +01:00
feat: search for specific pattern names
This commit is contained in:
parent
be698ab741
commit
fd76ea1491
5 changed files with 174 additions and 120 deletions
10
src/view.rs
10
src/view.rs
|
|
@ -760,9 +760,10 @@ Barcelona https://en.wikipedia.org/wiki/Barcelona - ";
|
|||
|
||||
let lines = content.split('\n').collect();
|
||||
|
||||
let custom_regexes = [].to_vec();
|
||||
let named_pat = vec![];
|
||||
let custom_regexes = vec![];
|
||||
let alphabet = alphabets::Alphabet("abcd".to_string());
|
||||
let mut state = state::State::new(&lines, &alphabet, &custom_regexes, false);
|
||||
let mut state = state::State::new(&lines, &alphabet, &named_pat, &custom_regexes, false);
|
||||
let rendering_colors = ViewColors {
|
||||
text_fg: Box::new(color::Black),
|
||||
text_bg: Box::new(color::White),
|
||||
|
|
@ -821,10 +822,11 @@ Barcelona https://en.wikipedia.org/wiki/Barcelona - ";
|
|||
|
||||
let lines = content.split('\n').collect();
|
||||
|
||||
let custom_regexes = [].to_vec();
|
||||
let named_pat = vec![];
|
||||
let custom_regexes = vec![];
|
||||
let alphabet = alphabets::Alphabet("abcd".to_string());
|
||||
let reverse = true;
|
||||
let mut state = state::State::new(&lines, &alphabet, &custom_regexes, reverse);
|
||||
let mut state = state::State::new(&lines, &alphabet, &named_pat, &custom_regexes, reverse);
|
||||
let unique_hint = false;
|
||||
|
||||
let rendering_colors = ViewColors {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue