GTK frontend for the xi text editor, written in Rust
Branch: master
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
data
po
scripts
src
vendor
.drone.yml
.gitignore
.gitmodules
.release.toml
.rustfmt.toml
.travis.yml
Cargo.lock
Cargo.toml
Changelog.md
LICENSE
README.md
build.rs
com.github.Cogitri.gxi.yml
meson.build
meson_options.txt
meson_post_install.py

README.md

gxi logo

gxi

Drone CI Build Status Travis CI Build Status

GTK frontend, written in Rust, for the xi editor.

screenshot

Contributing

Please see the docs on https://cogitri.github.io/gxi to learn more about gxi's inner workings. gtk-rs' site offers documentation and examples about how gtk-rs works.

Installing

You need the following dependencies installed:

* Cairo >= 1.16
* GDK-Pixbuf-2.0
* GLib-2.0 >= 2.36
* GTK+3>= 3.20
* Pango >= 1.38
* Meson >= 0.46
* Rust >= 1.31

Run the following commands to install gxi if it's not available via your package manager:

meson build
ninja -C build
sudo ninja -C build install

This will install the gxi binary to /usr/local/bin/gxi and the syntect plugin to /usr/local/lib/gxi/plugins/syntect. This plugin has to be installed for some functionality, such as syntax highlighting, auto indention and control whether or not tabs should be replaced with spaces. It has to be compiled of the same git rev as the xi-core-lib that's built into gxi, so please don't use cargo to install gxi, as that won't install syntect! Installing syntect from a different rev can lead to very weird bugs.

After these steps you should be able to run gxi simply by invoking gxi

Installation on Arch/Manjaro

There are two packages for gxi in Arch Linux's AUR. The first is the regular release cycle package gxi and the second is the git repository tracking package gxi-git. Building and installing (including dependencies) the first package can be accomplished with:

yaourt -Sy gxi

Alternatively use makepkg:

curl -L -O https://aur.archlinux.org/cgit/aur.git/snapshot/gxi.tar.gz
tar -xvf gxi.tar.gz
cd gxi
makepkg -Csri

Building and installing the git tracking package is identical, just replace all occurrences of gxi with gxi-git.

Please consult the Arch Wiki for more information regarding installing packages from the AUR.