You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
A new ainteresting command has been added to omnifocus.py for deep integration with Alfred workflows. This command formats "interesting" tasks into the Alfred Script Filter JSON format, enriching the output with icons for flagged (🚩) or web-linked (🌐) tasks, a detailed subtitle with project and tag information, and enabling Quick Look for tasks with URLs. This allows for a richer, more interactive experience when viewing OmniFocus tasks within Alfred.
Added the ainteresting command to output tasks in Alfred's Script Filter JSON format.
Enriched Alfred item titles with icons for flagged tasks (🚩) and tasks with URLs (🌐).
Created detailed subtitles including project, tags, and due/defer dates.
Enabled Alfred's Quick Look feature for tasks containing a URL.
omnifocus.py
omnifocus.py: +67, -0, ~67
TL;DR: Add a new ainteresting command to output tasks in a JSON format compatible with Alfred workflows, enabling rich integration.
Integrate with Alfred by adding the ainteresting command, which formats "interesting" tasks into the Alfred Script Filter JSON format.
Enhance task display within Alfred by adding icons to the title (🚩 for flagged, 🌐 for URLs) and creating a detailed subtitle with project, tags, and dates.
Enable Alfred's Quick Look feature for tasks containing a URL by setting the quicklookurl property.
Allow subsequent Alfred actions to operate on a selected task by passing the task's index number as the arg for each item.
Added new ainteresting command to the CLI tool for Alfred integration, enabling JSON output of interesting tasks sorted by recent creation date, with enhanced details like icons, subtitles (project/tag/due info), metadata, and quicklook URLs for better workflow usability (omnifocus.py).
Integrated Alfred support via new ainteresting command that fetches, sorts (by creation date descending), and formats tasks as JSON items.
Enhanced task item details with icons for flags/URLs, subtitles including project/tag/due date info, and copyable large text for quick access.
omnifocus.py
omnifocus.py: +65, -0, ~65
TL;DR: Add Alfred JSON output for interesting tasks to enable workflow integration.
Integrate with Alfred by adding ainteresting command that fetches, sorts, and formats interesting tasks as JSON items with titles, subtitles, metadata, and quicklook URLs.
Sort tasks by creation date descending to prioritize recent ones in Alfred results.
Enhance item details with icons for flags/URLs, project/tag/due date info in subtitles, and copyable large text for quick access.
Added a new command to omnifocus.py to output interesting tasks in Alfred JSON format, enhancing integration with Alfred workflows. This includes sorting tasks by creation date, including task metadata, and using icons for flagged tasks and tasks with URLs.
The new command enables quicklook functionality by including URLs in the output when available.
Added command to output interesting tasks in Alfred JSON format
Sorted tasks by creation date in descending order
Included task metadata such as project, tags, due date, and creation date
Used icons to visually distinguish between flagged tasks and tasks with URLs
Enabled quicklook functionality by including URLs in the output when available
Report
omnifocus.py
/Users/idvorkin/gits/omnifocus_cli/blob/cb0e349e2fd30ff664986a08cc975b28a46d9f76/omnifocus.py: +71, -0, ~0
TL;DR: Add command to output interesting tasks in Alfred JSON format for workflow integration
Enhance integration with Alfred by adding a command to output interesting tasks in Alfred JSON format
Sort tasks by creation date in descending order to prioritize recent tasks
Include task metadata such as project, tags, due date, and creation date in the output
Use icons to visually distinguish between flagged tasks and tasks with URLs
Enable quicklook functionality by including URLs in the output when available
omnifocus.py
/Users/idvorkin/gits/omnifocus_cli/blob/cb0e349e2fd30ff664986a08cc975b28a46d9f76/omnifocus.py: +71, -0, ~0
TL;DR: Add command to output interesting tasks in Alfred JSON format for workflow integration
Enhance integration with Alfred by adding a command to output interesting tasks in Alfred JSON format
Sort tasks by creation date in descending order to prioritize recent tasks
Include task metadata such as project, tags, due date, and creation date in the output
Use icons to visually distinguish between flagged tasks and tasks with URLs
Enable quicklook functionality by including URLs in the output when available
Added ainteresting CLI command to omnifocus.py for exporting “interesting” tasks in Alfred‑compatible JSON format, enabling direct use in Alfred workflows.
The new command mirrors the existing interesting command’s task selection but adds rich metadata (project, tags, due/creation dates, source, icons, Quick Look URL) and formats each entry for Alfred’s JSON schema.
Tasks are sorted by creation date (newest first), and the output is pretty‑printed JSON printed to stdout, ready for consumption by an Alfred script filter.
Implemented sorting by creation date and pretty‑printed JSON serialization.
omnifocus.py
Change Summary
New CLI command: ainteresting
Retrieves the same set of “interesting” tasks as the existing interesting command.
Formats each task as an Alfred item JSON object, including:
uid – unique identifier.
arg – task URL for opening in OmniFocus.
autocomplete – task name for quick typing.
match – composite string for Alfred’s fuzzy matching.
subtitle – combines project, tags, due date, creation date, and source.
title – includes flag and URL icons plus the task name.
quicklookurl – points to any extracted URL within the task for instant preview.
text – copy and large‑type fields for further Alfred actions.
Sorting: Tasks are ordered by creation date (newest first) to surface recent items.
Output: The list of items is serialized to pretty‑printed JSON and printed to stdout, making it directly usable by an Alfred script filter.
Implementation Highlights
Added a new function handling the ainteresting sub‑command, reusing the existing task‑selection logic.
Constructed a dictionary per task adhering to Alfred’s JSON schema, populating all required and optional fields.
Utilized Python’s json.dumps(..., indent=2, ensure_ascii=False) for clean, readable output.
Integrated Quick Look support by detecting URLs in task notes and attaching them via the quicklookurl field.
These changes expand the CLI tool’s capabilities, allowing users to pipe “interesting” tasks straight into Alfred for rapid access, preview, and further automation.