chore: upgrade to hwylterm

This commit is contained in:
Daylin Morgan 2024-09-19 17:49:14 -05:00
parent 5991d93bcb
commit 44ef292e5b
Signed by: daylin
GPG key ID: 950D13E9719334AD
4 changed files with 14 additions and 14 deletions

View file

@ -1,16 +1,6 @@
{ {
"version": 2, "version": 2,
"packages": { "packages": {
"bbansi": {
"version": "0.1.1",
"vcsRevision": "9a85d9ed028f06f1ed1ee6851480a51408a6004e",
"url": "https://github.com/daylinmorgan/bbansi",
"downloadMethod": "git",
"dependencies": [],
"checksums": {
"sha1": "b338433f9a7a1b788b7583674c2b14096ced29ee"
}
},
"cligen": { "cligen": {
"version": "1.7.0", "version": "1.7.0",
"vcsRevision": "4193f802796f15559c81c6dd56724d6f20345917", "vcsRevision": "4193f802796f15559c81c6dd56724d6f20345917",
@ -21,6 +11,16 @@
"sha1": "300bd7fdb6e48d2d98e34ed0661206b50331e99c" "sha1": "300bd7fdb6e48d2d98e34ed0661206b50331e99c"
} }
}, },
"hwylterm": {
"version": "0.1.0",
"vcsRevision": "9afc339a9791f25010ea89a4f52204ad8eeda858",
"url": "https://github.com/daylinmorgan/hwylterm",
"downloadMethod": "git",
"dependencies": [],
"checksums": {
"sha1": "853c67ee7f789d825ec6f46c9fbae68e03e43cdb"
}
},
"illwill": { "illwill": {
"version": "0.4.1", "version": "0.4.1",
"vcsRevision": "99a120f7f69868b94f5d35ce7e21dd12535de70c", "vcsRevision": "99a120f7f69868b94f5d35ce7e21dd12535de70c",

View file

@ -142,7 +142,6 @@ proc addProject(b: var Buffer, project: Project, selected: bool) =
if project.matched: if project.matched:
var displayName = fmt"[red]{input}[/]" var displayName = fmt"[red]{input}[/]"
if input.len < name.len: if input.len < name.len:
# bbansi missing add(string, bbstring) interface
displayName &= displayName &=
fmt"[{project.highlight}]{name[input.len..^1]}[/{project.highlight}]" fmt"[{project.highlight}]{name[input.len..^1]}[/{project.highlight}]"
b.addLine(cur & $displayName.bb) b.addLine(cur & $displayName.bb)

View file

@ -1,6 +1,7 @@
import std/strutils import std/strutils
import bbansi import hwylterm
export bbansi export hwylterm
const const
sep = " [magenta]|[/] " sep = " [magenta]|[/] "
prefix = "[cyan]tsm[/]" & sep prefix = "[cyan]tsm[/]" & sep

View file

@ -13,6 +13,6 @@ binDir = "bin"
requires "nim >= 2.0.0" requires "nim >= 2.0.0"
requires "illwill >= 0.4.1" requires "illwill >= 0.4.1"
requires "cligen" 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" requires "https://github.com/usu-dev/usu-nim"