aboutsummaryrefslogtreecommitdiffstats
path: root/src/tmux.rs
diff options
context:
space:
mode:
authorToby Vincent <tobyv13@gmail.com>2023-05-08 16:49:51 -0500
committerToby Vincent <tobyv13@gmail.com>2023-05-08 16:49:51 -0500
commitbf5d191c09e3544d41dcd46318c070c74ce91a12 (patch)
tree4696c980ada6ae22e39f0ce0d08e9070f0288fc3 /src/tmux.rs
parented67fa7a39ca5f4c77377a6ada9d1900b1dbfd90 (diff)
fix: replace exclude-attached with exclude-cwd
Diffstat (limited to 'src/tmux.rs')
-rw-r--r--src/tmux.rs15
1 files changed, 0 insertions, 15 deletions
diff --git a/src/tmux.rs b/src/tmux.rs
index 6993c2c..559242b 100644
--- a/src/tmux.rs
+++ b/src/tmux.rs
@@ -24,21 +24,6 @@ impl Tmux {
.collect())
}
- pub fn attached() -> Result<PathBuf, Error> {
- let stdout = Command::new("tmux")
- .arg("display")
- .arg("-p")
- .arg("#{session_path}")
- .output()?
- .stdout;
-
- std::str::from_utf8(&stdout)?
- .lines()
- .map(Into::into)
- .last()
- .ok_or(Error::NotFound)
- }
-
pub fn get_session(&self, path_buf: PathBuf) -> Result<Project, Error> {
let mut filter = OsString::from("#{==:#{session_path},");
filter.push(path_buf.as_os_str());