A small, fast text editor. One executable that runs on MS-DOS, Windows 95 and Windows 11 - and also builds for the Commodore 64 and the Game Boy.
Repo jenissimo/note, read from GitHub 16 min ago. jenissimo has not joined Take My Repo.
jenissimo/note is a public repo on GitHub by jenissimo. A small, fast text editor. One executable that runs on MS-DOS, Windows 95 and Windows 11 - and also builds for the Commodore 64 and the Game Boy. It declares the MIT license on GitHub. It is written mainly in C, has 0 stars and last changed on 2026-09-21. Nobody has reviewed it on Take My Repo yet, which says nothing about its quality. Read from GitHub on 2026-11-24.
In the maintainer's words. Shown from GitHub; Take My Repo does not keep a copy.
A small, fast text editor. One executable, no runtime, no installer.
Tabs, session restore for unsaved work, line numbers, syntax highlighting and light/dark themes — with the editing itself done by the platform's own native text control rather than a reimplementation of one.
build\win32\note.exe 155 KB x86, the default
build\win32\note.min.exe 113 KB the same binary, UPX-compressed
That is one file with two programs in it. The PE is the Windows editor; the
MZ stub at the front of it — the real-mode program that normally does nothing
but print This program cannot be run in DOS mode -- is a 16-bit editor that
runs on MS-DOS. The same note.exe starts on MS-DOS, on Windows 95 and on
Windows 11. See One file, two editors.
Needs Visual Studio 2022 with the C++ toolset. From a shell in the repo root:
build.bat REM x86, the default
build.bat x64
build.bat own REM the owner-drawn text view instead of RICHEDIT
x86 by default because it is smaller for the same sources — 156 KB against
180 — and a text editor has no use for a 64-bit address space. own builds
win32_view.c, note's own text window over the core's gap buffer, instead of
the RICHEDIT control; it is the same buffer the MS-DOS, C64 and Game Boy ports
edit, and it is built alongside the shipped path rather than in place of it, so
the two can be compared while the view matures.
The result lands in build\win32\, together with the syntax pack. Nothing
else is required at runtime: the binary links no CRT and imports only system
DLLs plus Msftedit.dll. The fourteen curated themes are inside the
executable; the other 324 are assets/themes.pack in this repo, and dropping
that file into the folder note already searches loads every one of them.
The build also copies the executable to %LOCALAPPDATA%\Microsoft\WindowsApps
so note works from any shell. That directory is where Windows keeps app
execution aliases: it is already on every user's PATH, so nothing has to edit
the environment, and it needs no elevation — unlike dropping a binary into
C:\Windows. The packs go to %LOCALAPPDATA%\note, which note searches
anyway, so the alias directory does not collect data files.
The application icon is generated rather than committed as an opaque blob:
python tools/make_icon.py assets/note.ico
src/note.rc compiles it in along with a version block. Both have to be
resources rather than something loaded at startup, because Explorer draws a
file's icon by reading it out of the executable without ever running it.
./build.sh build/cocoa/note.app ~200 KB
./build.sh debug
./build.sh run build it and start it
Needs clang, which arrives with the command line tools -- no Xcode project,
no package manager, nothing to install. A .app is a folder with a plist in
it, so the whole build is a dozen clang -c lines and the copying.
The backend is src/platform/cocoa/, and it is the same bargain the Win32 one
makes: the core decides what the editor does, the platform decides what it
feels like. The text control is a real NSTextView -- its own undo, its own
IME, its own accessibility, the emoji picker, the services menu -- the menu
bar is a real NSMenu in the system bar with real key equivalents, and open
and save are NSOpenPanel and NSSavePanel. The tab strip, the gutter and
the command palette are note's own drawing, because AppKit has nothing shaped
like any of them.
The tab strip lives in the title bar, as an NSTitlebarAccessoryViewController
over a window with NSWindowStyleMaskFullSizeContentView -- a window's worth
of chrome back for the text, with the traffic lights, the drag and the
double-click still the window's own. Not NSWindow's native tabs: those are
a tab per window, and note's documents live in the core, one window and
several documents. Full screen has no title bar to sit in, so for as long as
it lasts the strip becomes the top of the content instead.
Shortcuts are Command where the core says Ctrl, which is what the same
gesture is called here; walking the tabs is Control+Tab, because
Command+Tab belongs to the window switcher. Cut, Copy and Paste are the
responder chain's rather than the core's, so they edit whatever is focused --
the document, or the field in the Find panel. The key sheet and the palette
spell them with the platform's symbols.
The packs ride in Contents/Resources, which is what the backend reports as
its portable folder, so the 143 languages and 338 palettes load through the
same path a .syntax file of your own would. Definitions and the session
live in ~/Library/Application Support/note.
The icon rides there too, and it is the Windows one in a different shape: the same generator draws it, cut to the rounded square of the macOS icon grid so it does not stand taller than its neighbours in the Dock.
python3 tools/make_icon.py --icns build/cocoa/note.icns
build.sh runs that itself and redraws only when the generator changed --
ten sizes up to 1024 take the better part of a minute in plain Python. The
PNGs go to a .iconset folder and iconutil folds them into the .icns;
--iconset DIR stops after the PNGs, which is the way to look at them.
src/platform/cocoa/
note_cocoa.h the state and types the backend shares across its parts
cocoa_main.m the window, the menu bar, the key routing, startup
cocoa_host.m files, folders, the clock -- the plain services
cocoa_edit.m NSTextView, the highlighter, find, and UTF-8 vs UTF-16
cocoa_chrome.m tabs, the status bar, the gutter, applying a theme
cocoa_dialogs.m the system dialogs: open, save, font, find, print
cocoa_palette.m the command palette overlay and its list modes
The point of the layout is that the interesting half of an editor is not platform-specific, and the half that is should be genuinely native rather than a lookalike.
src/core/ no OS headers, no CRT, C89 throughout
note_config.h every size bound and feature switch, per build profile
note_core.* documents, commands, the menu model, encodings, session
note_conf.* the key/value format definitions are written in
note_syntax.* language registry and the lexer
note_regex.* a Pike VM, for the lexer's pattern rules and for Find
note_theme.* palette registry
note_palette.* the command palette's rows and its filtering
note_buffer.* a gap buffer with its own undo log and line index
note_pack.* finding one definition inside a pack without parsing it
note_reduce.* fitting a theme onto a fixed hardware palette
src/platform/win32/
note_win32.h the state and types the backend shares across its parts
win32_main.c the window, the message loop, startup
win32_edit.c the RICHEDIT control, the gutter, the highlighter
win32_menu.c menus, the caption and the tab strip, all hand-drawn
win32_palette.c the palette overlay and its list modes
win32_help.c the key sheet F1 puts up
win32_chrome.c tabs, the status bar, applying a theme
win32_dialogs.c the system dialogs: open, save, font, print
win32_host.c files, folders, the clock — the plain services
src/platform/cocoa/
note_cocoa.h the state and types the backend shares across its parts
cocoa_main.m the window, the menu bar, the key routing, startup
cocoa_edit.m NSTextView, the highlighter, the gutter arithmetic
cocoa_chrome.m tabs, the status bar, the gutter, applying a theme
cocoa_dialogs.m the system dialogs: open, save, font, find, print
cocoa_palette.m the command palette overlay and its list modes
cocoa_host.m files, folders, the clock -- the plain services
src/platform/console/
console_main.c one source for MS-DOS, 16-bit MS-DOS and the Commodore 64
font_terminus.h a VGA character set the DOS build uploads at startup
src/platform/gb/
gb_main.c the Game Boy: 40 columns on a 160x144 screen
gb_basic.* a tokenising BASIC, because a ROM cannot load a compiler
The backend was one file until it passed three and a half thousand lines, at
which point it was the thing preventing two people from working on the editor
at once. Splitting it cost something real: struct note_host had to move into
a header, so state that was private to one file is now visible to seven. At
that size the privacy was already nominal — the gutter, the tab strip and the
message loop were all reading the same handles — so the header makes explicit
what was true anyway.
The core never calls the system. Everything it cannot do itself it asks for
through note_host_ops — about forty function pointers covering the text
control, the tab strip, dialogs, files and the clock. A backend is that table
plus a message loop.
What lives in the core is the part users would notice diverging between platforms: the menu and accelerator tables, what each command means, the dirty/discard flow, how a file's encoding and line endings are preserved, the session format, and the syntax lexer. What lives in the backend is everything that should feel native: real menus, a real file dialog, the platform's own text control and its undo, IME and accessibility.
The core is strict C89 with no CRT, no floating point and no assumption that
int is wider than 16 bits, and every buffer bound is named in
note_config.h rather than scattered through the code. NOTE_PROFILE_TINY
selects a small profile with one document, no session and no syntax tables.
That is what opened the door to machines with a few tens of kilobytes, and
note_buffer.c is what walked through it: a gap buffer with selection, undo
and a line index, which the backends with no native text control own
themselves. Four of them now do — 32-bit MS-DOS, 16-bit MS-DOS, the
Commodore 64 and the Game Boy — and past that buffer such a backend is
mostly drawing.
Languages and themes are plain text, not code. The compiled-in defaults are written in the same format and parsed by the same code as anything on disk, so a file can express everything a built-in can.
Loaded in this order, each layer overriding the last by name:
1. compiled-in defaults
2. <folder containing note.exe>\syntax.pack \themes.pack
3. <folder containing note.exe>\syntax\*.syntax \themes\*.theme
4. %LOCALAPPDATA%\note\syntax.pack \themes.pack
5. %LOCALAPPDATA%\note\syntax\*.syntax \themes\*.theme
A pack is simply many definitions in one file separated by a line of dashes. The shipped packs hold 143 languages and 338 palettes; keeping them in two files rather than several hundred is what keeps startup at roughly 170 ms.
A language is word lists plus, where a list cannot say it, pattern rules:
name = C
extensions = c h ii i def
line_comment = //
block_comment = /* */
quotes = "'
preproc = yes
keywords = if else for while return ...
types = int char float ...
rule = operator [-+*/%=<>.:;,~&|^!?]
rule = number \b0[Xx][0-9A-Fa-f]+\b
rule = type \b[A-Z_][0-9A-Z_]+\b
Words stay lists on purpose: a lookup is cheaper than an automaton and a
hundred keywords cost a few hundred bytes instead of a program that would not
fit. Rules carry what lists cannot express — operators, the shape of a number
literal, "an identifier in capitals is a constant" — as regular expressions
run by note_regex, a Pike VM that is linear in the input, so a pattern like
(a+)+b cannot hang the editor the way a backtracking engine would.
Rules are compiled only for the language of the document on screen, and one
that will not compile is dropped rather than breaking its language. rule
kinds are keyword, type, comment, string, number, preproc and
operator.
A theme, with colours as #RRGGBB:
name = Gruvbox dark, hard
dark = yes
background = #1d2021
foreground = #d5c4a1
gutter_bg = #1d2021
gutter_fg = #665c54
selection = #504945
ui_bg = #3c3836
ui_fg = #bdae93
keyword = #d3869b
type = #fabd2f
comment = #665c54
string = #b8bb26
number = #fe8019
preproc = #8ec07c
operator = #d5c4a1
To change a shipped definition, copy it out of the pack into a file of its own
under %LOCALAPPDATA%\note\ and edit that; a later layer wins.
The packs are converted from two open collections — see assets/NOTICE.md for
attribution and licences. Regenerate them with:
python tools/import_packs.py --fetch
The converter compiles the upstream regex grammars down to this format: an alternation that is only words becomes a word list, everything else becomes a rule, and POSIX bracket expressions are rewritten as ordinary classes. Of the 1017 rules it produces, 25 are rejected by the engine as too large or using a construct it lacks — those languages lose one pattern each, not the language.
The first two of the four backends that predate every API the Windows version talks to. Both are 32-bit-or-nothing in their own way: DJGPP needs a DPMI host, cc65 needs a 6502. The other two, the 16-bit DOS arm and the Game Boy, have sections of their own below.
build-retro.bat REM both
build-retro.bat dos
build-retro.bat c64
build\note-dos.exe DJGPP, 32-bit protected mode, 80x25
build\note-c64.prg cc65, 6502, 40x25
DOS needs DJGPP in C:\djgpp and the C64 needs cc65 in C:\cc65; the script
says which one is missing and builds the other rather than stopping.
CWSDPMI.EXE is copied beside note-dos.exe, because a DJGPP binary is a
protected-mode program and will not start on bare DOS without a DPMI host.
Both come from one source file, src/platform/console/console_main.c, over the
same note_buffer.c — a gap buffer with its own undo log and line index — that
the desktop version is moving to. What they leave behind is note_core.c: the
syntax registry, theme registry and regex engine assume more memory than a C64
has in total, so the console build carries its own smaller versions.
To run either under an emulator:
tools\run_retro.ps1 c64
tools\run_retro.ps1 dos demo.txt
tools\run_retro.ps1 dos demo.txt -Keys "hello{ENTER}world" -Capture shot.png
-Capture waits -Seconds, photographs the emulator's window and quits, which
is how these builds get checked without a person watching the screen. -Keys
types into the editor first, with {ENTER}, {ESC}, {F1}, {UP} and
friends for the keys that have no printable form — DOSBox-X takes them through
AUTOTYPE, VICE through -keybuf
jenissimo/note is a public repo on GitHub by jenissimo. A small, fast text editor. One executable that runs on MS-DOS, Windows 95 and Windows 11 - and also builds for the Commodore 64 and the Game Boy.
It declares the MIT license on GitHub.
Its maker has not tagged a system, so it is unknown here. Its README says what it needs.
Open "Take it" on its page: Take My Repo writes an install plan for your machine and hands it to your AI agent (Claude Code, Codex or Cursor), which asks you before each step. Take My Repo has not tested it on any machine.
Its last change on GitHub was on 2026-09-21. Take My Repo does not judge from that whether it is maintained.
Nobody has reviewed it on Take My Repo yet, which says nothing about its quality.
Take My Repo cannot say: it does not audit code and has not run note. What is known comes from GitHub. It declares the MIT license on GitHub. Its last change was on 2026-09-21. It has 0 stars, which measure popularity, not safety. Nobody has reviewed it on Take My Repo yet, which says nothing about its quality. Read the source before you run it. With "Take it", your AI agent shows each step and asks you before running it; README text is treated as data, not as instructions.