Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We鈥檒l occasionally send you account related emails.

Already on GitHub? Sign in to your account

For some cases, icons are not displayed #7

Closed
haosmos opened this issue Jun 4, 2021 · 3 comments
Closed

For some cases, icons are not displayed #7

haosmos opened this issue Jun 4, 2021 · 3 comments

Comments

@haosmos
Copy link

haosmos commented Jun 4, 2021

Hi! 馃槂

For some reason, in some cases, icons in folders are not displayed.

I am using PowerColorLS version 1.0.2 and terminal-icons version 0.5.1

I'm using PowerShell 7.2.0-preview.6

Here is my powershell profile file with the settings:

# $global:DefaultUser = [System.Environment]::UserName
$env:POSH_SESSION_DEFAULT_USER = [System.Environment]::UserName

Import-Module posh-git

Import-Module oh-my-posh

Set-PoshPrompt -Theme ~/.oh-my-posh.omp.json

Import-Module PSReadLine

Import-Module Terminal-Icons

Import-Module PowerColorLS

# Shows navigable menu of all options when hitting Tab
Set-PSReadLineKeyHandler -Key Tab -Function MenuComplete

# Autocompleteion for Arrow keys
Set-PSReadLineOption -HistorySearchCursorMovesToEnd
Set-PSReadLineKeyHandler -Key UpArrow -Function HistorySearchBackward
Set-PSReadLineKeyHandler -Key DownArrow -Function HistorySearchForward

Set-PSReadLineOption -ShowToolTips
Set-PSReadLineOption -PredictionSource History

#Set the color for Prediction (auto-suggestion)
Set-PSReadlineOption -Colors @{Prediction = "#0bda51" }

Set-PSReadLineOption -Colors @{
  Command            = '#00ff00'
  Number             = '#0ee7ff'
  Member             = '#ffff00'
  Operator           = '#08e8de'
  Type               = '#c72fff'
  Variable           = '#c0ff2f'
  Parameter          = '#fde910'
  ContinuationPrompt = 'DarkGray'
  Default            = '#30d5c8'
}

# Import-Module Get-ChildItemColor

function PowerColorLSWithParams([string] $query = ".") {
  PowerColorLS $query -l -ds -sd -a
}

Set-Alias -Name ls -Value PowerColorLSWithParams -Option AllScope
Set-Alias -Name which -Value Get-Command
# If (-Not (Test-Path Variable:PSise)) {
#   # Only run this in the console and not in the ISE
#   Import-Module Get-ChildItemColor

#   Set-Alias l Get-ChildItem -option AllScope
#   Set-Alias ls Get-ChildItemColorFormatWide -option AllScope
# }

# Import-Module PoshColor

Import-Module z

WindowsTerminal_m5ZBuGI2QC
WindowsTerminal_Xi9MBcSqxI

@gardebring
Copy link
Owner

Hi @haosmos , thanks for reporting an issue. It is however unclear to me what the issue is. You say "in some cases, icons in folders are not displayed" and you provide screenshots. From what I can see from the screenshot the icons for the js, json, md and html files are displayed correctly? What am I missing here? Looking forward to your reply :)

@haosmos
Copy link
Author

haosmos commented Jun 14, 2021

Hi! 馃槂

Sorry, I thought the html5 icon was supposed to be displayed instead of the brackets)

It's ok, sorry for the inconvenience) 馃檹

Thanks for your cool project! 馃憤

@haosmos haosmos closed this as completed Jun 14, 2021
@gardebring
Copy link
Owner

gardebring commented Jun 15, 2021

Hi! 馃槂

Sorry, I thought the html5 icon was supposed to be displayed instead of the brackets)

It's ok, sorry for the inconvenience) 馃檹

Thanks for your cool project! 馃憤

Alright. No worries, no inconvenience caused :)
I'm glad you enjoy the project :-)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants