Run actual editor.
This commit is contained in:
parent
f1d3a0e318
commit
74afca1354
1 changed files with 8 additions and 2 deletions
|
@ -32,10 +32,16 @@
|
||||||
)
|
)
|
||||||
|
|
||||||
(import scheme
|
(import scheme
|
||||||
(chicken base))
|
(chicken base)
|
||||||
|
(chicken process-context)
|
||||||
|
(chicken process))
|
||||||
|
|
||||||
|
;; Starts an editor on given file
|
||||||
(define (edit-file file-path)
|
(define (edit-file file-path)
|
||||||
(print "Editing...")
|
(print "Editing...")
|
||||||
#f)
|
(let* ((edvar (get-environment-variable "EDITOR"))
|
||||||
|
(editor (or edvar "editor")))
|
||||||
|
(process-run editor (list file-path))
|
||||||
|
))
|
||||||
|
|
||||||
)
|
)
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue