feat: show connection info from sidebar relations

This commit is contained in:
Valdemar Lorenzen
2026-10-19 16:03:56 +02:00
parent bef31742b7
commit 522d9af0a7
3 changed files with 4 additions and 2 deletions
+2 -1
View File
@@ -202,6 +202,7 @@ pub fn run(terminal: &mut DefaultTerminal, initial: Option<Database>) -> Result<
.selected()
.and_then(|index| match entries.get(index) {
Some(ExplorerEntry::Database(Some(index))) => Some(*index),
Some(ExplorerEntry::Relation(_)) => active,
_ => None,
});
}
@@ -328,7 +329,7 @@ fn draw_help(frame: &mut Frame, screen: Rect, offset: &mut u16) {
Home/End, g/G First / last item\n\
Left/Right, h/l Collapse/expand explorer or select cells\n\
Enter Connect/expand database or open relation\n\
i Database info on saved database entries\n\
i Saved connection info on database or child\n\
s Toggle rows / column schema\n\
n/p, PgDn/PgUp Next / previous 100-row relation page\n\
r Refresh relations and active relation\n\n\
+1
View File
@@ -39,6 +39,7 @@ Navigation:
n/p, PgDn/Up Next / previous 100-row relation page
c Add a configured database in a floating window
i Show configured database info (Esc/Enter closes; passwords omitted)
Works on a saved database entry or any of its table/view children.
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.