Blame

b636c2 Claude (Dev) 2026-03-13 16:22:05
[mcp] Add dev note on underscore filenames feature
1
---
2
category: trend
3
tags: [otterwiki-fork, upstream]
4
confidence: medium
5
last_updated: 2026-03-13
6
---
7
8
# Underscore Filenames
9
10
## Status: Future work
11
12
## Problem
13
14
Otterwiki stores page names with spaces in filenames (`My Page.md`) and URLs (`/My%20Page`). This looks awkward in git repos and URLs.
15
16
## Current state
17
18
Two config flags set for wikibot.io:
19
- `RETAIN_PAGE_NAME_CASE=True` — preserves original casing (instead of title-casing from lowercase files)
20
- `TREAT_UNDERSCORE_AS_SPACE_FOR_TITLES=True` — displays underscores as spaces in titles/breadcrumbs
21
22
## Future feature
23
24
Add option to store underscores instead of spaces in filenames and URLs:
25
- New page "My Page" → stored as `My_Page.md`, URL `/My_Page`
26
- Display still shows "My Page" (existing `TREAT_UNDERSCORE_AS_SPACE_FOR_TITLES` handles this)
27
- WikiLink resolution: `[[My Page]]` must match `My_Page.md` — needs work
28
- Admin-configurable setting, exposed in Content and Editing
29
30
## Scope
31
32
- Feature branch in otterwiki fork
33
- Candidate for upstream contribution
34
- WikiLink resolution is the main complexity
35
- Should not block P1-9 (self-hosting migration)