MacOS port of elementary's code editor
This package contains:
- libgranite-6.1.2 (statically linked, not installed)
- elementary-icon-theme
- elementary-gtk-theme
- io.elementary.code
- Clone repository
git clone https://github.com/timothyschoen/elementary.code_macOS.git
- Install dependencies using homebrew (for installing homebrew see: https://brew.sh/)
brew install libgit2-glib libhandy vte3 libpeas gtk+3 vala guile libgee glib meson ninja gtksourceview4 editorconfig gsettings-desktop-schemas gtkspell3 gnome-icon-theme
- Build sources:
On x64:
meson build --prefix=/usr/local/
cd build
ninja
On Apple Silicon:
meson build --prefix=/opt/homebrew/
cd build
ninja
- Install
sudo ninja install
Installation is necessary because it
- Installs Glib schemas to $HOMEBREW_PATH/share/glib-2.0/schemas
- Installs elementary-icon-theme and elementary-gtk-theme
- Sets elementary-icon-theme and elementary-gtk-theme as defaults in ~/.config/gtk-3.0/settings.ini. This script will change your default gtk theme, be warned!! Not many apps on mac use gtk so it's probably not a big deal for most.
It will move the application to /build/Code.app/ If you experience code-signing issues, try opening the app with Script Editor, and resaving it.
This is mostly for playing around, it works decently. I wrote a workaround for opening files using applescript and posix pipes. It's not pretty but it works! One problem is that cmd and ctrl are not swapped.
Plugins work, but only one at a time and they can be quite buggy.
