use ascii characters for icon defaults

This commit is contained in:
Gokcehan committed 2022-03-20 01:03:59 +03:00
1 parent e6a1621261
commit 8c71e5ba9f
5 files changed
+75 -72

No files matched your search

+14 -14
View File
@@ -1491,20 +1491,20 @@ Icons file should consist of whitespace separated pairs with '#' character to st
Do not forget to enable 'icons' option to see the icons.
Default values are as follows given with their matching order in lf:
ln 🗎
or 🗎
tw 🗀
ow 🗀
st 🗀
di 🗀
pi 🗎
so 🗎
bd 🗎
cd 🗎
su 🗎
sg 🗎
ex 🗎
fi 🗎
ln l
or l
tw t
ow d
st t
di d
pi p
so s
bd b
cd c
su u
sg g
ex x
fi -
See the wiki page for an example icons configuration
https://github.com/gokcehan/lf/wiki/Icons.
+14 -14
View File
@@ -1677,20 +1677,20 @@ comments until the end of line. Do not forget to enable 'icons' option to
see the icons. Default values are as follows given with their matching order
in lf:
ln 🗎
or 🗎
tw 🗀
ow 🗀
st 🗀
di 🗀
pi 🗎
so 🗎
bd 🗎
cd 🗎
su 🗎
sg 🗎
ex 🗎
fi 🗎
ln l
or l
tw t
ow d
st t
di d
pi p
so s
bd b
cd c
su u
sg g
ex x
fi -
See the wiki page for an example icons configuration
https://github.com/gokcehan/lf/wiki/Icons.
+19 -16
View File
@@ -1,20 +1,23 @@
# vim:ft=conf
# These examples require Nerd Fonts or a compatible font to be used.
# See https://www.nerdfonts.com for more information.
# default values from lf (with matching order)
# ln 🗎 # LINK
# or 🗎 # ORPHAN
# tw 🗀 # STICKY_OTHER_WRITABLE
# ow 🗀 # OTHER_WRITABLE
# st 🗀 # STICKY
# di 🗀 # DIR
# pi 🗎 # FIFO
# so 🗎 # SOCK
# bd 🗎 # BLK
# cd 🗎 # CHR
# su 🗎 # SETUID
# sg 🗎 # SETGID
# ex 🗎 # EXEC
# fi 🗎 # FILE
# ln l # LINK
# or l # ORPHAN
# tw t # STICKY_OTHER_WRITABLE
# ow d # OTHER_WRITABLE
# st t # STICKY
# di d # DIR
# pi p # FIFO
# so s # SOCK
# bd b # BLK
# cd c # CHR
# su u # SETUID
# sg g # SETGID
# ex x # EXEC
# fi - # FILE
# file types (with matching order)
ln  # LINK
@@ -24,8 +27,8 @@ ow  # OTHER_WRITABLE
st t # STICKY
di  # DIR
pi p # FIFO
so S # SOCK
bd D # BLK
so s # SOCK
bd b # BLK
cd c # CHR
su u # SETUID
sg g # SETGID
+14 -14
View File
@@ -13,20 +13,20 @@ func parseIcons() iconMap {
im := make(iconMap)
defaultIcons := []string{
"fi=🗎",
"di=🗀",
"ln=🗎",
"pi=🗎",
"so=🗎",
"bd=🗎",
"cd=🗎",
"or=🗎",
"su=🗎",
"sg=🗎",
"tw=🗀",
"ow=🗀",
"st=🗀",
"ex=🗎",
"ln=l",
"or=l",
"tw=t",
"ow=d",
"st=t",
"di=d",
"pi=p",
"so=s",
"bd=b",
"cd=c",
"su=u",
"sg=g",
"ex=x",
"fi=-",
}
im.parseEnv(strings.Join(defaultIcons, ":"))
+14 -14
View File
@@ -1652,20 +1652,20 @@ See the wiki page for ansi escape codes https://en.wikipedia.org/wiki/ANSI_escap
Icons are configured using 'LF_ICONS' environment variable or an icons file. The variable uses the same syntax as 'LS_COLORS/LF_COLORS'. Instead of colors, you should put a single characters as values of entries. Icons file should consist of whitespace separated pairs with '#' character to start comments until the end of line. Do not forget to enable 'icons' option to see the icons. Default values are as follows given with their matching order in lf:
.PP
.EX
ln 🗎
or 🗎
tw 🗀
ow 🗀
st 🗀
di 🗀
pi 🗎
so 🗎
bd 🗎
cd 🗎
su 🗎
sg 🗎
ex 🗎
fi 🗎
ln l
or l
tw t
ow d
st t
di d
pi p
so s
bd b
cd c
su u
sg g
ex x
fi -
.EE
.PP
See the wiki page for an example icons configuration https://github.com/gokcehan/lf/wiki/Icons.