-
Notifications
You must be signed in to change notification settings - Fork 136
Description
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:
- A dropdown/toggle in the Start Tour dialog UI
- A VS Code setting like codetour.sortToursBy: "name" | "dateModified" | "dateCreated"
- 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.