mirror of
https://github.com/taigrr/teaqlite.git
synced 2026-04-02 04:59:03 -07:00
feat(tests): add comprehensive test suite, update deps and Go 1.26.1
- Add 20+ tests for utility functions, SharedData, and Model - Tests cover: LoadTables, LoadTableData, UpdateCell, pagination, table inference, focus/blur, empty database, invalid indices - Update Go to 1.26.1, upgrade all dependencies - Replace custom Min/Max with Go builtin min/max - Format all files with goimports - Add staticcheck to CI workflow
This commit is contained in:
@@ -4,17 +4,17 @@ import "github.com/charmbracelet/bubbles/key"
|
||||
|
||||
// EditCellKeyMap defines keybindings for the edit cell view
|
||||
type EditCellKeyMap struct {
|
||||
Save key.Binding
|
||||
Cancel key.Binding
|
||||
CursorLeft key.Binding
|
||||
CursorRight key.Binding
|
||||
WordLeft key.Binding
|
||||
WordRight key.Binding
|
||||
LineStart key.Binding
|
||||
LineEnd key.Binding
|
||||
DeleteWord key.Binding
|
||||
DeleteChar key.Binding
|
||||
ToggleHelp key.Binding
|
||||
Save key.Binding
|
||||
Cancel key.Binding
|
||||
CursorLeft key.Binding
|
||||
CursorRight key.Binding
|
||||
WordLeft key.Binding
|
||||
WordRight key.Binding
|
||||
LineStart key.Binding
|
||||
LineEnd key.Binding
|
||||
DeleteWord key.Binding
|
||||
DeleteChar key.Binding
|
||||
ToggleHelp key.Binding
|
||||
}
|
||||
|
||||
// DefaultEditCellKeyMap returns the default keybindings for edit cell
|
||||
@@ -79,4 +79,4 @@ func (k EditCellKeyMap) FullHelp() [][]key.Binding {
|
||||
{k.CursorLeft, k.CursorRight, k.WordLeft, k.WordRight},
|
||||
{k.LineStart, k.LineEnd, k.DeleteWord, k.DeleteChar, k.ToggleHelp},
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user