A Typescript CLI text editor based on Kilo (https://viewsourcecode.org/snaptoken/kilo/) and Hecto (https://www.flenker.blog/hecto/)
Go to file
Timothy J. Warren 2c21bf0c9b
All checks were successful
timw4mail/scroll/pipeline/head This commit looks good
Use node apis for test setup, refactor a bunch of runtime stuff
2024-07-11 17:27:49 -04:00
src Use node apis for test setup, refactor a bunch of runtime stuff 2024-07-11 17:27:49 -04:00
.editorconfig Rough start to Deno runtime implemenation 2023-10-27 16:02:54 -04:00
.gitignore Fix some issues with line splitting/merging 2024-07-10 16:12:39 -04:00
bunfig.toml Refactor tests to be consistent for both runtimes 2023-11-16 20:57:21 -05:00
coverage.sh Update gitignore and generated file cleanup 2023-11-22 17:20:16 -05:00
deno.jsonc Basic file opening and display. Off-by-one bug skipping first line, though 2023-11-14 15:53:45 -05:00
Jenkinsfile Attempt to fix Deno CI tests 2024-06-26 15:46:08 -04:00
justfile Put the important scripts package.json so they can be run without Just 2024-07-10 16:32:28 -04:00
package.json Put the important scripts package.json so they can be run without Just 2024-07-10 16:32:28 -04:00
README.md Fix some issues with line splitting/merging 2024-07-10 16:12:39 -04:00
tsconfig.json Use node apis for test setup, refactor a bunch of runtime stuff 2024-07-11 17:27:49 -04:00

Scroll

Making a text editor in Typescript based on Kilo (Script + Kilo = Scroll). This runs on

  • Bun (v1.0 or later)
  • Deno (v1.37 or later)
  • TSX - this is a Typescript wrapper using NodeJS (v20 or later)

To simplify running, I'm using Just.

  • Bun: just bun-run [filename]
  • Deno: just deno-run [filename]
  • TSX: just tsx-run [filename

Deno is generally used for dev tools, but each runtime should be functionally equivalent running the text editor.

Development Notes

  • Implementation is based on Kilo and Hecto
  • Runtime differences are adapted into a common interface
  • Runtime implementations are in the src/deno, src/bun, src/tsx folders
  • The main implementation is in src/common