diff options
author | qkzk <qu3nt1n@gmail.com> | 2022-10-13 22:16:16 +0200 |
---|---|---|
committer | qkzk <qu3nt1n@gmail.com> | 2022-10-13 22:16:16 +0200 |
commit | 110125b530ba9e9501ee1a7eb64a2dd82c7a7df0 (patch) | |
tree | 24847d637e8ea03c6b19dca930c4552845d24ae3 /src/actioner.rs | |
parent | 6da1264e3594bc3c74b31e7703cdd6a5b8f54ad1 (diff) |
Send a current path to skim
Diffstat (limited to 'src/actioner.rs')
-rw-r--r-- | src/actioner.rs | 9 |
1 files changed, 8 insertions, 1 deletions
diff --git a/src/actioner.rs b/src/actioner.rs index c10df5f..99e8215 100644 --- a/src/actioner.rs +++ b/src/actioner.rs @@ -263,7 +263,14 @@ impl Actioner { fn ctrl_s(&self, tabs: &mut Tabs) { let skimer = Skimer::new(self.term.clone()); - let output = skimer.no_source(); + let output = skimer.no_source( + tabs.selected_non_mut() + .path_content + .path + .to_str() + .unwrap() + .to_owned(), + ); let _ = self.term.clear(); tabs.create_tabs_from_skim(output); } |