shonkr

command module
v0.0.0-...-44e5691 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Mar 5, 2023 License: GPL-3.0 Imports: 32 Imported by: 0

README

Shonkr

A slightly shonky text editor

An experiment in text rendering

Shonkr is an experiment in adding interesting features to a text editor. Unfortunately, I first had to write a text renderer.

The text renderer takes some text, and a width and height, and creates an image with the text laid out. It can be used to add a text editor box to Gui frameworks that don't support it.

Now that the fundamentals are working, I plan to start experimenting with the interesting features like arbitrary text placement, multiple document views, and help annotations. The goal is to turn the text into an active document that monitors and assists the user.

Install

There is currently a test framework in the v3 directory that is capable of loading and editing a file.

go get github.com/donomii/shonkr
go build github.com/donomii/shonkr/v3

Use

./v3

V3 will display a list of files in the current directory, you can click on them to edit. Changes will be automatically saved when you open a new file.

Documentation

Overview

An app that draws a green triangle on a red background.

Note: This demo is an early preview of Go 1.5. In order to build this program as an Android APK using the gomobile tool.

See http://godoc.org/golang.org/x/mobile/cmd/gomobile to install gomobile.

Get the basic example and use gomobile to build or install it on your device.

$ go get -d golang.org/x/mobile/example/basic
$ gomobile build golang.org/x/mobile/example/basic # will build an APK

# plug your Android device to your computer or start an Android emulator.
# if you have adb installed on your machine, use gomobile install to
# build and deploy the APK to an Android target.
$ gomobile install golang.org/x/mobile/example/basic

Switch to your device or emulator to start the Basic application from the launcher. You can also run the application on your desktop by running the command below. (Note: It currently doesn't work on Windows.)

$ go install golang.org/x/mobile/example/basic && basic

Directories

Path Synopsis
gui.go
gui.go
gui.go
gui.go
gui.go
gui.go

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL