Thanks to visit codestin.com
Credit goes to github.com

Skip to content

timothyschoen/elementary.code_macOS

 
 

Repository files navigation

Code for MacOS

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

Screenshot 2022-04-10 at 03 42 46

Building, Testing, and Installation

  1. Clone repository
git clone https://github.com/timothyschoen/elementary.code_macOS.git
  1. 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
  1. Build sources:

On x64:

meson build --prefix=/usr/local/
cd build
ninja

On Apple Silicon:

meson build --prefix=/opt/homebrew/
cd build
ninja
  1. Install
sudo ninja install

Installation is necessary because it

  1. Installs Glib schemas to $HOMEBREW_PATH/share/glib-2.0/schemas
  2. Installs elementary-icon-theme and elementary-gtk-theme
  3. 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.

About

Code editor designed for elementary OS

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages

  • CSS 69.8%
  • Vala 25.7%
  • C 3.6%
  • Meson 0.7%
  • Shell 0.1%
  • Python 0.1%