Run actual editor.

This commit is contained in:
Dominik Pantůček 2023-04-04 14:22:47 +02:00
parent f1d3a0e318
commit 74afca1354

View file

@ -32,10 +32,16 @@
)
(import scheme
(chicken base))
(chicken base)
(chicken process-context)
(chicken process))
;; Starts an editor on given file
(define (edit-file file-path)
(print "Editing...")
#f)
(let* ((edvar (get-environment-variable "EDITOR"))
(editor (or edvar "editor")))
(process-run editor (list file-path))
))
)