diff options
| author | Ogulcan Celik <ogulcancelik@gmail.com> | 2026-05-29 20:38:55 +0300 |
|---|---|---|
| committer | Ogulcan Celik <ogulcancelik@gmail.com> | 2026-05-29 20:38:55 +0300 |
| commit | 9e302984ccb13a65e3e504fa7692b223f546ff84 (patch) | |
| tree | 52808a27bd82c05f55117ad129137fe3ef46a8cb /src/terminal/runtime.rs | |
| parent | 77242943ba65a80cbc1180258dd64f06635233f9 (diff) | |
feat: expose foreground cwd in pane info
refs #345
Diffstat (limited to 'src/terminal/runtime.rs')
| -rw-r--r-- | src/terminal/runtime.rs | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/terminal/runtime.rs b/src/terminal/runtime.rs index 636972a1..b1a25ee9 100644 --- a/src/terminal/runtime.rs +++ b/src/terminal/runtime.rs @@ -373,6 +373,10 @@ impl TerminalRuntime { self.0.cwd() } + pub fn foreground_cwd(&self) -> Option<std::path::PathBuf> { + self.0.foreground_cwd() + } + pub(crate) fn current_size(&self) -> (u16, u16) { self.0.current_size() } |
