···11-# ❄️ libfn
11+# ❄️ Fönn
2233[](https://github.com/reykjalin/fn/actions/workflows/tests.yml) [](https://builds.sr.ht/~reykjalin/fn/commits/main/tests.yml?)
4455-If you're looking for the editor, you can find that in the [./tui](./tui) folder.
66-77-`libfn` is an editor engine that I'm working on for fun.
88-It's currently used to power my toy editor project [Fönn](./tui).
99-1010-If you're working on a Zig project and want to play around with the library itself you can do so by
1111-installing fun with `zig fetch --save git+https://git.sr.ht/~reykjalin/fn`.
1212-You can also try my toy editor by building the editor from the [./tui](./tui) folder.
55+This repo contains 2 projects: `libfn`, and Fönn. `libfn` is an editor engine that I'm working on for fun. Fönn is a code editor powered by `libfn`.
136147My primary goal is to eventually have a modern, capable TUI code editor that's powered by a reusable
158editing engine. The engine itself will eventually be exposed as a static library with a C API, but
···1811A secondary goal is for `fn` to eventually have both a GUI and a TUI powered by this same text
1912editing "engine".
20132121-## libfn build instructions
1414+## Fönn (TUI)
1515+1616+❄️ Fönn: A code editor for _fun_.
1717+1818+
1919+2020+This is currently a toy project, but `fn` is stable enough that I'm exclusively using it when working on changes to the editor.
2121+2222+My primary goal is to have a modern, capable TUI code editor.
2323+A secondary goal is for `fn` to eventually have both a GUI and a TUI powered by the same text editing "engine".
2424+2525+### Build instructions
2626+2727+```sh
2828+# Debug build in ./zig-out/bin/fn.
2929+zig build -Dtui
3030+3131+# Run debug build in current directory.
3232+zig build run -Dtui
3333+3434+# Open a file with debug build.
3535+zig build run -Dtui -- path/to/file
3636+3737+# Release build in ~/.local/bin/fn.
3838+zig build -Dtui -Doptimize=ReleaseSafe --prefix ~/.local
3939+```
4040+4141+## Usage
4242+4343+```sh
4444+$ fn --help
4545+Usage: fn [file]
4646+4747+General options:
4848+4949+ -h, --help Print fn help
5050+ -v, --version Print fn version
5151+5252+```
5353+5454+## libfn
5555+5656+If you're working on a Zig project and want to play around with the library itself you can do so by
5757+installing fun with `zig fetch --save git+https://git.sr.ht/~reykjalin/fn`.
5858+5959+### Build instructions
22602361```sh
2462# Make sure libfn builds.
···2866zig build test
2967```
30683131-## Usage
6969+### Usage
32703371```sh
3472$ zig fetch --save git+https://git.sr.ht/~reykjalin/fn
···11-# ❄️ Fönn
22-33-[](https://github.com/reykjalin/fn/actions/workflows/tests.yml) [](https://builds.sr.ht/~reykjalin/fn/commits/main/tests.yml?)
44-55-A code editor for _fun_.
66-77-
88-99-This is currently a toy project, but `fn` is stable enough that I'm exclusively using it when working on changes to the editor.
1010-1111-My primary goal is to have a modern, capable TUI code editor.
1212-A secondary goal is for `fn` to eventually have both a GUI and a TUI powered by the same text editing "engine".
1313-1414-## Build instructions
1515-1616-```sh
1717-# Debug build in ./zig-out/bin/fn.
1818-zig build
1919-2020-# Run debug build in current directory.
2121-zig build run
2222-2323-# Open a file with debug build.
2424-zig build run -- path/to/file
2525-2626-# Release build in ~/.local/bin/fn.
2727-zig build -Doptimize=ReleaseSafe --prefix ~/.local
2828-```
2929-3030-## Usage
3131-3232-```sh
3333-$ fn --help
3434-Usage: fn [file]
3535-3636-General options:
3737-3838- -h, --help Print fn help
3939- -v, --version Print fn version
4040-4141-```