-
Notifications
You must be signed in to change notification settings - Fork 2
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
feat: full screen compact view, filtering, markdown rendering #10
Conversation
dhth
commented
Jul 21, 2024
•
edited
Loading
edited
- Changes "Compact" list density mode to not be limited to 9 items per page.
- Adds filtering capability to task lists (by manually typing search query)
- Adds a means for quick filtering (via a list)
- Adds markdown rendering via glamour
Potential follow ups --- - Markdown theme customisation - Fallback rendering - Configurable word wrapping
taskList.FilterInput.SetValue(string(runes[:len(runes)-1])) | ||
} | ||
|
||
taskList, tlCmd = taskList.Update(tea.KeyMsg{Type: -1, Runes: []int32{47}, Alt: false, Paste: false}) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
TODO: Filtering this list programmatically by manually updating the list model definitely feels like a hack. Maybe this can be done better.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM 🤞
func TestGetContext(t *testing.T) { | ||
for _, entry := range guideEntries { | ||
got, err := getContext(entry.summary) | ||
assert.Nil(t, err) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
assert.Nil(t, err) | |
assert.NotNil(t, err) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
err
needs to be nil
.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Aha! 👍
@ccoVeille thanks for the several rounds of reviews :) |
You are welcome |