Repository navigation
Show a calendar while typing due: and t: dates in the new task entry - #185
Open
mbrettschneider wants to merge 3 commits into
Open
mbrettschneider wants to merge 3 commits into
mbrettschneider wants to merge 3 commits into
Conversation
Typing + or @ in the "Add new task" entry shows the projects or contexts used in the list; typing on narrows the list (case-insensitive). The part all matches share is filled in inline and accepted with Tab or Right. Closes JMoerman#168, partially addresses JMoerman#177. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Gtk.EntryCompletion's popup is a separate window placed with screen coordinates, so on Wayland it can open far away from the entry (seen with several monitors). A non-modal popover is part of the main window and points at the word being completed. Up/Down select a tag, Enter or Tab insert it, Escape closes the list. Without a selected tag, Enter still adds the task. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Typing "due:" or "t:" opens a calendar in a popover above the entry. It follows a fully typed date. Clicking a day inserts it; with the keyboard, Left/Right move a day, Up/Down a week, Page Up/Down a month, and Enter or Tab insert the date. Escape closes the calendar. Enter after a typed date that was not changed in the calendar still adds the task. Partially addresses JMoerman#177. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
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.
Builds on #184 (tag autocompletion) and reuses its popover approach, so this PR also contains #184's two commits. Only the last commit, "Show a calendar while typing due: and t: dates…", is new. Once #184 is merged, the diff shrinks to that commit.
Typing
due:ort:in the "Add new task" entry opens a calendar in a popover above the entry:due:2026-12-24)due:2026-11-22; the month and year arrows only change what is shownt:is offered as well because the parser already reads threshold dates, even though tasks are not hidden until their threshold date at the moment.The code is a new
DateCompletionclass next toTagCompletion, hooked intoTaskListWidgetthe same way.Partially addresses #177 (with #184, only the priority picker from that issue is left).
🤖 Generated with Claude Code