feat: picker mapping for moving up and down #157
No reviewers
Labels
No labels
bug
ci
documentation
duplicate
enhancement
feature
good first issue
help wanted
invalid
performance
priority
P0
priority
P1
priority
P2
question
refactor
size
L
size
M
size
S
size
XL
size
XS
tests
trivial
wontfix
No milestone
No project
No assignees
2 participants
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
noe.trevino/paso!157
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "fix/jk-scroll-task-picker"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Checklist
CONTRIBUTING.mdgo test ./... -race) locallygofmt -w .andgolangci-lint run ./...respectivelyREADME.mdif applicableSummary
@ -79,2 +81,4 @@type PickerKeys struct {DeleteLabel string `yaml:"delete_label"`MoveUp string `yaml:"move_up"`MoveDown string `yaml:"move_down"`This fix (using dedicated
ctrl+-modified picker keys instead of the globalNavigationkeys so bare letters remain available as filter text) is only applied to the parent/child pickers inupdate_pickers.go.updateLabelPickeris also a filter-as-you-type picker (it has a "type to filter/search" default case) but still switches onkm.Navigation.MoveUp/km.Navigation.MoveDown(defaults"k"/"j"), so typing "k" or "j" to filter labels will move the cursor instead of being added to the filter text — the exact bug this PR fixes elsewhere is left unfixed here.No test covers these new
Pickers.MoveUp/Pickers.MoveDowndefaults or theirapplyDefaultsFrommerge behavior.internal/config/config_test.goasserts default/merge behavior forPickers.DeleteLabel(added alongside the same struct) but wasn't extended for these new fields, andpickers_interactive_test.gohas no case exercisingctrl+j/ctrl+knavigation or verifying that "j"/"k" now reach the filter text in the parent/child pickers.@ -79,2 +81,4 @@type PickerKeys struct {DeleteLabel string `yaml:"delete_label"`MoveUp string `yaml:"move_up"`MoveDown string `yaml:"move_down"`Good catch! To implement
Ignore
Looks good to me
@ -76,8 +76,12 @@ type FormKeys struct {}// PickerKeys defines keybindings used within picker overlays.// MoveUp/MoveDown use ctrl+ modifiers because filter-as-you-type pickers@TheNoeTrevino