mirror of
https://github.com/felixangell/phi.git
synced 2024-08-16 19:20:21 +03:00
phi: gpu accelerated code-editor; definitely not to be confused phonetically with vi.
|
||
---|---|---|
cfg | ||
gfx | ||
gui | ||
res | ||
.gitignore | ||
LICENSE | ||
main.go | ||
phi-editor | ||
README.md | ||
screenshot.png |
phi-editor
Phi is a minimal text editor designed to look pretty, run fast, and be easy 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 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.Here's a screenshot of the editor:
goals
The editor must:
- run fast;
- load and edit large files with ease;
- look pretty; and finally
- be easy to use
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:
$ sudo apt-get install libsdl2-dev libsdl2-image-dev libsdl2-ttf-dev
$ go get github.com/felixangell/phi-editor
$ cd $GOPATH/src/github.com/felixangell/phi-editor
$ go build
$ ./phi-editor
If you're on macOS, you can get these dependencies via. homebrew. If you're on windows; you have my condolences.
configuration
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:
[editor]
tab_size = 4
hungry_backspace = true
tabs_are_spaces = true
match_braces = false
maintain_indentation = true
highlight_line = true
[render]
aliased = true
accelerated = true
throttle_cpu_usage = true
[theme]
background = 0x002649
foreground = 0xf2f4f6
cursor = 0xf2f4f6
cursor_invert = 0x000000
[cursor]
flash_rate = 400
reset_delay = 400
draw = true
flash = true
[commands]
[commands.save]
shortcut = "super+s"
[commands.delete_line]
shortcut = "super+d"