Skip to content

luukvbaal/iconlookup

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

12 Commits
 
 
 
 
 
 

Repository files navigation

Expects a directory listing in stdin and prepends icons based on the file extension. If the input is in tree -F or ls -F format, directories, sockets, executables and pipes are also distinguished.

Use for example tree -faiF --noreport | iconlookup | fzf | sed 's/.*[[:space:]]//;s/[|=>*]$//' in your fzf command to filter the indicators.

To filter the indicators in your fzf preview window add e.g. --preview="bat -p -f '$(echo {} | sed 's/.*[[:space:]]//;s/[|=>*]$//')' 2>/dev/null" to your FZF_DEFAULT_OPTS

Output is colorized using ANSI escape codes. Default theme is a random selection of Nord theme colors.

About

Prepend icon to directory listings.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages