feat: show connection info from sidebar relations
This commit is contained in:
@@ -18,6 +18,6 @@
|
|||||||
- [x] move the table name in the results pane from the bottom-left border title to top-right border title instead
|
- [x] move the table name in the results pane from the bottom-left border title to top-right border title instead
|
||||||
- [x] remove the bottom navigation help panel and have a keybinding overview appear in a floating window when pressing `?` in normal mode
|
- [x] remove the bottom navigation help panel and have a keybinding overview appear in a floating window when pressing `?` in normal mode
|
||||||
- [x] remove the path from the database entry in the sidebar (can be viewed in the info panel)
|
- [x] remove the path from the database entry in the sidebar (can be viewed in the info panel)
|
||||||
- [ ] info panel should also pop up when pressing `i` on a child entry of that database entry in the sidebar (instead of only when the parent/database connection is hovered)
|
- [x] info panel should also pop up when pressing `i` on a child entry of that database entry in the sidebar (instead of only when the parent/database connection is hovered)
|
||||||
- [ ] `line:col` indicator in the bottom-right status bar should never disappear but instead display "N/A" in that case.
|
- [ ] `line:col` indicator in the bottom-right status bar should never disappear but instead display "N/A" in that case.
|
||||||
- [ ] database type indicator should be moved down just left of the "line:col" indicator like in the attached image
|
- [ ] database type indicator should be moved down just left of the "line:col" indicator like in the attached image
|
||||||
+2
-1
@@ -202,6 +202,7 @@ pub fn run(terminal: &mut DefaultTerminal, initial: Option<Database>) -> Result<
|
|||||||
.selected()
|
.selected()
|
||||||
.and_then(|index| match entries.get(index) {
|
.and_then(|index| match entries.get(index) {
|
||||||
Some(ExplorerEntry::Database(Some(index))) => Some(*index),
|
Some(ExplorerEntry::Database(Some(index))) => Some(*index),
|
||||||
|
Some(ExplorerEntry::Relation(_)) => active,
|
||||||
_ => None,
|
_ => None,
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
@@ -328,7 +329,7 @@ fn draw_help(frame: &mut Frame, screen: Rect, offset: &mut u16) {
|
|||||||
Home/End, g/G First / last item\n\
|
Home/End, g/G First / last item\n\
|
||||||
Left/Right, h/l Collapse/expand explorer or select cells\n\
|
Left/Right, h/l Collapse/expand explorer or select cells\n\
|
||||||
Enter Connect/expand database or open relation\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\
|
s Toggle rows / column schema\n\
|
||||||
n/p, PgDn/PgUp Next / previous 100-row relation page\n\
|
n/p, PgDn/PgUp Next / previous 100-row relation page\n\
|
||||||
r Refresh relations and active relation\n\n\
|
r Refresh relations and active relation\n\n\
|
||||||
|
|||||||
@@ -39,6 +39,7 @@ Navigation:
|
|||||||
n/p, PgDn/Up Next / previous 100-row relation page
|
n/p, PgDn/Up Next / previous 100-row relation page
|
||||||
c Add a configured database in a floating window
|
c Add a configured database in a floating window
|
||||||
i Show configured database info (Esc/Enter closes; passwords omitted)
|
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
|
r Refresh relations and the active relation
|
||||||
Connected databases have a trailing * and show their tables/views beneath them.
|
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.
|
SQLite sidebar entries show only the filename; the info window shows the full path.
|
||||||
|
|||||||
Reference in New Issue
Block a user