Rouvre is a Complexus Lab project: an independent fork of the TextMate 2 source code, a text editor for macOS. Upstream development stopped in October 2021. This fork exists to make the code build and run again on current macOS releases and on Apple Silicon.
Rouvre is maintained at https://github.com/complexus-lab/rouvre. It has no affiliation with the original publisher or author, who neither endorse nor support it. Questions about this fork belong in this repository.
This is work in progress. There are no binary releases. Rouvre requires macOS 15 or later.
| Area | State |
|---|---|
| Source | Upstream commit 346b52b (12 October 2021) plus the changes in this repository |
| Build | Compiles, links and signs on macOS 15 with Apple Silicon (arm64 only). The application starts on macOS 27; it has not been tested beyond launch |
| Tests | The unit tests of 24 targets build and pass on CI. The interactive GUI tests (cxx_tests) are not wired into the build |
| Naming | The application is Rouvre.app with the identifier fr.complexuslab.Rouvre. Names that bundles and scripts depend on are kept: the mate command, the TM_* variables, the TextMate JavaScript object and the com.macromates.textmate.* file types. Settings, bundles and session data live in ~/Library/Application Support/Rouvre, separate from a TextMate installation |
| Online services | Software update and crash reporting are switched off and the license module is removed. Bundles come from the Rouvre mirror: the index at https://complexuslab.fr/rouvre/bundles/index.plist is checked against the release key, and each archive against the SHA-256 digest the index lists. No request goes to the upstream servers |
Use the issue tracker for bug reports and questions.
- macOS with Xcode and its command line tools
- boost — portable C++ source libraries
- Cap’n Proto — serialization library
- multimarkdown — marked-up plain text compiler
- ninja — build system similar to
make - ragel — state machine compiler
- GNU libiconv — character set conversion, linked statically
- sparsehash — a cache friendly
hash_map
All of these can be installed with either Homebrew or MacPorts:
# Homebrew
brew install boost capnp google-sparsehash libiconv multimarkdown ninja ragel
# MacPorts
sudo port install boost capnproto libiconv multimarkdown ninja ragel sparsehashClone with submodules, then run ./configure followed by ninja:
git clone --recursive https://github.com/complexus-lab/rouvre.git
cd rouvre
./configure && ninja Rouvre/run./configure checks that the dependencies can be found and calls bin/rave to generate build.ninja, with the default config set to release and the default target set to Rouvre.
The dependency location is detected in this order: the PREFIX environment variable, brew --prefix, /opt/local (MacPorts), /usr/local. To force a location:
PREFIX=/some/prefix ./configureCap’n Proto is linked statically when its archives (libcapnp.a, libkj.a) are present, through a .static-libs directory created by ./configure, so that the application runs on machines where the library is not installed.
GNU libiconv is required and always linked statically, in place of the conversion library of the system: the one shipped with current macOS transliterates differently, which would make saved files depend on the OS version. It is looked up in ICONV_PREFIX, then in Homebrew’s opt/libiconv, then in the dependency prefix.
The detected paths are written to local.rave. Delete that file to run the detection again; if it exists, ./configure leaves it untouched.
Build output goes to ~/build/rouvre unless the builddir environment variable names an existing directory.
ninja Rouvre # Build and sign the application
ninja Rouvre/run # Build, sign, and (re)launch the applicationThe application is signed ad hoc (CS_IDENTITY is - in default.rave). Set CS_IDENTITY in local.rave to sign with your own Developer ID.
Targets list their unit tests with a tests directive in their default.rave. The test files of a target are merged by bin/gen_test into one executable, which is linked with the target and run from the source root.
ninja tests # Build and run the tests of every target
ninja buffer/test # Build and run the tests of one targetThe cxx_tests directives (interactive GUI tests based on CxxTest) are not wired into the build.
To clean everything run:
ninja -t cleanOr delete the build directory.
Install the Ninja bundle, then press ⌘B. Set the PATH variable in Preferences → Variables or in ~/.tm_properties so that ninja and the other tools are found, for example $PATH:/opt/homebrew/bin.
The default target, set in .tm_properties, is Rouvre/run. If the current file belongs to another application target, TM_NINJA_TARGET builds and runs that application instead.
Every pull request and every push to main is built on a GitHub-hosted macos-15 runner. The build continues past the first failure; the complete log is attached to the run as the build-log artifact and the job summary counts the errors per message.
- INTERNALS.md describes the core data structures and the layering of the code.
- CONTRIBUTING.md describes how to submit changes.
- docs/INDEPENDENCE.md records the plan to separate from upstream infrastructure and host Rouvre's own services.
- The user manual shipped with the application is in
Applications/TextMate/resources/TextMate Help.
The source is released under the GNU General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version. See COPYING and LICENSE.
The code inherited from upstream is copyright MacroMates Ltd. and the upstream contributors; the complete authorship is preserved in the git history. Changes made in this repository are copyright Thierry Sayegh-Sauvage (Complexus Lab) and their respective authors, and are released under the same license. The license requires the inherited copyright notices to stay in place.
“TextMate” is a trademark of its owner, who has no connection with this fork. The name appears here only to state where the code comes from.