Generate filenames without diacritics when using “Rename the file to match the title”
Generate filenames without diacritics when using “Rename the file to match the title”
Problem
Tolaria provides the option:
Rename the file to match the title
This is useful because the Markdown filename automatically follows the note title.
However, when the title contains characters with diacritics, the generated filename also contains those characters.
This is common and necessary for languages such as Czech, Slovak, Polish, German, French, etc.
Example
Title:
Projektový manažerCurrent filename:
projektový-manažer.mdFor the title itself, preserving diacritics is correct and desirable.
For the filename, however, I would prefer an ASCII-compatible version without diacritics:
projektovy-manazer.mdWhy this is useful
Using filenames without diacritics improves compatibility when Markdown files are used outside Tolaria, for example with:
- Git and GitHub
- shell scripts
- command-line tools
- Docker/Linux environments
- synchronization tools
- external Markdown processors
- automation and AI agents
- URLs and file links
- systems with different filesystem or character encoding conventions
The note title should keep the original language and diacritics, while the filename can use a normalized ASCII representation.
Desired behavior
When Rename the file to match the title is enabled, Tolaria should optionally normalize the filename by removing/transliterating diacritics.
Example:
Title: Projektový manažer
Filename: projektovy-manazer.mdOther examples:
Český jazyk
→ cesky-jazyk.md
Řízení projektů
→ rizeni-projektu.md
Příprava na pracovní pohovor
→ priprava-na-pracovni-pohovor.mdThe Markdown title itself should remain unchanged.
Suggested implementation
Add an option such as:
[x] Rename the file to match the title
[x] Remove diacritics from filenameor:
Filename format:
( ) Keep original characters
(x) ASCII / remove diacriticsThe transformation could follow this logic:
Projektový manažer
↓
Projektovy manazer
↓
projektovy-manazer.mdIn other words:
- Read the note title.
- Transliterate/remove diacritics.
- Convert the result to the existing filename/slug format.
- Keep the original title unchanged.
Acceptance criteria
Given the title:
Projektový manažerTolaria should keep:
# Projektový manažerbut generate the filename:
projektovy-manazer.mdwhen the remove diacritics / ASCII filename option is enabled.
Source: refactoringhq/tolaria