Yukaii / film-scheduler

映画の悪魔:金馬影展電影排程小工具,怎麼還在弄行事曆啊
https://film-scheduler.yukai.dev
MIT License
5 stars 0 forks source link

Search syntax, 類似 GitHub issues 那種 #15

Open Yukaii opened 1 week ago

Yukaii commented 1 week ago

Feature Request: Advanced Film Search Syntax

To enhance user experience and streamline the process of finding specific films, a GitHub-like search syntax for filtering films by attributes such as date, time, category, title, and director is proposed. This feature would provide users with flexible and efficient ways to locate films in the database using targeted keywords and operators.

Proposed Search Syntax

  1. Date Filters:

    • date:YYYY-MM-DD - Filter films by exact date.
    • date>YYYY-MM-DD or date<YYYY-MM-DD - Specify date ranges.
    • Example: date>2023-11-01 finds films scheduled after November 1, 2023.
  2. Time Filters:

    • time:HH:mm - Match films showing at a specific time.
    • time>HH:mm or time<HH:mm - Filter by time range.
    • Example: time<18:00 shows all films starting before 6:00 PM.
  3. Category Filter:

    • category:CategoryName - Filter by film category.
    • Example: category:Documentary finds all documentaries.
  4. Title & Director Filters:

    • title:"Film Title" - Search by exact title.
    • title:keyword - Search by keywords within the title.
    • director:"Director Name" or director:keyword - Filter by director’s name or keyword.
  5. Multi-Criteria Search:

    • Combine multiple criteria for precise results.
    • Example: date:2023-11-15 time>18:00 category:Drama lists all dramas on November 15th, 2023, starting after 6:00 PM.

Additional Notes

Example Queries

This advanced search functionality would provide a powerful, user-friendly way for users to manage film listings, especially useful during film festivals with large schedules.

Yukaii commented 1 day ago

https://ui.shadcn.com/docs/components/combobox