summaryrefslogtreecommitdiff
path: root/helix-view/src/editor.rs
diff options
context:
space:
mode:
authorNick2022-12-31 14:18:14 +0000
committerGitHub2022-12-31 14:18:14 +0000
commitc9ed42cdec95b67b0d0ed15218daff37358ca86f (patch)
tree99fd7a7233f24cdb80a855f670cef2f297a8fbcf /helix-view/src/editor.rs
parent63dcaae1b9083396fb3faaef9eaa2421f7e48fb9 (diff)
Add a status line element that shows just the basename of the file (#5318)
Diffstat (limited to 'helix-view/src/editor.rs')
-rw-r--r--helix-view/src/editor.rs5
1 files changed, 4 insertions, 1 deletions
diff --git a/helix-view/src/editor.rs b/helix-view/src/editor.rs
index c13a6673..3521077e 100644
--- a/helix-view/src/editor.rs
+++ b/helix-view/src/editor.rs
@@ -314,7 +314,10 @@ pub enum StatusLineElement {
/// The LSP activity spinner
Spinner,
- /// The file nane/path, including a dirty flag if it's unsaved
+ /// The base file name, including a dirty flag if it's unsaved
+ FileBaseName,
+
+ /// The relative file path, including a dirty flag if it's unsaved
FileName,
/// The file encoding