Skip to content

Commit

Permalink
add README.md
Browse files Browse the repository at this point in the history
  • Loading branch information
OliveIsAWord committed Sep 13, 2024
1 parent 277601d commit cbcb279
Show file tree
Hide file tree
Showing 2 changed files with 33 additions and 0 deletions.
33 changes: 33 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,33 @@
# Hjkl

A humble text editor for [fox32os](https://github.com/fox32-arch/fox32os) written in Jackal.

![Screenshot of Hjkl](screenshot.png)

# Tutorial

Hjkl can be invoked in the shell, like so:

```
0> 1:hjkl 0:startup.bat
```

The `N:` syntax specifies the disk ID of the file or application, and can be elided if it is in the currently selected disk.

Hjkl is a non-modal editor, which means typing a character immediately inserts that character at the cursor, and other commands require special keys or keybinds to perform. We use `C-p` to represent holding the Ctrl key while pressing the P key.

- `C-p` or `Up`: move cursor up
- `C-n` or `Down`: move cursor down
- `C-f` or `Right`: move cursor right
- `C-b` or `Left`: move cursor left
- `C-a`: move cursor to start of line
- `C-e`: move cursor to end of line
- `C-u`: scroll up
- `Backspace`: delete character before cursor
- `C-d`: delete character at cursor
- `C-s`: save file
- `C-c`: quit

# Building and Running

Hjkl can be built with Make, requires variables `JACKAL` (Jackal compiler), `XRASM` (assembler), `XRLINK` (linker), and RTLLIB (statically linked library of Jackal's standard library), all from the [XR/station SDK](https://github.com/xrarch/newsdk). The `run` convenience recipe also requires variables `RYFS`, `FOX32`, and `FOX32OS`.
Binary file added screenshot.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.

0 comments on commit cbcb279

Please sign in to comment.