Compare commits

...

2 commits

Author SHA1 Message Date
544b4f5c6f
refactor: noop 2024-10-07 10:31:13 -05:00
1d12d810f0
change colors 2024-10-07 10:31:07 -05:00
2 changed files with 10 additions and 10 deletions

View file

@ -132,8 +132,8 @@ proc getProject(): Project =
func highlight(p: Project): string = func highlight(p: Project): string =
if p.location == "": "green" if p.location == "": "green"
elif p.open: "yellow" elif p.open: "bold yellow"
elif p.named: "bold cyan" elif p.named: "cyan"
else: "default" else: "default"
proc addProject(b: var Buffer, project: Project, selected: bool) = proc addProject(b: var Buffer, project: Project, selected: bool) =

View file

@ -17,19 +17,19 @@ when isMainModule:
import std/parseopt import std/parseopt
import hwylterm, hwylterm/cli import hwylterm, hwylterm/cli
const tsmVersion {.strdefine.} = staticExec "git describe --tags --always HEAD --match 'v*'" const
proc help() = tsmVersion {.strdefine.} =
echo newHwylCli( staticExec "git describe --tags --always HEAD --match 'v*'"
usage =
"""tmux session manager """tmux session manager
[bold]tsm[/] [[[faint]-h|-v|-o[/]]""", [bold]tsm[/] [[[faint]-h|-v|-o[/]]"""
flags = [
flags = [
("h","help","show this help"), ("h","help","show this help"),
("v","version", "print version"), ("v","version", "print version"),
("o","open", "only search open sessions") ("o","open", "only search open sessions")
] ]
) proc help() = echo newHwylCli(usage, flags = flags)
var open: bool var open: bool
var p = initOptParser( var p = initOptParser(
shortNoVal = {'h', 'v', 'o'}, shortNoVal = {'h', 'v', 'o'},