Skip to content

Add option to sort tours by date in Start Tour dialog #317

@jonathan-oron

Description

@jonathan-oron

Description:

Feature Request

Problem

When opening the "Start Tour" dialog, tours are currently sorted alphabetically by name. In projects with many tours that document changes over time, it's difficult to find the most recent tours without using naming conventions (like numeric prefixes) to force sort order.

Proposed Solution

Add a sorting option in the Start Tour dialog that allows users to sort tours by:

  • Name (current behavior, alphabetical)
  • Date modified (newest first)
  • Date created (newest first)

This could be implemented as:

  1. A dropdown/toggle in the Start Tour dialog UI
  2. A VS Code setting like codetour.sortToursBy: "name" | "dateModified" | "dateCreated"
  3. Both options combined (setting for default + UI toggle to change on the fly)

Use Case

I use CodeTours to document code changes alongside commits. Each tour documents a feature or fix, creating a historical record of changes. Being able to sort by date would let me quickly find and review the most recent tours without relying on naming hacks like prefixing tour titles with descending numbers (e.g., "997 feat: ...", "996 fix: ...").

Additional Context

The .tour files are stored on disk and have filesystem timestamps that could be used for sorting. Alternatively, an optional createdAt or date field could be added to the tour schema.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions