Skip to content
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

Merged
merged 8 commits into from
Jul 23, 2024

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 🤞

cmd/guide.go Outdated Show resolved Hide resolved
internal/types/types.go Outdated Show resolved Hide resolved
cmd/guide.go Outdated Show resolved Hide resolved
cmd/guide.go Outdated Show resolved Hide resolved
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! 👍

cmd/guide.go Outdated Show resolved Hide resolved
cmd/guide.go Outdated Show resolved Hide resolved
cmd/guide.go Outdated Show resolved Hide resolved
cmd/guide.go Outdated Show resolved Hide resolved
@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
2 checks passed
@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.

None yet

2 participants