Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Remove square bracket uses in editor tab rendering #100

Merged
merged 1 commit into from
Jan 12, 2025
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 1 addition & 2 deletions tui/src/views/body/notebook/editor.rs
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ pub fn draw(frame: &mut Frame, area: Rect, context: &mut Context) {
context.notebook.editor_height = area.height - 2;

let (title, breadcrumb) = if let Some(tab_index) = context.notebook.tab_index {
let mut title = vec!["[".into()];
let mut title = vec![" ".into()];
for (i, tab) in context.notebook.tabs.iter().enumerate() {
let name = tab.note.name.clone();
let name = if i == tab_index {
Expand All @@ -33,7 +33,6 @@ pub fn draw(frame: &mut Frame, area: Rect, context: &mut Context) {
}
title.push(name);
}
title.push("]".into());

let title = Line::from(title);
let breadcrumb = Span::raw(format!(
Expand Down
Loading