Okay we're officially gonna use spaces now

This commit is contained in:
Skylar 2023-11-04 09:29:18 -05:00
parent 878eadd075
commit 213552d0fc
2 changed files with 21 additions and 21 deletions

View File

@ -11,12 +11,12 @@
;;; Code: ;;; Code:
(use-modules (config) (use-modules (config)
(config api) (config api)
(config licenses) (config licenses)
(config parser sexp) (config parser sexp)
(sloth editor) (sloth editor)
(sloth interface) (sloth interface)
(ncurses curses)) (ncurses curses))
;; Commandline handling ;; Commandline handling
@ -29,14 +29,14 @@
(license @LICENSE@) (license @LICENSE@)
(synopsis "Text editor based on tree-sitter") (synopsis "Text editor based on tree-sitter")
(description (description
"TODO") "TODO")
(arguments (arguments
(list (list
(argument (name 'file) (argument (name 'file)
(default "") (default "")
(test string?) (test string?)
(synopsis "The file to open") (synopsis "The file to open")
(example "./file.txt")))) (example "./file.txt"))))
(directory (in-home ".config/")) (directory (in-home ".config/"))
(parser simple-sexp-parser) (parser simple-sexp-parser)
(generate-cmdtree? #t))) (generate-cmdtree? #t)))

View File

@ -10,19 +10,19 @@
(define ch (getch win)) (define ch (getch win))
(cond (cond
((eqv? ch KEY_BACKSPACE) ((eqv? ch KEY_BACKSPACE)
(delch win #:y y #:x (- x 1))) (delch win #:y y #:x (- x 1)))
((eqv? ch KEY_DC) ((eqv? ch KEY_DC)
(delch win)) (delch win))
((eqv? ch KEY_LEFT) ((eqv? ch KEY_LEFT)
(move win y (- x 1))) (move win y (- x 1)))
((eqv? ch KEY_RIGHT) ((eqv? ch KEY_RIGHT)
(move win y (+ x 1))) (move win y (+ x 1)))
((eqv? ch KEY_UP) ((eqv? ch KEY_UP)
(move win (- y 1) x)) (move win (- y 1) x))
((eqv? ch KEY_DOWN) ((eqv? ch KEY_DOWN)
(move win (+ y 1) x)) (move win (+ y 1) x))
((eqv? ch #\q) ((eqv? ch #\q)
(endwin) (endwin)
(quit)) (quit))
(else (echochar win (normal ch)))) (else (echochar win (normal ch))))
(core-loop win)) (core-loop win))