diff --git a/assets/icons_test.go b/assets/icons_test.go index 2652e16..9d4f179 100644 --- a/assets/icons_test.go +++ b/assets/icons_test.go @@ -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 { @@ -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 { diff --git a/internal/dir/dir.go b/internal/dir/dir.go index d316aaa..94340f0 100644 --- a/internal/dir/dir.go +++ b/internal/dir/dir.go @@ -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 diff --git a/testdata/logo-ls-A.snap b/testdata/logo-ls-A.snap index 986972b..be2992e 100644 --- a/testdata/logo-ls-A.snap +++ b/testdata/logo-ls-A.snap @@ -1,11 +1,11 @@ -ﳑ⠀1test.go -⠀2test.js -⠀3test.py -⠀abc.css -⠀abc.sass -⠀.abc.txt -⠀Dockerfile -⠀Downloads/ -⠀.privateDir/ -נּ⠀test.routes.tsx -⠀testDir/ +ﳑ⠀1test.go +⠀2test.js +⠀3test.py +⠀abc.css +⠀abc.sass +⠀.abc.txt +⠀Dockerfile +⠀Downloads/ +⠀.privateDir/ +נּ⠀test.routes.tsx +⠀testDir/ diff --git a/testdata/logo-ls-R.snap b/testdata/logo-ls-R.snap index 007cefa..4c5e8df 100644 --- a/testdata/logo-ls-R.snap +++ b/testdata/logo-ls-R.snap @@ -1,17 +1,17 @@ -ﱮ testdata/dirEnv: -ﳑ⠀1test.go -⠀2test.js -⠀3test.py -⠀abc.css -⠀abc.sass -⠀Dockerfile -⠀Downloads/ -נּ⠀test.routes.tsx -⠀testDir/ +ﱮ testdata/dirEnv: +ﳑ⠀1test.go +⠀2test.js +⠀3test.py +⠀abc.css +⠀abc.sass +⠀Dockerfile +⠀Downloads/ +נּ⠀test.routes.tsx +⠀testDir/ -ﱮ testdata/dirEnv/Downloads: +ﱮ testdata/dirEnv/Downloads: -ﱮ testdata/dirEnv/testDir: -ﳑ⠀1test.go -⠀2test.js -⠀abc.txt +ﱮ testdata/dirEnv/testDir: +ﳑ⠀1test.go +⠀2test.js +⠀abc.txt diff --git a/testdata/logo-ls-Ra.snap b/testdata/logo-ls-Ra.snap index d8da8e2..a7237db 100644 --- a/testdata/logo-ls-Ra.snap +++ b/testdata/logo-ls-Ra.snap @@ -1,32 +1,32 @@ -ﱮ testdata/dirEnv: -ﱮ⠀. -ﱮ⠀.. -ﳑ⠀1test.go -⠀2test.js -⠀3test.py -⠀abc.css -⠀abc.sass -⠀.abc.txt -⠀Dockerfile -⠀Downloads/ -⠀.privateDir/ -נּ⠀test.routes.tsx -⠀testDir/ +ﱮ testdata/dirEnv: +ﱮ⠀. +ﱮ⠀.. +ﳑ⠀1test.go +⠀2test.js +⠀3test.py +⠀abc.css +⠀abc.sass +⠀.abc.txt +⠀Dockerfile +⠀Downloads/ +⠀.privateDir/ +נּ⠀test.routes.tsx +⠀testDir/ -ﱮ testdata/dirEnv/.privateDir: -ﱮ⠀. -ﱮ⠀.. -ﳑ⠀1test.go -⠀2test.js -⠀abc.txt +ﱮ testdata/dirEnv/.privateDir: +ﱮ⠀. +ﱮ⠀.. +ﳑ⠀1test.go +⠀2test.js +⠀abc.txt -ﱮ testdata/dirEnv/Downloads: -ﱮ⠀. -ﱮ⠀.. +ﱮ testdata/dirEnv/Downloads: +ﱮ⠀. +ﱮ⠀.. -ﱮ testdata/dirEnv/testDir: -ﱮ⠀. -ﱮ⠀.. -ﳑ⠀1test.go -⠀2test.js -⠀abc.txt +ﱮ testdata/dirEnv/testDir: +ﱮ⠀. +ﱮ⠀.. +ﳑ⠀1test.go +⠀2test.js +⠀abc.txt diff --git a/testdata/logo-ls-a.snap b/testdata/logo-ls-a.snap index f325057..cad8d44 100644 --- a/testdata/logo-ls-a.snap +++ b/testdata/logo-ls-a.snap @@ -1,13 +1,13 @@ -ﱮ⠀. -ﱮ⠀.. -ﳑ⠀1test.go -⠀2test.js -⠀3test.py -⠀abc.css -⠀abc.sass -⠀.abc.txt -⠀Dockerfile -⠀Downloads/ -⠀.privateDir/ -נּ⠀test.routes.tsx -⠀testDir/ +ﱮ⠀. +ﱮ⠀.. +ﳑ⠀1test.go +⠀2test.js +⠀3test.py +⠀abc.css +⠀abc.sass +⠀.abc.txt +⠀Dockerfile +⠀Downloads/ +⠀.privateDir/ +נּ⠀test.routes.tsx +⠀testDir/ diff --git a/testdata/logo-ls-r.snap b/testdata/logo-ls-r.snap index 69ecb88..193bc10 100644 --- a/testdata/logo-ls-r.snap +++ b/testdata/logo-ls-r.snap @@ -1,9 +1,9 @@ -⠀testDir/ -נּ⠀test.routes.tsx -⠀Downloads/ -⠀Dockerfile -⠀abc.sass -⠀abc.css -⠀3test.py -⠀2test.js -ﳑ⠀1test.go +⠀testDir/ +נּ⠀test.routes.tsx +⠀Downloads/ +⠀Dockerfile +⠀abc.sass +⠀abc.css +⠀3test.py +⠀2test.js +ﳑ⠀1test.go diff --git a/testdata/logo-ls-sh.snap b/testdata/logo-ls-sh.snap index 1fd74bb..43942c9 100644 --- a/testdata/logo-ls-sh.snap +++ b/testdata/logo-ls-sh.snap @@ -1,9 +1,9 @@ -4.0K⠀ﳑ⠀1test.go -4.0K⠀⠀2test.js -4.0K⠀⠀3test.py -4.0K⠀⠀abc.css -4.0K⠀⠀abc.sass -4.0K⠀⠀Dockerfile -4.0K⠀⠀Downloads/ -4.0K⠀נּ⠀test.routes.tsx -4.0K⠀⠀testDir/ +4.0K⠀ﳑ⠀1test.go +4.0K⠀⠀2test.js +4.0K⠀⠀3test.py +4.0K⠀⠀abc.css +4.0K⠀⠀abc.sass +4.0K⠀⠀Dockerfile +4.0K⠀⠀Downloads/ +4.0K⠀נּ⠀test.routes.tsx +4.0K⠀⠀testDir/ diff --git a/testdata/logo-ls-shRa.snap b/testdata/logo-ls-shRa.snap index 344e496..b3d73a3 100644 --- a/testdata/logo-ls-shRa.snap +++ b/testdata/logo-ls-shRa.snap @@ -1,32 +1,32 @@ -ﱮ testdata/dirEnv: -4.0K⠀ﱮ⠀. -4.0K⠀ﱮ⠀.. -4.0K⠀ﳑ⠀1test.go -4.0K⠀⠀2test.js -4.0K⠀⠀3test.py -4.0K⠀⠀abc.css -4.0K⠀⠀abc.sass -4.0K⠀⠀.abc.txt -4.0K⠀⠀Dockerfile -4.0K⠀⠀Downloads/ -4.0K⠀⠀.privateDir/ -4.0K⠀נּ⠀test.routes.tsx -4.0K⠀⠀testDir/ +ﱮ testdata/dirEnv: +4.0K⠀ﱮ⠀. +4.0K⠀ﱮ⠀.. +4.0K⠀ﳑ⠀1test.go +4.0K⠀⠀2test.js +4.0K⠀⠀3test.py +4.0K⠀⠀abc.css +4.0K⠀⠀abc.sass +4.0K⠀⠀.abc.txt +4.0K⠀⠀Dockerfile +4.0K⠀⠀Downloads/ +4.0K⠀⠀.privateDir/ +4.0K⠀נּ⠀test.routes.tsx +4.0K⠀⠀testDir/ -ﱮ testdata/dirEnv/.privateDir: -4.0K⠀ﱮ⠀. -4.0K⠀ﱮ⠀.. -4.0K⠀ﳑ⠀1test.go -4.0K⠀⠀2test.js -4.0K⠀⠀abc.txt +ﱮ testdata/dirEnv/.privateDir: +4.0K⠀ﱮ⠀. +4.0K⠀ﱮ⠀.. +4.0K⠀ﳑ⠀1test.go +4.0K⠀⠀2test.js +4.0K⠀⠀abc.txt -ﱮ testdata/dirEnv/Downloads: -4.0K⠀ﱮ⠀. -4.0K⠀ﱮ⠀.. +ﱮ testdata/dirEnv/Downloads: +4.0K⠀ﱮ⠀. +4.0K⠀ﱮ⠀.. -ﱮ testdata/dirEnv/testDir: -4.0K⠀ﱮ⠀. -4.0K⠀ﱮ⠀.. -4.0K⠀ﳑ⠀1test.go -4.0K⠀⠀2test.js -4.0K⠀⠀abc.txt +ﱮ testdata/dirEnv/testDir: +4.0K⠀ﱮ⠀. +4.0K⠀ﱮ⠀.. +4.0K⠀ﳑ⠀1test.go +4.0K⠀⠀2test.js +4.0K⠀⠀abc.txt diff --git a/testdata/logo-ls.snap b/testdata/logo-ls.snap index ebd3794..0b3d97e 100644 --- a/testdata/logo-ls.snap +++ b/testdata/logo-ls.snap @@ -1,9 +1,9 @@ -ﳑ⠀1test.go -⠀2test.js -⠀3test.py -⠀abc.css -⠀abc.sass -⠀Dockerfile -⠀Downloads/ -נּ⠀test.routes.tsx -⠀testDir/ +ﳑ⠀1test.go +⠀2test.js +⠀3test.py +⠀abc.css +⠀abc.sass +⠀Dockerfile +⠀Downloads/ +נּ⠀test.routes.tsx +⠀testDir/