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:
parent
12909c89ee
commit
5d95d44a97
23 changed files with 730 additions and 28 deletions
|
|
@ -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()
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue