Add line ending selector (#35392)

Partially addresses this issue #5294

Adds a selector between `LF` and `CRLF` for the buffer's line endings,
the checkmark denotes the currently selected line ending.

Selector
<img width="487" height="66" alt="image"
src="https://github.com/user-attachments/assets/13f2480f-4d2d-4afe-adf5-385aeb421393"
/>

Release Notes:

- Added line ending selector.

---------

Co-authored-by: Conrad Irwin <conrad.irwin@gmail.com>
This commit is contained in:
Matin Aniss
2025-09-05 09:52:57 -07:00
committed by GitHub
co-authored by Conrad Irwin
parent 638320b21e
commit b3405c3bd1
12 changed files with 376 additions and 1 deletions
+1
View File
@@ -620,6 +620,7 @@ pub fn main() {
terminal_view::init(cx);
journal::init(app_state.clone(), cx);
language_selector::init(cx);
line_ending_selector::init(cx);
toolchain_selector::init(cx);
theme_selector::init(cx);
settings_profile_selector::init(cx);
+1
View File
@@ -4480,6 +4480,7 @@ mod tests {
"keymap_editor",
"keystroke_input",
"language_selector",
"line_ending",
"lsp_tool",
"markdown",
"menu",