Skip to content

Add a status line element that shows just the basename of the file - #5318

Merged
the-mikedavis merged 4 commits into
helix-editor:masterfrom
theteachr:add-filename-status-line-element
Dec 31, 2022
Merged

Add a status line element that shows just the basename of the file#5318
the-mikedavis merged 4 commits into
helix-editor:masterfrom
theteachr:add-filename-status-line-element

Conversation

@theteachr

@theteachr theteachr commented Dec 27, 2022

Copy link
Copy Markdown
Contributor

Makes the FileName status line element render just the basename of the open file. The existing variant that renders the relative path of the open file is renamed to FilePath (render functions are also renamed accordingly).

Configuration Snippets

[editor.statusline]
left = ["mode", "spinner", "file-name"]

image

[editor.statusline]
left = ["mode", "spinner", "file-path"]

image

Comment thread helix-term/src/ui/statusline.rs Outdated
@theteachr

Copy link
Copy Markdown
Contributor Author

Updated Configuration Snippet

[editor.statusline]
left = ["mode", "spinner", "file-base-name"]

@kirawi kirawi added A-gui Area: Helix gui improvements S-waiting-on-review Status: Awaiting review from a maintainer. labels Dec 28, 2022

@the-mikedavis the-mikedavis left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This looks good, it just needs a note added to the book for the new element here:

The following statusline elements can be configured:

Comment thread book/src/configuration.md Outdated
Co-authored-by: Michael Davis <mcarsondavis@gmail.com>
@the-mikedavis
the-mikedavis merged commit c9ed42c into helix-editor:master Dec 31, 2022
@theteachr
theteachr deleted the add-filename-status-line-element branch January 1, 2023 13:04
@theteachr theteachr mentioned this pull request Feb 1, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

A-gui Area: Helix gui improvements S-waiting-on-review Status: Awaiting review from a maintainer.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants