Skip to content

About

NeNe Folio - a frameless Markdown notebook for Windows, written in plain C

Resources

Stars

1 star

Watchers

0 watching

Forks

Repository files navigation

NeNe Folio

A frameless Markdown notebook for Windows with a category drawer. Plain C (C23), Win32, no UI library.

Microsoft Store: Get NeNe Folio for Windows.

Windows x64 portable beta: Download the ZIP and SHA256SUMS from GitHub Releases. Extract the whole product folder and run NeNeFolio.exe. The portable package is unsigned. Windows 10 version 2004 or later is required. Notes and settings use data/ beside the executable by default; Settings can select another location.

The latest published GitHub release is 1.5.0 Beta (November 19), adding a Headings column beside the note body, keyboard improvements in the note finder, moving a note to another category from the list, definition lists, multi-paragraph footnotes, and Mermaid pie and Gantt charts. See the 1.5.0 changes and update instructions and the verification and publication record. The source on main is ahead of 1.5.0: it holds changes for the next version that are not in any published package, so this README and docs/MARKDOWN.md on main may describe more than 1.5.0 does; the files at the v1.5.0 tag match the release. The previous release is 1.4.0 Beta (changes, verification record). Package creation, GitHub publication, and Microsoft Store certification are tracked separately. The unsigned MSIX is a Store submission artifact, not a portable installer. The Store listing is live; the maintainer reported a successful Store update to 1.3.1 on November 6. The maintainer reported that Store version 1.3.2 is live on November 7. The maintainer reported a successful Store-app update to 1.3.2 on November 10. The maintainer submitted the 1.4.0 update to the Store on November 18 and reported that it passed certification the same day; it was set to publish once certified. The live Store listing and a Store-app update to 1.4.0 have not been confirmed here yet. The maintainer submitted the 1.5.0 update to the Store on November 19 and reported that it is live the same evening; the public Store catalog shows a listing update on November 19 (13:34 UTC) whose description and "What's new" text match the 1.5.0 drafts in all three languages. A Store-app update to 1.5.0 has not been confirmed here yet.

Microsoft Store · Portable download and checksums · Supported Markdown and Mermaid syntax · Import and export · Opening notes from other programs (Japanese; on main, not in 1.5.0)

NeNe Folio 1.3.2 showing categories, a Markdown note and a Mermaid flowchart

v1.3.2 with the English UI, Light theme, and sample notes. Screenshot provenance.

What it does

The 1.5.0 release notes describe the current changes, update steps, and limitations; the previous changes are in the 1.4.0 notes. Images, Mermaid diagrams, and image-aware export are covered in the 1.3.0 notes; earlier changes remain in the 1.2.0 Store notes and 1.1.0 notes.

  • A borderless window with a drawer on the left and a Markdown view/editor on the right. It follows the OS light/dark theme (or a fixed one) and Per-Monitor v2 DPI.
  • List / Both / Note buttons switch the visible panes. List narrows the window; returning to Both or Note restores the previous width or maximized state. Switching views keeps unsaved text and Undo. The grouped controls also accept Ctrl+Shift+1 / 2 / 3. Tooltips, Actions, the command palette, and Help show the shortcuts; they do not switch the layout during IME composition or a modal input. Drag the boundary in Both view to resize the list. The chosen width is kept for the session, including view switches and temporary window shrinking. F6/Tab reaches the boundary; Left/Right, PageUp/PageDown, and Home/End adjust it. Esc cancels a drag (#475).
  • The drawer is an index of data/<category>/*.md. Categories fold like an accordion, carry a colour and an order, and rows are reordered by drag (notes can move between categories). There is no scrollbar; the drawer scrolls by wheel and keys. A search box at the top filters every note by name and body. The first search prepares saved note bodies one at a time while continuing to process input and paint. Results appear after preparation finishes; large collections can still take time to prepare.
  • Favorites (1.4.0): click a note's star or use Actions / the command palette. Favorites appear first within each category, retaining manual order within both groups. Turn off Favorites first in Settings to restore manual order. Favorites only combines with the existing name/body search. Stars survive restart, rename and category moves without changing Markdown, editor Undo or body history.
  • View and edit. Clicking a note renders its Markdown. Edit mode shows the plain text in the same pane; Ctrl+S writes the file back atomically, keeps the original line endings, and writes nothing when the text is unchanged. The body just before each save is kept as data/.history/<category>/<note>/1.md … 5.md, and any version can be restored into the editor as an undoable edit. Ctrl+E switches between Read/Edit; it saves before returning to Read. Ctrl+M opens Actions. Mode, Save, Find, and Actions tooltips show their actual shortcuts (#490). The renderer supports tables, nested lists and quotes, task lists, strikethrough, thematic breaks, setext headings, explicit line breaks, and longer code delimiters. It also supports angle-bracket URI/email autolinks, numeric character references, six basic named references, and more space around thematic breaks (#480). Fenced code shows its specified language above the code and uses basic syntax colors for supported languages. Unknown names remain visible; an omitted name has no label. View-mode HTTP/HTTPS links open in the default browser with a left click or Ctrl+Enter (#482); dragging to select text and editing do not launch links. See Markdown syntax and limits (Japanese).
  • Discover notes (1.4.0, Ctrl+O): Actions / the command palette opens a finder with fuzzy name search and literal search of saved Markdown bodies, combined with favorites and tags. A bounded source preview shows each note's first body match and its line number. Moving between candidates keeps the editor untouched; Open match opens the selected note in Edit mode. If its saved source changed since the search, the note opens with an explanation and the old match position is not applied.
  • Images and diagrams: local and HTTPS PNG/JPEG images load after the note body. Lowercase mermaid fences render native flowcharts, sequence diagrams and, from 1.4.0, state, ER and class diagrams in the current theme; 1.5.0 adds pie charts and Gantt charts. A Gantt chart never reads today's date, so a first task without a start date is reported as unsupported. Diagram sources stay as Markdown; no JavaScript runs and diagrams fetch no external resources. Supported syntax and size limits are documented in Markdown.
  • Body context menu (1.4.0): right-click in the note body, or press Shift+F10 / the menu key, for Undo, Cut, Copy, Paste and Select all in Edit mode and Copy and Select all in Read mode. On a link in Read mode the menu adds Open link and Copy link. Code blocks in Read mode have a Copy action.
  • Headings column (1.5.0, Ctrl+Shift+O): in Read mode a column beside the body lists the note's headings, indented by level, and marks the one being read. Click a row, or Tab into the column from the pane tools and press Enter on a row, to bring that heading to the top. The column is hidden in Edit mode and in windows too narrow for it; whether it is open is remembered only while the app runs.
  • Window placement (1.4.0): the window reopens at its previous position, size and maximized state. Settings can turn this off. A recorded placement whose header would not be usable on any current screen, or whose size cannot be used, falls back to the default placement.
  • Simple minimap: a bounded overview of native display lines beside Read/Edit shows a current-position frame with click/drag and wheel navigation. Headings, lists, tables, rules and code blocks have simplified shapes. Settings, Ctrl+Shift+M, Actions and the command palette toggle it; the preference survives restart. Narrow panes hide it automatically. It samples at most 256 lines rather than duplicating the full text (#502).
  • Note zoom: Ctrl+wheel or Ctrl++ / Ctrl+- changes the display from 50% to 300%; Ctrl+0 restores 100%. Read and Edit share the zoom while the app runs, and line numbers follow it. Note contents stay unchanged.
  • Status bar: a distinct bottom surface shows the saved file's updated and created times in local YYYY-MM-DD HH:mm form, plus the existing Help and Commands shortcuts. Regular saves preserve file creation time. Untitled notes show Unsaved, and unavailable attributes are reported explicitly. Narrow windows shorten the painted text; the tooltip and screen-reader name retain the full information. Loading and error notices take priority, then the normal status returns (#530).
  • Notes: new untitled note with a first save, save as, rename (recoverable across restarts through data/.rename.json), move to the Windows Recycle Bin together with its history. Leaving an untitled note for another note, a new note, or the window's Close action offers Save / Don't save / Cancel in the name form. Don't save continues without creating a file; Cancel keeps the draft and Undo. If the destination cannot be opened, the draft is kept. Ctrl+S and explicit Save and quit remain save commands. The New note button beside the search field also works in List view. Note view has no list and no such button: with a note open use Ctrl+N, the Actions menu, or the command palette; with no note open use Ctrl+N or the command palette, or switch to Both or List view to reach the button with the mouse. A category's right-click New note in this category starts writing there; Cancel keeps the previous view and draft.
  • Categories: create, rename, change colour, or delete when empty from the right-click menu. A fixed + beside the Categories heading creates a category; the command palette and Ex commands also provide category creation, renaming, and deletion.
  • Markdown transfer: import multiple UTF-8 .md files into a category, skipping existing names. Export the current note (including unsaved edits) as Markdown, or saved category/all notes as a ZIP. Export keeps the original note and refuses existing output files. ZIP includes referenced category images/ files and can collect other local images after confirmation. HTTPS references remain URLs. Settings, order and history are excluded. See formats and limits.
  • Find: search inside the open note (Ctrl+F, /, ?, n, N, F3), filter all notes (Ctrl+Shift+F), and regular-expression replace in the edited body (a replace field or :%s/…/…/g). In-note search sits above the body with its match count, Previous / Next, and Close controls. It keeps the matched text visible and places the result on a separate row in narrow panes.
  • Keyboard first. The index takes Vim-like keys (j k gg G h l Enter, Esc from the body), : opens an Ex line (:w :q :wq :q! :set … and the commands above), and Ctrl+P / F1 / :h open a command palette that also lists the key bindings of each pane. The editor accepts Ctrl+h/j/k/l as arrows.
  • Settings (data/settings.json): line numbers for the edited text, 125 themes shared with NeNeNib plus the original light / dark and system, and UI language 日本語 / English / 简体中文. Choose a theme searches names, shows color samples, and previews the highlighted choice before saving it with Enter or a click. Esc returns to the saved choice. :set theme=dracula uses the same saved choice. Windows high contrast temporarily uses the system colors across the window and note body. Your theme and category colors stay saved; turning high contrast off restores the chosen theme. The settings surface also shows the build version. From 1.4.0, About this app… at the end of Settings shows the product name, version, license, bundled-font and third-party notice pointers, and four official links (GitHub, Releases, Microsoft Store, Report an issue) that open in the default browser. It never checks for updates (ADR0097). Noto Sans JP, Noto Sans SC and IBM Plex Mono are bundled under fonts/.
  • Limits: a note body is at most 16 MiB and may not contain NUL; both are refused rather than truncated.
  • Failures (unreadable ledgers, unwritable files, a second instance on the same data/) are reported in the window, never silently ignored.

The requirements, one FR per row, are in SPECIFICATION.md. Palette sources and license texts are retained in THIRD_PARTY_NOTICES.txt. Every key and command is listed in キーバインドとコマンド (Japanese).

The searchable theme chooser in NeNe Folio 1.3.2, with Nord selected

The theme chooser offers 128 choices, including the OS setting and the original Light / Dark themes. Arrow keys preview a choice across the window before it is saved.

Where the data lives

The portable package defaults to the data/ folder next to the portable executable. Settings → Note storage… lets you choose another folder, directly or with the Windows folder picker. The change takes effect on the next launch; existing notes are never moved automatically. The current and next locations remain visible, and unsaved editing and Undo are preserved. In the table below, data/ means the selected folder itself.

The location is stored separately in version 1 nenefolio-startup.json next to the portable executable. A build with Windows package identity uses Documents/NeNeFolio as its initial suggestion and asks before opening notes; its startup setting lives in LocalAppData/NeNeFolio. The 1.0.0 candidate passed local installation/update/removal checks. A successful Store update to 1.3.1 was reported by the maintainer. Store publication of 1.3.2 was reported separately, and a successful Store-app update to 1.3.2 was reported on November 10. Both are maintainer reports; see the current status. A missing or unavailable selected folder opens a recovery choice; an invalid or unknown startup-setting version is reported without overwriting it.

Path Meaning
data/categories.json category order, colour and folded/expanded state
data/<category>/index.json manual note order and favorites (version 2; version 1 reads as unstarred)
data/<category>/<note>.md the note itself, written back as-is
data/.history/<category>/<note>/1.md … 5.md the last five bodies before a save (1 is newest)
data/settings.json line numbers, theme, language, minimap, note order, motion effects and whether the note header is shown (version 8; versions 1–7 are read)
data/.rename.json an in-flight rename, replayed on the next start
data/.nenefolio.lock refuses a second instance on the same data/

Changing metadata or preferences writes the new schema; startup alone does not migrate files. Settings include Motion effects for the Find a note frame, selection underline and busy line. Windows animation preferences, contrast themes and unavailable appearance settings keep these effects static without changing the saved choice. Input and results update immediately.

Older app versions cannot read version 2 note indexes or version 8 settings. Markdown/ZIP export does not include personal favorites.

Folders whose name starts with . are not scanned as categories. Use a local NTFS folder; sync-folder placeholders are read as ordinary files, but symbolic links and junctions are refused for renames.

How it is built

This repository follows the AYANE strict policy: one meaning, one canonical implementation path, enforced by machines.

  • docs/ARCHITECTURE_CONSTITUTION.md — the rules (ARC-NNN) and how far C reaches for each of them
  • docs/CODING_RULES.md — the approved subset of C (C-NNN)
  • docs/QUALITY_GATES.md — what is enforced right now (active / planned / impossible), the only source of truth
  • docs/quality/phase0-results.json — the compiler measurements the rules are based on
  • docs/adr/ — decisions, including why clang-cl and not MSVC, and why plain Win32

The only definition of done, locally and in CI:

pwsh -NoProfile -File ./eng/check.ps1

It needs Visual Studio Build Tools with the pinned MSVC toolset and the bundled LLVM 19.1.5, CMake, Ninja and Python 3.12 (eng/tool-versions.json). Run pwsh -NoProfile -File ./eng/bootstrap.ps1 once after cloning.

Build a portable package

Use the same pinned build tools and two new absolute directories outside the checkout. Their parent directories must already exist:

pwsh -NoProfile -File ./eng/package-release.ps1 `
  -WorkDirectory D:/NeNeFolio/outputs/release-work `
  -OutputDirectory D:/NeNeFolio/outputs/release

The command makes a separate Release build, checks the executable's architecture, version, manifest and OS imports, and verifies the complete file list and bundled fonts before producing NeNeFolio-<version>-win-x64.zip and SHA256SUMS. Existing, overlapping and linked paths are refused; choose fresh directories for another run. Build work remains in WorkDirectory for inspection. The package contains NeNeFolio.exe, README.txt, LICENSE, THIRD_PARTY_NOTICES.txt and fonts/, with no user data.

Extract the whole ZIP to a writable local folder and run the executable inside it. Keep fonts/ beside the executable. The first launch does not require a pre-existing data/ folder. The package check is separate from the required PR quality gate. See the release workflow for the publication procedure.

Move a note to Recycle Bin

Right-click a note row and choose Move to Recycle Bin to move that note and its history. Actions, the command palette, and Ex :trashnote / :trash target the open named note. An edited target is saved first. There is no confirmation dialog.

The row is removed from the list, and UI Automation announces the removal without an extra visual notice. To restore a moved note, restore the note and its history folder separately from Windows Recycle Bin, then restart the app.

Delete an empty category

Right-click a category row and choose Delete category. The command palette and Ex :deletecategory / :delcat use the cursor's category, or the open document's category when there is no cursor. Select a category first if neither exists.

A category containing notes or an unsaved document is refused. Other files in its folder and active index filtering also prevent deletion. Orphaned history goes to Recycle Bin before the empty folder is removed. There is no confirmation dialog or success notice. Deleting another category preserves the open document, its edits and Undo, and search or replace fields. If the category ledger cannot be saved after deletion, the list updates and an error is shown.

Rename recovery

Note and category renames use one plan and data/.rename.json. New records use version 2 with a note or category kind; version 1 note records remain readable. Recovery completes before scanning notes and categories. A version 2 record must be recovered with this version before using an older binary.

Rename a category

Right-click a category row and choose Rename category…. The command palette and Ex :renamecategory name / :rencat name use the cursor's category, or the open document's category when there is no cursor. With no name argument, the current category name is selected in the name form. Category names follow the same rules as category creation; .md is retained.

The category folder, its history, and the category ledger move through one recoverable rename. Order, colour, expansion, the open body, mode and Undo are preserved. Only an edited named note in the target category is saved first; an unsaved document and other categories are preserved. Index filtering prevents category renaming. A replace preview for the target category expires after completion, while its input fields remain; type again to refresh it.

If an earlier rename needs recovery, its own name form opens first. Retry finishes that rename before the requested save or rename begins. Close leaves the pending intent and does not start the requested action. The read-only old → new field selects the new name; Home/End and selection let long names be read or copied. Rename also opens this recovery form from an unsaved document. Search, replace, settings and valid history remain open after a rename; Ex and the palette close on completion. History closes if the required save clears its rows. There is no success notice.

License

MIT. See LICENSE.

The application uses one icon master for native Windows and MSIX assets.

About

NeNe Folio - a frameless Markdown notebook for Windows, written in plain C

Resources

Stars

1 star

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages