diff --git a/doc.go b/doc.go index 208bd109..8b95cd69 100644 --- a/doc.go +++ b/doc.go @@ -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. diff --git a/docstring.go b/docstring.go index d06ddc7e..7c75dd60 100644 --- a/docstring.go +++ b/docstring.go @@ -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. diff --git a/etc/icons.example b/etc/icons.example index 1b5e0377..68d53e34 100644 --- a/etc/icons.example +++ b/etc/icons.example @@ -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 diff --git a/icons.go b/icons.go index 8e32887d..3b56293e 100644 --- a/icons.go +++ b/icons.go @@ -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, ":")) diff --git a/lf.1 b/lf.1 index a965a18d..0f53e41a 100644 --- a/lf.1 +++ b/lf.1 @@ -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.