feat: omit SQLite paths from sidebar labels
This commit is contained in:
@@ -17,7 +17,7 @@
|
|||||||
- [x] put the help text inside it's own pane so it fits the design more cleanly.
|
- [x] put the help text inside it's own pane so it fits the design more cleanly.
|
||||||
- [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
|
||||||
- [ ] 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)
|
- [ ] 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
-5
@@ -684,13 +684,10 @@ impl Form {
|
|||||||
fn label(&self) -> String {
|
fn label(&self) -> String {
|
||||||
crate::db::display_text(&if self.provider == 1 {
|
crate::db::display_text(&if self.provider == 1 {
|
||||||
let path = Path::new(&self.path.value);
|
let path = Path::new(&self.path.value);
|
||||||
format!(
|
|
||||||
"{} · {}",
|
|
||||||
path.file_name()
|
path.file_name()
|
||||||
.unwrap_or(path.as_os_str())
|
.unwrap_or(path.as_os_str())
|
||||||
.to_string_lossy(),
|
.to_string_lossy()
|
||||||
self.path.value
|
.into_owned()
|
||||||
)
|
|
||||||
} else {
|
} else {
|
||||||
format!(
|
format!(
|
||||||
"{} · {}@{}:{}",
|
"{} · {}@{}:{}",
|
||||||
|
|||||||
@@ -41,6 +41,7 @@ Navigation:
|
|||||||
i Show configured database info (Esc/Enter closes; passwords omitted)
|
i Show configured database info (Esc/Enter closes; passwords omitted)
|
||||||
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.
|
||||||
Enter on the connected database collapses/expands it without reconnecting.
|
Enter on the connected database collapses/expands it without reconnecting.
|
||||||
Keybindings float above the workspace; Up/Down/jk scroll, Home/End/g/G jump.
|
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.
|
Query Insert mode and connection/password fields keep ? as literal text.
|
||||||
|
|||||||
Reference in New Issue
Block a user