diff options
author | qkzk <qu3nt1n@gmail.com> | 2023-10-11 22:12:50 +0200 |
---|---|---|
committer | qkzk <qu3nt1n@gmail.com> | 2023-10-11 22:12:50 +0200 |
commit | a91d92ae6bad3c866a30c0ae0b91c302c9b33b01 (patch) | |
tree | 76d820cdf1391d9613941ee9944a8ac1801fcaed | |
parent | 727f64c6a2dc385e28fbf54d686cdbe28b5daebf (diff) |
better name for current path -> current directory path
-rw-r--r-- | src/event_exec.rs | 4 | ||||
-rw-r--r-- | src/tab.rs | 2 |
2 files changed, 3 insertions, 3 deletions
diff --git a/src/event_exec.rs b/src/event_exec.rs index 69525ca..2b1b113 100644 --- a/src/event_exec.rs +++ b/src/event_exec.rs @@ -432,7 +432,7 @@ impl EventAction { /// Basic folders (/, /dev... $HOME) and mount points (even impossible to /// visit ones) are proposed. pub fn shortcut(tab: &mut Tab) -> Result<()> { - std::env::set_current_dir(tab.current_path())?; + std::env::set_current_dir(tab.current_directory_path())?; tab.shortcut.update_git_root(); tab.set_mode(Mode::Navigate(Navigate::Shortcut)); Ok(()) @@ -1561,7 +1561,7 @@ impl LeaveMode { let (username, hostname, remote_path) = (strings[0], strings[1], strings[2]); let current_path: &str = tab - .current_path() + .current_directory_path() .to_str() .context("couldn't parse the path")?; let first_arg = &format!("{username}@{hostname}:{remote_path}"); @@ -330,7 +330,7 @@ impl Tab { /// if the selected node is a directory, that's it. /// else, it is the parent of the selected node. /// In other modes, it's the current path of pathcontent. - pub fn current_path(&mut self) -> &path::Path { + pub fn current_directory_path(&mut self) -> &path::Path { match self.mode { Mode::Tree => { let path = &self.directory.tree.current_node.fileinfo.path; |