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’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add Set-TerminalIconPathResolver #124

Open
wants to merge 2 commits into
base: main
Choose a base branch
from

Conversation

steve02081504
Copy link

@steve02081504 steve02081504 commented Jan 7, 2024

Allows the user to handle $FileInfo.Target before displaying it.

Description

Allows the user to process $FileInfo.Target before displaying it.

Related Issue

#123

Motivation and Context

I'd like to be able to provide additional interfaces to allow other code to hook Resolve-Icon with respect to symlink/junction handling.

Example:
image
My profile treats the root path of msys as / and would like to be able to hook code to change -> E:\msys\usr\bin to -> /usr/bin

Extra example:
image
I wish I could show it as ~/Documents/workstation/ instead of the full path, by a hook

How Has This Been Tested?

https://github.com/steve02081504/Terminal-Icons/actions/runs/7438998284
CI works

Screenshots (if appropriate):

图片

Types of changes

  • Bug fix (non-breaking change which fixes an issue)
  • New feature (non-breaking change which adds functionality)
  • Breaking change (fix or feature that would cause existing functionality to change)

Checklist:

  • My code follows the code style of this project.
  • My change requires a change to the documentation.
  • I have updated the documentation accordingly.
  • I have read the CONTRIBUTING document.
  • I have added tests to cover my changes.
  • All new and existing tests passed.

Allows the user to handle `$FileInfo.Target` before displaying it.
@steve02081504 steve02081504 marked this pull request as ready for review January 7, 2024 15:27
@steve02081504
Copy link
Author

@devblackops just a friendly ping 😌

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

Successfully merging this pull request may close these issues.

None yet

1 participant