Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
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 tosymlink
/junction
handling.Example:
![image](https://private-user-images.githubusercontent.com/31927825/293304944-eb1407a8-2cf5-4ca0-9d71-af0fb9a4306f.png?jwt=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3MzkzMDM2OTksIm5iZiI6MTczOTMwMzM5OSwicGF0aCI6Ii8zMTkyNzgyNS8yOTMzMDQ5NDQtZWIxNDA3YTgtMmNmNS00Y2EwLTlkNzEtYWYwZmI5YTQzMDZmLnBuZz9YLUFtei1BbGdvcml0aG09QVdTNC1ITUFDLVNIQTI1NiZYLUFtei1DcmVkZW50aWFsPUFLSUFWQ09EWUxTQTUzUFFLNFpBJTJGMjAyNTAyMTElMkZ1cy1lYXN0LTElMkZzMyUyRmF3czRfcmVxdWVzdCZYLUFtei1EYXRlPTIwMjUwMjExVDE5NDk1OVomWC1BbXotRXhwaXJlcz0zMDAmWC1BbXotU2lnbmF0dXJlPTg3NTU5NTdiZTJjMzZjMGM0NDlmYzQ5NGQ1OTg0N2E1ZjAyNjg1MDc0MDM0M2E3MmQ1YzYwN2M2Nzc3NTk0ZWImWC1BbXotU2lnbmVkSGVhZGVycz1ob3N0In0.ZYSdzc9ZVB70cmiZebpKy5_Ct6DjSOWffXrOhyJUBII)
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](https://private-user-images.githubusercontent.com/31927825/293305132-ca03d62a-e1f9-427c-a2ae-c90877fd9709.png?jwt=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3MzkzMDM2OTksIm5iZiI6MTczOTMwMzM5OSwicGF0aCI6Ii8zMTkyNzgyNS8yOTMzMDUxMzItY2EwM2Q2MmEtZTFmOS00MjdjLWEyYWUtYzkwODc3ZmQ5NzA5LnBuZz9YLUFtei1BbGdvcml0aG09QVdTNC1ITUFDLVNIQTI1NiZYLUFtei1DcmVkZW50aWFsPUFLSUFWQ09EWUxTQTUzUFFLNFpBJTJGMjAyNTAyMTElMkZ1cy1lYXN0LTElMkZzMyUyRmF3czRfcmVxdWVzdCZYLUFtei1EYXRlPTIwMjUwMjExVDE5NDk1OVomWC1BbXotRXhwaXJlcz0zMDAmWC1BbXotU2lnbmF0dXJlPWIyY2M4YjgyMzcwZmNjN2U5ZmQ4YTIxNTcxMTMzOGJmMWYwYjZjMzFjZTY3MTVhMzBlYWJhNzI1OWFmMTEzYTkmWC1BbXotU2lnbmVkSGVhZGVycz1ob3N0In0.hLGQGyKA2yxlKc0UbhPdUa_BR6JKrcN6jkT7gg9ObI8)
I wish I could show it as
~/Documents/workstation/
instead of the full path, by a hookHow Has This Been Tested?
https://github.com/steve02081504/Terminal-Icons/actions/runs/7438998284
CI works
Screenshots (if appropriate):
Types of changes
Checklist: