You are not logged in.

#26 2015-04-09 18:44:16

klaus
Member
From: Brazil
Registered: 2013-03-09
Posts: 42

Re: Love Text (text editor)

Reminds me a lot of Textadept, a cross-platform text editor written in <2000 lines of C and <4000 of Lua which used to be my go-to text editor before GTK got annoying on a minimal setup. Looks great!

Offline

#27 2015-05-10 09:24:34

FelipeFS
Member
Registered: 2015-02-11
Posts: 19

Re: Love Text (text editor)

News...

Now is possible to use a header bar instead of the classic menu. It is optional (if you go on the preferences you can mark "use decoration", and when you restart, the program will use a header bar). Some changes are being made on the plugins to work with both the header bar and the classic menu.
Replaced the status bar for a action bar.

Here is a print screen: Image

I'm trying to work on a PKGBUILD.
Here is what I got so far...

pkgname=lovetext-git
pkgver=1.0
pkgrel=1
pkgdesc="Love Text is a simple, lightweight and extensible text editor."
arch=('any')
url="https://github.com/FelipeFS/lovetext"
license=('MIT')
depends=('gtk3' 'lua')
makedepends=('git')
conflicts=('lovetext' 'lovetext-git')
provides=('lovetext-git')
source=('git://github.com/FelipeFS/lovetext')
md5sums=('SKIP')

build() {
	make compile
}

package() {
	echo "FROM:"
	echo "$srcdir/lovetext/lovetext"
	echo "TO:"
	echo "/usr/bin/lovetext"
	make SRCDIR="$srcdir/lovetext" DESTDIR="" install
}

This is the Makefile:

CC ?= gcc

#ICON_PATH_48x48 = /usr/share/icons/hicolor/48x48/apps/lovetext.png
#ICON_PATH_svg   = /usr/share/icons/hicolor/scalable/apps/lovetext.svg

LDLIBS += `pkg-config --libs gtk+-3.0 gtksourceview-3.0 x11 lua`
CFLAGS += `pkg-config --cflags gtk+-3.0 gtksourceview-3.0 x11 lua`

compile:
	echo 'Compiling module file.'
	$(CC) -g $(CFLAGS) -o module.o -c module.c
	echo 'Compiling main_window_preferences file.'
	$(CC) -g $(CFLAGS) -o main_window_preferences.o -c main_window_preferences.c
	echo 'Compiling main_window file.'
	$(CC) -g $(CFLAGS) -o main_window.o -c main_window.c
	echo 'Compiling main file.'
	$(CC) -g $(CFLAGS) -o main.o -c main.c
	echo 'Linking files.'
	$(CC) -o ./lovetext *.o $(LDLIBS)

install:
	install -m755 $(SRCDIR)/lovetext $(DESTDIR)/usr/bin/lovetext
	make clean

clean:
	@echo 'Cleaning up.'
	rm *.o

Any recommendations?

Last edited by FelipeFS (2015-05-10 09:26:43)

Offline

Board footer

Powered by FluxBB