Added the rel-picker which can quickly goto related tables

* New rel-picker that can be opened using Shift+O and allows for quickly going to related tables.
This commit is contained in:
Leon Mika 2024-03-03 09:20:28 +11:00 committed by GitHub
parent 12909c89ee
commit 5d95d44a97
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
23 changed files with 730 additions and 28 deletions

View file

@ -10,7 +10,6 @@ import (
"github.com/lmika/dynamo-browse/internal/dynamo-browse/ui/keybindings"
"github.com/lmika/dynamo-browse/internal/dynamo-browse/ui/teamodels/layout"
table "github.com/lmika/go-bubble-table"
"log"
"strings"
)
@ -49,7 +48,6 @@ func (m *colListModel) Update(msg tea.Msg) (tea.Model, tea.Cmd) {
switch msg := msg.(type) {
case controllers.SetSelectedColumnInColSelector:
// HACK: this needs to work for all cases
log.Printf("%d == %d?", int(msg), m.table.Cursor()+1)
if int(msg) == m.table.Cursor()+1 {
m.table.GoDown()
}