Skip to content

feat: full screen compact view, filtering, markdown rendering#10

Merged
dhth merged 8 commits intomainfrom
compact-view-not-limited-to-nine-items
Jul 23, 2024
Merged

feat: full screen compact view, filtering, markdown rendering#10
dhth merged 8 commits intomainfrom
compact-view-not-limited-to-nine-items

Conversation

@dhth
Copy link
Owner

@dhth dhth commented Jul 21, 2024

  • 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

@dhth dhth mentioned this pull request Jul 21, 2024
@dhth dhth changed the title feat: compact view not limited to 9 items feat: full screen compact view, filtering by prefixes Jul 22, 2024
dhth and others added 2 commits July 22, 2024 08:04
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})
Copy link
Owner Author

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.

@dhth dhth marked this pull request as ready for review July 22, 2024 21:38
@dhth dhth changed the title feat: full screen compact view, filtering by prefixes feat: full screen compact view, filtering, markdown rendering Jul 22, 2024
Copy link

@ccoVeille ccoVeille left a 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)

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
assert.Nil(t, err)
assert.NotNil(t, err)

Copy link
Owner Author

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.

Copy link

@ccoVeille ccoVeille Jul 23, 2024

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

My bad, I meant

assert.NoError(t, err)

@dhth

Copy link
Owner Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Aha! 👍

@dhth
Copy link
Owner Author

dhth commented Jul 23, 2024

@ccoVeille thanks for the several rounds of reviews :)

@dhth dhth merged commit 841d078 into main Jul 23, 2024
@dhth dhth deleted the compact-view-not-limited-to-nine-items branch July 23, 2024 17:38
@ccoVeille
Copy link

You are welcome

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants