Skip to content

Commit

Permalink
Updated snapshort for change from white to noColor
Browse files Browse the repository at this point in the history
  • Loading branch information
Yash-Handa committed Dec 28, 2020
1 parent f05b146 commit 50b0a29
Show file tree
Hide file tree
Showing 10 changed files with 127 additions and 127 deletions.
4 changes: 2 additions & 2 deletions assets/icons_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ func TestFileIcons(t *testing.T) {
i := assets.Icon_Set[v]
fmt.Fprintln(os.Stderr)
buf := bytes.NewBuffer([]byte(""))
log.Println("Printing files of type", i.GetColor(1)+v+"\033[38;2;255;255;255m")
log.Println("Printing files of type", i.GetColor(1)+v+"\033[0m")
w := ctw.New(terminalWidth)
for f, d := range assets.Icon_FileName {
if d == i {
Expand All @@ -46,7 +46,7 @@ func TestFileIcons(t *testing.T) {
io.Copy(os.Stderr, buf)

buf = bytes.NewBuffer([]byte(""))
log.Println("Printing extentions of type", i.GetColor(1)+v+"\033[38;2;255;255;255m")
log.Println("Printing extentions of type", i.GetColor(1)+v+"\033[0m")
w = ctw.New(terminalWidth)
for e, d := range assets.Icon_Ext {
if d == i {
Expand Down
2 changes: 1 addition & 1 deletion internal/dir/dir.go
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ import (
)

// create the open dir icon
var OpenDirIcon = assets.Icon_Def["diropen"].GetColor(1) + assets.Icon_Def["diropen"].GetGlyph() + "\033[38;2;255;255;255m" + " "
var OpenDirIcon = assets.Icon_Def["diropen"].GetColor(1) + assets.Icon_Def["diropen"].GetGlyph() + "\033[0m" + " "

type file struct {
name, ext, indicator string
Expand Down
22 changes: 11 additions & 11 deletions testdata/logo-ls-A.snap
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
[38;2;032;173;194mﳑ[38;2;255;255;255m⠀1test.go
[38;2;255;202;061m[38;2;255;255;255m⠀2test.js
[38;2;052;102;143m[38;2;255;255;255m⠀3test.py
[38;2;066;165;245m[38;2;255;255;255mabc.css
[38;2;237;080;122m[38;2;255;255;255mabc.sass
[38;2;066;165;245m[38;2;255;255;255m⠀.abc.txt
[38;2;001;135;201m[38;2;255;255;255mDockerfile
[38;2;076;175;080m[38;2;255;255;255mDownloads/
[38;2;224;177;077m[38;2;255;255;255m⠀.privateDir/
[38;2;067;160;071mנּ[38;2;255;255;255mtest.routes.tsx
[38;2;224;177;077m[38;2;255;255;255mtestDir/
[38;2;032;173;194mﳑ[0m⠀1test.go
[38;2;255;202;061m[0m⠀2test.js
[38;2;052;102;143m[0m⠀3test.py
[38;2;066;165;245m[0mabc.css
[38;2;237;080;122m[0mabc.sass
[38;2;066;165;245m[0m⠀.abc.txt
[38;2;001;135;201m[0mDockerfile
[38;2;076;175;080m[0mDownloads/
[38;2;224;177;077m[0m⠀.privateDir/
[38;2;067;160;071mנּ[0mtest.routes.tsx
[38;2;224;177;077m[0mtestDir/
30 changes: 15 additions & 15 deletions testdata/logo-ls-R.snap
Original file line number Diff line number Diff line change
@@ -1,17 +1,17 @@
[38;2;224;177;077mﱮ[38;2;255;255;255m testdata/dirEnv:
[38;2;032;173;194mﳑ[38;2;255;255;255m⠀1test.go
[38;2;255;202;061m[38;2;255;255;255m⠀2test.js
[38;2;052;102;143m[38;2;255;255;255m⠀3test.py
[38;2;066;165;245m[38;2;255;255;255mabc.css
[38;2;237;080;122m[38;2;255;255;255mabc.sass
[38;2;001;135;201m[38;2;255;255;255mDockerfile
[38;2;076;175;080m[38;2;255;255;255mDownloads/
[38;2;067;160;071mנּ[38;2;255;255;255mtest.routes.tsx
[38;2;224;177;077m[38;2;255;255;255mtestDir/
[38;2;224;177;077mﱮ[0m testdata/dirEnv:
[38;2;032;173;194mﳑ[0m⠀1test.go
[38;2;255;202;061m[0m⠀2test.js
[38;2;052;102;143m[0m⠀3test.py
[38;2;066;165;245m[0mabc.css
[38;2;237;080;122m[0mabc.sass
[38;2;001;135;201m[0mDockerfile
[38;2;076;175;080m[0mDownloads/
[38;2;067;160;071mנּ[0mtest.routes.tsx
[38;2;224;177;077m[0mtestDir/

[38;2;224;177;077mﱮ[38;2;255;255;255m testdata/dirEnv/Downloads:
[38;2;224;177;077mﱮ[0m testdata/dirEnv/Downloads:

[38;2;224;177;077mﱮ[38;2;255;255;255m testdata/dirEnv/testDir:
[38;2;032;173;194mﳑ[38;2;255;255;255m⠀1test.go
[38;2;255;202;061m[38;2;255;255;255m⠀2test.js
[38;2;066;165;245m[38;2;255;255;255mabc.txt
[38;2;224;177;077mﱮ[0m testdata/dirEnv/testDir:
[38;2;032;173;194mﳑ[0m⠀1test.go
[38;2;255;202;061m[0m⠀2test.js
[38;2;066;165;245m[0mabc.txt
58 changes: 29 additions & 29 deletions testdata/logo-ls-Ra.snap
Original file line number Diff line number Diff line change
@@ -1,32 +1,32 @@
[38;2;224;177;077mﱮ[38;2;255;255;255m testdata/dirEnv:
[38;2;224;177;077mﱮ[38;2;255;255;255m⠀.
[38;2;224;177;077mﱮ[38;2;255;255;255m⠀..
[38;2;032;173;194mﳑ[38;2;255;255;255m⠀1test.go
[38;2;255;202;061m[38;2;255;255;255m⠀2test.js
[38;2;052;102;143m[38;2;255;255;255m⠀3test.py
[38;2;066;165;245m[38;2;255;255;255mabc.css
[38;2;237;080;122m[38;2;255;255;255mabc.sass
[38;2;066;165;245m[38;2;255;255;255m⠀.abc.txt
[38;2;001;135;201m[38;2;255;255;255mDockerfile
[38;2;076;175;080m[38;2;255;255;255mDownloads/
[38;2;224;177;077m[38;2;255;255;255m⠀.privateDir/
[38;2;067;160;071mנּ[38;2;255;255;255mtest.routes.tsx
[38;2;224;177;077m[38;2;255;255;255mtestDir/
[38;2;224;177;077mﱮ[0m testdata/dirEnv:
[38;2;224;177;077mﱮ[0m⠀.
[38;2;224;177;077mﱮ[0m⠀..
[38;2;032;173;194mﳑ[0m⠀1test.go
[38;2;255;202;061m[0m⠀2test.js
[38;2;052;102;143m[0m⠀3test.py
[38;2;066;165;245m[0mabc.css
[38;2;237;080;122m[0mabc.sass
[38;2;066;165;245m[0m⠀.abc.txt
[38;2;001;135;201m[0mDockerfile
[38;2;076;175;080m[0mDownloads/
[38;2;224;177;077m[0m⠀.privateDir/
[38;2;067;160;071mנּ[0mtest.routes.tsx
[38;2;224;177;077m[0mtestDir/

[38;2;224;177;077mﱮ[38;2;255;255;255m testdata/dirEnv/.privateDir:
[38;2;224;177;077mﱮ[38;2;255;255;255m⠀.
[38;2;224;177;077mﱮ[38;2;255;255;255m⠀..
[38;2;032;173;194mﳑ[38;2;255;255;255m⠀1test.go
[38;2;255;202;061m[38;2;255;255;255m⠀2test.js
[38;2;066;165;245m[38;2;255;255;255mabc.txt
[38;2;224;177;077mﱮ[0m testdata/dirEnv/.privateDir:
[38;2;224;177;077mﱮ[0m⠀.
[38;2;224;177;077mﱮ[0m⠀..
[38;2;032;173;194mﳑ[0m⠀1test.go
[38;2;255;202;061m[0m⠀2test.js
[38;2;066;165;245m[0mabc.txt

[38;2;224;177;077mﱮ[38;2;255;255;255m testdata/dirEnv/Downloads:
[38;2;224;177;077mﱮ[38;2;255;255;255m⠀.
[38;2;224;177;077mﱮ[38;2;255;255;255m⠀..
[38;2;224;177;077mﱮ[0m testdata/dirEnv/Downloads:
[38;2;224;177;077mﱮ[0m⠀.
[38;2;224;177;077mﱮ[0m⠀..

[38;2;224;177;077mﱮ[38;2;255;255;255m testdata/dirEnv/testDir:
[38;2;224;177;077mﱮ[38;2;255;255;255m⠀.
[38;2;224;177;077mﱮ[38;2;255;255;255m⠀..
[38;2;032;173;194mﳑ[38;2;255;255;255m⠀1test.go
[38;2;255;202;061m[38;2;255;255;255m⠀2test.js
[38;2;066;165;245m[38;2;255;255;255mabc.txt
[38;2;224;177;077mﱮ[0m testdata/dirEnv/testDir:
[38;2;224;177;077mﱮ[0m⠀.
[38;2;224;177;077mﱮ[0m⠀..
[38;2;032;173;194mﳑ[0m⠀1test.go
[38;2;255;202;061m[0m⠀2test.js
[38;2;066;165;245m[0mabc.txt
26 changes: 13 additions & 13 deletions testdata/logo-ls-a.snap
Original file line number Diff line number Diff line change
@@ -1,13 +1,13 @@
[38;2;224;177;077mﱮ[38;2;255;255;255m⠀.
[38;2;224;177;077mﱮ[38;2;255;255;255m⠀..
[38;2;032;173;194mﳑ[38;2;255;255;255m⠀1test.go
[38;2;255;202;061m[38;2;255;255;255m⠀2test.js
[38;2;052;102;143m[38;2;255;255;255m⠀3test.py
[38;2;066;165;245m[38;2;255;255;255mabc.css
[38;2;237;080;122m[38;2;255;255;255mabc.sass
[38;2;066;165;245m[38;2;255;255;255m⠀.abc.txt
[38;2;001;135;201m[38;2;255;255;255mDockerfile
[38;2;076;175;080m[38;2;255;255;255mDownloads/
[38;2;224;177;077m[38;2;255;255;255m⠀.privateDir/
[38;2;067;160;071mנּ[38;2;255;255;255mtest.routes.tsx
[38;2;224;177;077m[38;2;255;255;255mtestDir/
[38;2;224;177;077mﱮ[0m⠀.
[38;2;224;177;077mﱮ[0m⠀..
[38;2;032;173;194mﳑ[0m⠀1test.go
[38;2;255;202;061m[0m⠀2test.js
[38;2;052;102;143m[0m⠀3test.py
[38;2;066;165;245m[0mabc.css
[38;2;237;080;122m[0mabc.sass
[38;2;066;165;245m[0m⠀.abc.txt
[38;2;001;135;201m[0mDockerfile
[38;2;076;175;080m[0mDownloads/
[38;2;224;177;077m[0m⠀.privateDir/
[38;2;067;160;071mנּ[0mtest.routes.tsx
[38;2;224;177;077m[0mtestDir/
18 changes: 9 additions & 9 deletions testdata/logo-ls-r.snap
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
[38;2;224;177;077m[38;2;255;255;255mtestDir/
[38;2;067;160;071mנּ[38;2;255;255;255mtest.routes.tsx
[38;2;076;175;080m[38;2;255;255;255mDownloads/
[38;2;001;135;201m[38;2;255;255;255mDockerfile
[38;2;237;080;122m[38;2;255;255;255mabc.sass
[38;2;066;165;245m[38;2;255;255;255mabc.css
[38;2;052;102;143m[38;2;255;255;255m⠀3test.py
[38;2;255;202;061m[38;2;255;255;255m⠀2test.js
[38;2;032;173;194mﳑ[38;2;255;255;255m⠀1test.go
[38;2;224;177;077m[0mtestDir/
[38;2;067;160;071mנּ[0mtest.routes.tsx
[38;2;076;175;080m[0mDownloads/
[38;2;001;135;201m[0mDockerfile
[38;2;237;080;122m[0mabc.sass
[38;2;066;165;245m[0mabc.css
[38;2;052;102;143m[0m⠀3test.py
[38;2;255;202;061m[0m⠀2test.js
[38;2;032;173;194mﳑ[0m⠀1test.go
18 changes: 9 additions & 9 deletions testdata/logo-ls-sh.snap
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
4.0K⠀[38;2;032;173;194mﳑ[38;2;255;255;255m⠀1test.go
4.0K⠀[38;2;255;202;061m[38;2;255;255;255m⠀2test.js
4.0K⠀[38;2;052;102;143m[38;2;255;255;255m⠀3test.py
4.0K⠀[38;2;066;165;245m[38;2;255;255;255mabc.css
4.0K⠀[38;2;237;080;122m[38;2;255;255;255mabc.sass
4.0K⠀[38;2;001;135;201m[38;2;255;255;255mDockerfile
4.0K⠀[38;2;076;175;080m[38;2;255;255;255mDownloads/
4.0K⠀[38;2;067;160;071mנּ[38;2;255;255;255mtest.routes.tsx
4.0K⠀[38;2;224;177;077m[38;2;255;255;255mtestDir/
4.0K⠀[38;2;032;173;194mﳑ[0m⠀1test.go
4.0K⠀[38;2;255;202;061m[0m⠀2test.js
4.0K⠀[38;2;052;102;143m[0m⠀3test.py
4.0K⠀[38;2;066;165;245m[0mabc.css
4.0K⠀[38;2;237;080;122m[0mabc.sass
4.0K⠀[38;2;001;135;201m[0mDockerfile
4.0K⠀[38;2;076;175;080m[0mDownloads/
4.0K⠀[38;2;067;160;071mנּ[0mtest.routes.tsx
4.0K⠀[38;2;224;177;077m[0mtestDir/
58 changes: 29 additions & 29 deletions testdata/logo-ls-shRa.snap
Original file line number Diff line number Diff line change
@@ -1,32 +1,32 @@
[38;2;224;177;077mﱮ[38;2;255;255;255m testdata/dirEnv:
4.0K⠀[38;2;224;177;077mﱮ[38;2;255;255;255m⠀.
4.0K⠀[38;2;224;177;077mﱮ[38;2;255;255;255m⠀..
4.0K⠀[38;2;032;173;194mﳑ[38;2;255;255;255m⠀1test.go
4.0K⠀[38;2;255;202;061m[38;2;255;255;255m⠀2test.js
4.0K⠀[38;2;052;102;143m[38;2;255;255;255m⠀3test.py
4.0K⠀[38;2;066;165;245m[38;2;255;255;255mabc.css
4.0K⠀[38;2;237;080;122m[38;2;255;255;255mabc.sass
4.0K⠀[38;2;066;165;245m[38;2;255;255;255m⠀.abc.txt
4.0K⠀[38;2;001;135;201m[38;2;255;255;255mDockerfile
4.0K⠀[38;2;076;175;080m[38;2;255;255;255mDownloads/
4.0K⠀[38;2;224;177;077m[38;2;255;255;255m⠀.privateDir/
4.0K⠀[38;2;067;160;071mנּ[38;2;255;255;255mtest.routes.tsx
4.0K⠀[38;2;224;177;077m[38;2;255;255;255mtestDir/
[38;2;224;177;077mﱮ[0m testdata/dirEnv:
4.0K⠀[38;2;224;177;077mﱮ[0m⠀.
4.0K⠀[38;2;224;177;077mﱮ[0m⠀..
4.0K⠀[38;2;032;173;194mﳑ[0m⠀1test.go
4.0K⠀[38;2;255;202;061m[0m⠀2test.js
4.0K⠀[38;2;052;102;143m[0m⠀3test.py
4.0K⠀[38;2;066;165;245m[0mabc.css
4.0K⠀[38;2;237;080;122m[0mabc.sass
4.0K⠀[38;2;066;165;245m[0m⠀.abc.txt
4.0K⠀[38;2;001;135;201m[0mDockerfile
4.0K⠀[38;2;076;175;080m[0mDownloads/
4.0K⠀[38;2;224;177;077m[0m⠀.privateDir/
4.0K⠀[38;2;067;160;071mנּ[0mtest.routes.tsx
4.0K⠀[38;2;224;177;077m[0mtestDir/

[38;2;224;177;077mﱮ[38;2;255;255;255m testdata/dirEnv/.privateDir:
4.0K⠀[38;2;224;177;077mﱮ[38;2;255;255;255m⠀.
4.0K⠀[38;2;224;177;077mﱮ[38;2;255;255;255m⠀..
4.0K⠀[38;2;032;173;194mﳑ[38;2;255;255;255m⠀1test.go
4.0K⠀[38;2;255;202;061m[38;2;255;255;255m⠀2test.js
4.0K⠀[38;2;066;165;245m[38;2;255;255;255mabc.txt
[38;2;224;177;077mﱮ[0m testdata/dirEnv/.privateDir:
4.0K⠀[38;2;224;177;077mﱮ[0m⠀.
4.0K⠀[38;2;224;177;077mﱮ[0m⠀..
4.0K⠀[38;2;032;173;194mﳑ[0m⠀1test.go
4.0K⠀[38;2;255;202;061m[0m⠀2test.js
4.0K⠀[38;2;066;165;245m[0mabc.txt

[38;2;224;177;077mﱮ[38;2;255;255;255m testdata/dirEnv/Downloads:
4.0K⠀[38;2;224;177;077mﱮ[38;2;255;255;255m⠀.
4.0K⠀[38;2;224;177;077mﱮ[38;2;255;255;255m⠀..
[38;2;224;177;077mﱮ[0m testdata/dirEnv/Downloads:
4.0K⠀[38;2;224;177;077mﱮ[0m⠀.
4.0K⠀[38;2;224;177;077mﱮ[0m⠀..

[38;2;224;177;077mﱮ[38;2;255;255;255m testdata/dirEnv/testDir:
4.0K⠀[38;2;224;177;077mﱮ[38;2;255;255;255m⠀.
4.0K⠀[38;2;224;177;077mﱮ[38;2;255;255;255m⠀..
4.0K⠀[38;2;032;173;194mﳑ[38;2;255;255;255m⠀1test.go
4.0K⠀[38;2;255;202;061m[38;2;255;255;255m⠀2test.js
4.0K⠀[38;2;066;165;245m[38;2;255;255;255mabc.txt
[38;2;224;177;077mﱮ[0m testdata/dirEnv/testDir:
4.0K⠀[38;2;224;177;077mﱮ[0m⠀.
4.0K⠀[38;2;224;177;077mﱮ[0m⠀..
4.0K⠀[38;2;032;173;194mﳑ[0m⠀1test.go
4.0K⠀[38;2;255;202;061m[0m⠀2test.js
4.0K⠀[38;2;066;165;245m[0mabc.txt
18 changes: 9 additions & 9 deletions testdata/logo-ls.snap
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
[38;2;032;173;194mﳑ[38;2;255;255;255m⠀1test.go
[38;2;255;202;061m[38;2;255;255;255m⠀2test.js
[38;2;052;102;143m[38;2;255;255;255m⠀3test.py
[38;2;066;165;245m[38;2;255;255;255mabc.css
[38;2;237;080;122m[38;2;255;255;255mabc.sass
[38;2;001;135;201m[38;2;255;255;255mDockerfile
[38;2;076;175;080m[38;2;255;255;255mDownloads/
[38;2;067;160;071mנּ[38;2;255;255;255mtest.routes.tsx
[38;2;224;177;077m[38;2;255;255;255mtestDir/
[38;2;032;173;194mﳑ[0m⠀1test.go
[38;2;255;202;061m[0m⠀2test.js
[38;2;052;102;143m[0m⠀3test.py
[38;2;066;165;245m[0mabc.css
[38;2;237;080;122m[0mabc.sass
[38;2;001;135;201m[0mDockerfile
[38;2;076;175;080m[0mDownloads/
[38;2;067;160;071mנּ[0mtest.routes.tsx
[38;2;224;177;077m[0mtestDir/

0 comments on commit 50b0a29

Please sign in to comment.