Ctrl+T means three different things, and the Home tab it opens renders blank
Ctrl/⌘+T has three code paths and two or three outcomes:
- Windows/Linux, focus outside the editor → opens a Home tab
- Windows/Linux, focus inside Monaco → new Untitled file
- macOS → the native menu takes it → new Untitled file
The Home tab is also broken on arrival. Its render condition is path !== '' || title !== 'Recents'. A Home tab has path = 'HOME', so the first half is always true and it falls through to the markdown container with empty content — a blank page. The second half can never help either: title comes from t('tabs.home'), which is Home/主页/… in every language and never the literal 'Recents'. That comparison is dead code in all 26 locales.
Suggestion: settle Ctrl+T on one meaning (new file seems the common reading), and change the render condition to path !== 'HOME'. Which meaning do you want?
@PathGao proposed solutions sounds good to me. this project originated as a markdown viewer-only app so some weird cases like this still remain haha
The blank Home tab is fixed in v2.7.0 by #429 — the render condition was path !== '' || title !== 'Recents', which a Home tab can never satisfy; it now tests the HOME sentinel directly. The Ctrl+T question is still open: it now means two things rather than three (Home tab outside the editor, new Untitled inside Monaco — macOS no longer differs). Say which one you want and I'll make it the only one.