Add default message when the list is empty#26
Draft
Copilot wants to merge 4 commits into
Draft
Conversation
Co-authored-by: anthonyraf <100955619+anthonyraf@users.noreply.github.com>
- Display friendly message instead of empty table when no tasks exist - Show specific message when filter matches no tasks - Includes helpful instruction to create new task - Maintains existing functionality for non-empty lists Co-authored-by: anthonyraf <100955619+anthonyraf@users.noreply.github.com>
Copilot
AI
changed the title
[WIP] Add default message when the list is empty
Add default message when the list is empty
Jul 30, 2025
Owner
|
@codex[agent] the picture isn't showing, fix that |
Updated the README image links to use raw GitHub URLs so the screenshots render reliably (59cf6be). |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Previously, when users ran
linetasker listwith no tasks or with filters that matched no tasks, the application would display an empty table with only headers, which provided a poor user experience.This PR adds friendly default messages to improve usability:
When no tasks exist:
When filters match no tasks:
The implementation is minimal and focused, modifying only the
list_tasks()method incore.pyto check if any tasks were added to the table before rendering. The changes maintain full backward compatibility - all existing functionality works exactly as before when tasks are present.Before vs After:

The new messages use Rich's color formatting to make them visually distinct and provide helpful guidance to users on how to create their first task.
Documentation: Updated
README.mdscreenshot links to use raw GitHub URLs so images reliably render.💬 Share your feedback on Copilot coding agent for the chance to win a $200 gift card! Click here to start the survey.