diff options
author | Canop <cano.petrole@gmail.com> | 2020-07-25 16:36:38 +0200 |
---|---|---|
committer | Canop <cano.petrole@gmail.com> | 2020-07-25 16:36:38 +0200 |
commit | e765aa34226a7e9b043272b361b96a4679b466f2 (patch) | |
tree | 1ceb751b07eb864d53798adead7b43351bebf2f3 /src/verb/internal_focus.rs | |
parent | 564528170fcac15399cac60a2fc013635702d3a9 (diff) |
content search in tree propagated as regex to preview
on :panel_right (ctrl-right)
Diffstat (limited to 'src/verb/internal_focus.rs')
-rw-r--r-- | src/verb/internal_focus.rs | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/verb/internal_focus.rs b/src/verb/internal_focus.rs index a3460b0..2ed87a5 100644 --- a/src/verb/internal_focus.rs +++ b/src/verb/internal_focus.rs @@ -51,8 +51,9 @@ pub fn new_panel_on_path( direction: HDir, ) -> AppStateCmdResult { if purpose.is_preview() { + let pattern = tree_options.pattern.tree_to_preview(); AppStateCmdResult::NewPanel { - state: Box::new(PreviewState::new(path, con)), + state: Box::new(PreviewState::new(path, pattern, con)), purpose, direction, } |