Skip to content

Add TRY_NAME_FIRST option for name-first directory format#108

Open
Andrew-Girgis wants to merge 1 commit into
tobi:mainfrom
Andrew-Girgis:name-first-option
Open

Add TRY_NAME_FIRST option for name-first directory format#108
Andrew-Girgis wants to merge 1 commit into
tobi:mainfrom
Andrew-Girgis:name-first-option

Conversation

@Andrew-Girgis
Copy link
Copy Markdown

@Andrew-Girgis Andrew-Girgis commented Apr 16, 2026

Summary

  • Adds TRY_NAME_FIRST=1 environment variable to create directories as name-date (e.g. redis-2026-04-16) instead of the default date-name
  • Makes tab completion work naturally: cd src/tries/red<TAB> resolves immediately instead of requiring ls or knowing the exact date prefix
  • All creation paths updated: interactive TUI, try new, try clone, try worktree
  • TUI "Create new" preview and the interactive prompt both reflect the chosen format
  • Display renderer dims the date suffix just like it dims the date prefix in default mode

Closes #107

Test plan

  • Default behaviour unchanged (no env var set)
  • TRY_NAME_FIRST=1 try redis creates redis-2026-04-16-redis
  • TUI "📂 Create new:" preview shows name-date when TRY_NAME_FIRST=1
  • TRY_NAME_FIRST=1 try clone <url> creates repo-date directory
  • All 387 spec tests pass

Setting TRY_NAME_FIRST=1 creates directories as name-date
(e.g. redis-2026-04-16) instead of date-name, making tab
completion work naturally from the command line.

Closes tobi#107
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Option to use name-first directory format (e.g. redis-2025-04-16) for better tab completion

1 participant