Edit functionality no loger relies on sub-process receiving parent ENV.
This commit is contained in:
parent
3a4905ff6c
commit
136e0ade02
@ -1 +1 @@
|
|||||||
const PTK_VERSION* = "1.0.7"
|
const PTK_VERSION* = "1.0.8"
|
3
ptk.nim
3
ptk.nim
@ -149,7 +149,8 @@ proc edit(mark: Mark): Mark =
|
|||||||
close(tempFile)
|
close(tempFile)
|
||||||
tempFile = nil
|
tempFile = nil
|
||||||
|
|
||||||
discard os.execShellCmd "$EDITOR " & tempFileName & " </dev/tty >/dev/tty"
|
let editor = getEnv("EDITOR", "vim")
|
||||||
|
discard os.execShellCmd editor & " " & tempFileName & " </dev/tty >/dev/tty"
|
||||||
|
|
||||||
var markPart = Time
|
var markPart = Time
|
||||||
var notes: seq[string] = @[]
|
var notes: seq[string] = @[]
|
||||||
|
@ -1,6 +1,6 @@
|
|||||||
# Package
|
# Package
|
||||||
|
|
||||||
version = "1.0.7"
|
version = "1.0.8"
|
||||||
author = "Jonathan Bernard"
|
author = "Jonathan Bernard"
|
||||||
description = "Personal Time Keeper"
|
description = "Personal Time Keeper"
|
||||||
license = "MIT"
|
license = "MIT"
|
||||||
|
Loading…
x
Reference in New Issue
Block a user