phi/README.md

80 lines
1.9 KiB
Markdown
Raw Normal View History

2016-12-02 20:08:42 +03:00
<p align="center"><img src="res/icons/icon96.png"></p>
2017-12-14 02:45:51 +03:00
<h1>phi-editor</h1>
Phi is a minimal text editor designed to look pretty, run fast, and be easy
2016-12-02 20:03:51 +03:00
to configure and use. It's primary function is for editing code. Note that this
is a re-write of the initial editor that I wrote last year. It's still a work in
2016-12-02 20:06:53 +03:00
progress and is very buggy! In addition to this, the editor is written as if it's a game,
so it will probably eat up your battery, run quite slow on a laptop, and probably crash
quite frequently.
2016-11-14 10:06:25 +03:00
2016-12-02 20:06:11 +03:00
<br>
2018-02-28 16:28:44 +03:00
Here's a screenshot of the editor:
2017-11-04 17:24:44 +03:00
<p align="center"><img src="screenshot.png"></p>
# goals
The editor must:
2018-02-28 16:23:07 +03:00
* run fast;
* load and edit large files with ease;
* look pretty; and finally
* be easy to use
2016-11-16 07:26:29 +03:00
# building
You'll need Go with the GOPATH, GOBIN, etc. setup, as well as SDL2, SDL2\_image, and SDL2\_ttf. Here's
an example for Ubuntu:
```bash
$ sudo apt-get install libsdl2-dev libsdl2-image-dev libsdl2-ttf-dev
2017-12-14 02:45:51 +03:00
$ go get github.com/felixangell/phi-editor
$ cd $GOPATH/src/github.com/felixangell/phi-editor
$ go build
2017-12-14 02:45:51 +03:00
$ ./phi-editor
```
If you're on macOS, you can get these dependencies via. homebrew. If you're on windows; you have my condolences.
## configuration
2018-02-28 16:23:07 +03:00
Configuration files are stored in `$HOME/.phi-editor-editor/config.toml`. Note that
this directory is created on first startup by the editor, as well as the configuration
file below is pre-loaded:
2016-11-16 07:26:29 +03:00
```toml
[editor]
2018-02-28 16:23:07 +03:00
tab_size = 4
2016-11-27 20:31:40 +03:00
hungry_backspace = true
tabs_are_spaces = true
match_braces = false
2018-02-28 16:23:07 +03:00
maintain_indentation = true
highlight_line = true
2016-11-27 20:31:40 +03:00
[render]
2016-11-16 07:26:29 +03:00
aliased = true
2018-02-28 16:23:07 +03:00
accelerated = true
throttle_cpu_usage = true
2016-11-27 20:31:40 +03:00
[theme]
2018-02-28 16:23:07 +03:00
background = 0x002649
foreground = 0xf2f4f6
cursor = 0xf2f4f6
cursor_invert = 0x000000
2016-11-27 20:31:40 +03:00
[cursor]
flash_rate = 400
reset_delay = 400
draw = true
flash = true
2018-02-28 16:23:07 +03:00
[commands]
[commands.save]
shortcut = "super+s"
[commands.delete_line]
shortcut = "super+d"
2016-11-16 07:26:29 +03:00
```
2016-11-14 10:06:25 +03:00
# license
2016-11-27 20:31:40 +03:00
[MIT License](/LICENSE)