Skip to content

Configuration

Open Settings → Chrono Sort in Obsidian to customize sorting behavior. All changes apply immediately to the File Explorer.

Default Sort Order

Choose the default chronological direction used for all matched folders unless overridden by a folder rule:

  • Ascending (oldest first) (default): Jan → Dec, 2024 → 2026, 2026-12-01 → 2026-12-03
  • Descending (newest first): Dec → Jan, 2026 → 2024, 2026-12-03 → 2026-12-01

Period Note Placement

Controls where coarser periodic notes (week, month, quarter, year) sit relative to daily notes from the same time span:

  • Beginning of period (default): Anchors period notes to the start of their calendar span (e.g., Monday 00:00 for ISO weeks, the 1st of the month for months).
  • End of period: Anchors period notes to the end of their calendar span (e.g., Sunday 23:59 for ISO weeks, the last day of the month for months).

Example: Journal/2026/Dec/

Given files 2026-12-01.md, 2026-12-02.md, 2026-12-03.md, and 2026-W49.md (ISO week 49 spans Mon Nov 30 – Sun Dec 6, 2026):

Sort Order Period Placement Resulting Order
Ascending Beginning of period 2026-W49, 2026-12-01, 2026-12-02, 2026-12-03
Ascending End of period 2026-12-01, 2026-12-02, 2026-12-03, 2026-W49
Descending Beginning of period 2026-12-03, 2026-12-02, 2026-12-01, 2026-W49
Descending End of period 2026-W49, 2026-12-03, 2026-12-02, 2026-12-01

When two notes share the exact same boundary instant (for example 2026-12 and 2026-12-01 at period start, or 2026-W49 and 2026-12-06 at period end), coarser periods sort cleanly before finer periods at the start, and after finer periods at the end.

Date Locale

  • Auto (Obsidian language) (default): Reads Obsidian's active moment.locale().
  • Specific locale: Select any of the 140+ locales bundled in Obsidian's Moment.js (such as fr, de, es, ru, pl, ja, zh-cn, ko, ar, pt-br).
  • English month names and abbreviations are always layered in as a fallback.

Include Folders

When the Include folders list is empty, Chrono Sort applies automatically to every folder in your vault using the global default settings.

Once you add one or more folder rules, Chrono Sort restricts sorting to matching folders only. Rules appear in a compact summary list—similar to Obsidian's Installed plugins view—where each row displays the folder pattern, a summary of its active options, an Edit button, a Remove button, and an Enable/Disable toggle. Clicking Add folder rule or the Edit icon opens a modal to configure:

  • Folder pattern: Literal path, wildcard, or date-token pattern
  • Sort order: Use default, Ascending, or Descending
  • Period note placement: Use default, Beginning of period, or End of period
  • Include subfolders: Recursively apply the rule to nested subfolders
  • Enabled: Temporarily pause a rule without deleting it

Pattern Syntax

Pattern Matches
Journal Folder Journal (and descendants if Include subfolders is enabled)
/ or ** Vault root (and descendants when recursive / **)
Meetings/[MMM]/... Month subfolders under Meetings/ (e.g., Meetings/Jan, Meetings/Dec) and any nested folders inside them
Journal/[YYYY]/... Year subfolders under Journal/ (e.g., Journal/2026) and any nested folders inside them
Journal/[YYYY]/[MMM] Month folders inside year folders (e.g., Journal/2026/Dec)
Journal/[MMM]/[YYYY-MM-DD] Either a daily folder Journal/Dec/2026-12-03 or a month folder Journal/Dec containing daily notes matching [YYYY-MM-DD]
Archive/*/[YYYY]/** Any single subfolder under Archive/, then a year folder, plus all descendants

Supported Date Tokens

  • Year: [YYYY], [YY], [YEAR]
  • Quarter: [Q], [Qo], [QUARTER], [YYYY-Q]
  • Month: [MMMM], [MMM], [MM], [M], [MONTH], [YYYY-MM]
  • Week: [W], [WW], [WEEK], [YYYY-W], [YYYY-WW], [YYYY-Www]
  • Day: [YYYY-MM-DD], [YYYY.MM.DD], [YYYY_MM_DD], [YYYYMMDD], [DATE], [DAY]

Rule Precedence

When multiple enabled rules match the same folder:

  1. Direct exact matches take precedence over recursive descendant matches, which take precedence over child-token matches.
  2. Within the same match tier, more specific segments win: literal segment (3) > date token (2) > wildcard * (1).
  3. If two rules tie on both tier and specificity, the later rule in the list wins.