Skip to content

feat: Add fuzzy reference resolution for documents and collections #10

@gnapse

Description

@gnapse

Summary

Allow users to reference documents and collections by partial title instead of requiring full URL IDs.

Details

Port the fuzzy reference resolution pattern from todoist-cli (src/lib/refs.ts):

  • Accept multiple formats: exact ID, exact name match (case-insensitive), partial match
  • If multiple matches found, error with suggestions
  • Create src/lib/refs.ts with resolveDocumentRef() and resolveCollectionRef() functions

Example

# Instead of:
outline document get https://app.getoutline.com/doc/abc123

# Allow:
outline document get "User Guide"
outline document get "Guide"  # works if only one match

Effort

2-3 days

Reference

Based on todoist-cli pattern in src/lib/refs.ts

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions