Skip to content

Commit

Permalink
wip
Browse files Browse the repository at this point in the history
  • Loading branch information
patinthehat committed Oct 7, 2022
1 parent e79b4d1 commit 129e435
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 3 deletions.
7 changes: 5 additions & 2 deletions cmd/compress-path/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,9 @@ func main() {

parts := strings.Split(currentPath, string(os.PathSeparator))
newParts := make([]string, len(parts))

spaceChar := "\u2002"

var wg sync.WaitGroup
wg.Add(len(parts))

Expand All @@ -53,7 +56,7 @@ func main() {
}

if i == len(newParts)-1 {
newParts[i] = "%{\033[38;5;159m%}" + newParts[i] + "%{\033[38;5;0m%}"
newParts[i] = "%{\033[38;5;159m%}%{\033[1m%}" + newParts[i] + "%{\033[22m%}%{\033[38;5;0m%}"
} else {
newParts[i] = "%{\033[38;5;123m%}" + newParts[i] + "%{\033[38;5;0m%}"
}
Expand All @@ -63,5 +66,5 @@ func main() {
wg.Wait()
//sep := string(os.PathSeparator)
sep := "%{\033[38;5;255m%}\ue216%{\033[38;5;0m%}"
fmt.Printf("%s", strings.Join(newParts, sep))
fmt.Printf("%%{\033[38;5;231m%%}\uf554%s%%{\033[38;5;0m%%}%s", spaceChar, strings.Join(newParts, sep))
}
2 changes: 1 addition & 1 deletion cmd/compress-path/version.go
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
package main

var Version = "1.0.5-dev.6"
var Version = "1.0.5-dev.7"

0 comments on commit 129e435

Please sign in to comment.