Show cursor position in status bar (#3464)

Passes the compiler so it must work!

(though it doesn't show up until we fix pane focus)

Release Notes:

- N/A
This commit is contained in:
Conrad Irwin
2023-11-30 16:40:42 -07:00
committed by GitHub
4 changed files with 86 additions and 95 deletions
+8 -17
View File
@@ -52,22 +52,13 @@ impl Render for StatusBar {
h_stack()
.gap_4()
.child(
h_stack()
.gap_1()
.child(
// TODO: Line / column numbers
div()
.border()
.border_color(gpui::red())
.child(Button::new("status_line_column_numbers", "15:22")),
)
.child(
// TODO: Language picker
div()
.border()
.border_color(gpui::red())
.child(Button::new("status_buffer_language", "Rust")),
),
h_stack().gap_1().child(
// TODO: Language picker
div()
.border()
.border_color(gpui::red())
.child(Button::new("status_buffer_language", "Rust")),
),
)
.child(
h_stack()
@@ -133,7 +124,7 @@ impl StatusBar {
h_stack()
.items_center()
.gap_2()
.children(self.right_items.iter().map(|item| item.to_any()))
.children(self.right_items.iter().rev().map(|item| item.to_any()))
}
}