From 44ef292e5b015e8c88cdef57f6776692d0460fc6 Mon Sep 17 00:00:00 2001 From: Daylin Morgan Date: Thu, 19 Sep 2024 17:49:14 -0500 Subject: [PATCH] chore: upgrade to hwylterm --- nimble.lock | 20 ++++++++++---------- src/selector.nim | 1 - src/term.nim | 5 +++-- tsm.nimble | 2 +- 4 files changed, 14 insertions(+), 14 deletions(-) diff --git a/nimble.lock b/nimble.lock index 5215ac8..a2db223 100644 --- a/nimble.lock +++ b/nimble.lock @@ -1,16 +1,6 @@ { "version": 2, "packages": { - "bbansi": { - "version": "0.1.1", - "vcsRevision": "9a85d9ed028f06f1ed1ee6851480a51408a6004e", - "url": "https://github.com/daylinmorgan/bbansi", - "downloadMethod": "git", - "dependencies": [], - "checksums": { - "sha1": "b338433f9a7a1b788b7583674c2b14096ced29ee" - } - }, "cligen": { "version": "1.7.0", "vcsRevision": "4193f802796f15559c81c6dd56724d6f20345917", @@ -21,6 +11,16 @@ "sha1": "300bd7fdb6e48d2d98e34ed0661206b50331e99c" } }, + "hwylterm": { + "version": "0.1.0", + "vcsRevision": "9afc339a9791f25010ea89a4f52204ad8eeda858", + "url": "https://github.com/daylinmorgan/hwylterm", + "downloadMethod": "git", + "dependencies": [], + "checksums": { + "sha1": "853c67ee7f789d825ec6f46c9fbae68e03e43cdb" + } + }, "illwill": { "version": "0.4.1", "vcsRevision": "99a120f7f69868b94f5d35ce7e21dd12535de70c", diff --git a/src/selector.nim b/src/selector.nim index e532e6d..0d51786 100644 --- a/src/selector.nim +++ b/src/selector.nim @@ -142,7 +142,6 @@ proc addProject(b: var Buffer, project: Project, selected: bool) = if project.matched: var displayName = fmt"[red]{input}[/]" if input.len < name.len: - # bbansi missing add(string, bbstring) interface displayName &= fmt"[{project.highlight}]{name[input.len..^1]}[/{project.highlight}]" b.addLine(cur & $displayName.bb) diff --git a/src/term.nim b/src/term.nim index f28a3ac..61c2d73 100644 --- a/src/term.nim +++ b/src/term.nim @@ -1,6 +1,7 @@ import std/strutils -import bbansi -export bbansi +import hwylterm +export hwylterm + const sep = " [magenta]|[/] " prefix = "[cyan]tsm[/]" & sep diff --git a/tsm.nimble b/tsm.nimble index e77e7d1..985b7dd 100644 --- a/tsm.nimble +++ b/tsm.nimble @@ -13,6 +13,6 @@ binDir = "bin" requires "nim >= 2.0.0" requires "illwill >= 0.4.1" requires "cligen" -requires "https://github.com/daylinmorgan/bbansi >= 0.1.1" +requires "https://github.com/daylinmorgan/hwylterm" requires "https://github.com/usu-dev/usu-nim"