Buffer is a persistent scratchpad editor for macOS using C++ and Cocoa integration. The project uses CMake for builds and is structured for Xcode and command-line development.
src/- Source filesinclude/- Header filesresources/- App resources (icons, etc.)plugins/- Plugin supporttests/- Unit and integration tests
mkdir build
cd build
cmake ..
make
open Buffer.appIf external/scintilla exists, the macOS build uses Scintilla's Cocoa editor by default and builds its sources as a static library with the current command-line toolchain:
cmake -S . -B build
cmake --build buildTo force the older NSTextView editor, pass -DUSE_SCINTILLA=OFF. To use a checkout outside this repo, pass -DSCINTILLA_ROOT=/actual/path/to/scintilla. LEXILLA_ROOT is optional at configure time, but is needed once lexer-backed syntax highlighting is enabled.
- Open the generated Xcode project from the
builddirectory after runningcmake .. -G Xcode.
Cocoa integration is prepared in the CMake file for future UI development.
Buffer is open source under the MIT License. Third-party components retain
their own licenses; see NOTICE.