feat: omit SQLite paths from sidebar labels

This commit is contained in:
Valdemar Lorenzen
2026-10-19 16:00:22 +02:00
parent 39bf6a4a99
commit bef31742b7
3 changed files with 6 additions and 8 deletions
+4 -7
View File
@@ -684,13 +684,10 @@ impl Form {
fn label(&self) -> String {
crate::db::display_text(&if self.provider == 1 {
let path = Path::new(&self.path.value);
format!(
"{} · {}",
path.file_name()
.unwrap_or(path.as_os_str())
.to_string_lossy(),
self.path.value
)
path.file_name()
.unwrap_or(path.as_os_str())
.to_string_lossy()
.into_owned()
} else {
format!(
"{} · {}@{}:{}",
+1
View File
@@ -41,6 +41,7 @@ Navigation:
i Show configured database info (Esc/Enter closes; passwords omitted)
r Refresh relations and the active relation
Connected databases have a trailing * and show their tables/views beneath them.
SQLite sidebar entries show only the filename; the info window shows the full path.
Enter on the connected database collapses/expands it without reconnecting.
Keybindings float above the workspace; Up/Down/jk scroll, Home/End/g/G jump.
Query Insert mode and connection/password fields keep ? as literal text.