feat: omit SQLite paths from sidebar labels
This commit is contained in:
+4
-7
@@ -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!(
|
||||
"{} · {}@{}:{}",
|
||||
|
||||
@@ -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.
|
||||
|
||||
Reference in New Issue
Block a user