Repository navigation
Autocomplete +projects and @contexts in the new task entry - #184
Open
mbrettschneider wants to merge 2 commits into
Open
mbrettschneider wants to merge 2 commits into
mbrettschneider wants to merge 2 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>
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.
Typing
+or@in the "Add new task" entry now suggests the projects or contexts already used in the list:+lists all projects,@all contexts+proshows+project-drand+Prowler(case-insensitive)+pro→+Prowler)Suggestions are shown in a non-modal popover above the entry rather than through
Gtk.EntryCompletion. Its popup is a separate window placed with screen coordinates, which on Wayland can open far away from the entry (seen with several monitors).The tag list is rebuilt lazily from the current list's tasks whenever they change.
Limitations: only the last word is completed (editing a tag in the middle of the text gets no suggestions), and suggestions come from open tasks only, not from the done list.
Closes #168. Partially addresses #177 (priority and due-date pickers are not included, happy to add them in a follow-up if you'd like that).
🤖 Generated with Claude Code