Compare commits
No commits in common. "656fd5a88f0673d93a86b57ee7fead9c263ca3b5" and "0485352caa3c994b3b73264511bfa35082e2c8d2" have entirely different histories.
656fd5a88f
...
0485352caa
2 changed files with 4 additions and 15 deletions
|
@ -82,22 +82,11 @@ proc getObject(time: string): Info =
|
|||
data.border = default_fg
|
||||
return data
|
||||
|
||||
proc show(time: string, next_fuzzy: bool = false) =
|
||||
let data = getObject(time)
|
||||
let x = outputData(data)
|
||||
if x == time:
|
||||
case next_fuzzy:
|
||||
of true:
|
||||
let t = getFuzzyTime()
|
||||
show(t, false)
|
||||
else:
|
||||
let t = now().format("HH:mm:ss")
|
||||
show(t, true)
|
||||
|
||||
|
||||
proc main() =
|
||||
let time = getFuzzyTime()
|
||||
show(time)
|
||||
let data = getObject(time)
|
||||
outputData(data)
|
||||
|
||||
if isMainModule:
|
||||
main()
|
||||
|
|
|
@ -46,10 +46,10 @@ proc selectRemmina(conn: string) =
|
|||
case output:
|
||||
of "connect":
|
||||
startRemmina(conn)
|
||||
#switchWorkspace()
|
||||
switchWorkspace()
|
||||
of "edit":
|
||||
editRemmina(conn)
|
||||
#switchWorkspace()
|
||||
switchWorkspace()
|
||||
of "back":
|
||||
main()
|
||||
|
||||
|
|
Loading…
Reference in a new issue