diff options
author | qkzk <qu3nt1n@gmail.com> | 2022-10-13 22:56:26 +0200 |
---|---|---|
committer | qkzk <qu3nt1n@gmail.com> | 2022-10-13 22:56:26 +0200 |
commit | 49987eb15c5ed3a4ff2aee933ee1982beca08d8c (patch) | |
tree | d2c67e6b2d862ded5e7b88dcbfbcca02b4ad0a3c /src/actioner.rs | |
parent | b15ea35bffe990c85878e5c5b96f86e27a99dea0 (diff) |
simplify skimm call
Diffstat (limited to 'src/actioner.rs')
-rw-r--r-- | src/actioner.rs | 10 |
1 files changed, 1 insertions, 9 deletions
diff --git a/src/actioner.rs b/src/actioner.rs index 45fd24e..88d64c1 100644 --- a/src/actioner.rs +++ b/src/actioner.rs @@ -262,15 +262,7 @@ impl Actioner { } fn ctrl_f(&self, tabs: &mut Tabs) { - let skimer = Skimer::new(self.term.clone()); - let output = skimer.no_source( - tabs.selected_non_mut() - .path_content - .path - .to_str() - .unwrap() - .to_owned(), - ); + let output = Skimer::new(self.term.clone()).no_source(tabs.selected_non_mut().path_str()); let _ = self.term.clear(); tabs.create_tabs_from_skim(output); } |