Add LESSUTFCHARDEF instructions for less PUA character display Fixes: #1337 #1716
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.
Description
Please explain the changes you made here.
Requirements / Checklist
Issue number where discussion took place: #xxx
What does this Pull Request (PR) do?
This PR adds documentation to explain how users can set the
LESSUTFCHARDEF
environment variable inless
to correctly display Private Use Area (PUA) characters from Nerd Fonts.How should this be manually tested?
This change is a documentation update, so no specific testing is needed. However, users can verify the instructions by running the following command to set the
LESSUTFCHARDEF
environment variable in their shell and viewing a file with PUA characters inless
:export LESSUTFCHARDEF=23fb-23fe:p,2665:p,26a1:p,2b58:p,e000-e00a:p,e0a0-e0a2:p,e0a3:p,e0b0-e0b3:p,e0b4-e0c8:p,e0ca:p,e0cc-e0d4:p,e200-e2a9:p,e300-e3e3:p,e5fa-e6a6:p,e700-e7c5:p,ea60-ebeb:p,f000-f2e0:p,f300-f32f:p,f400-f532:p,f500-fd46:p,f0001-f1af0:p
Any background context you can provide?
There have been issues with
less
not displaying Private Use Area (PUA) characters correctly. This is due to the wayless
handles characters that fall outside standard Unicode ranges. By setting theLESSUTFCHARDEF
environment variable, users can ensure that PUA characters are properly rendered when using Nerd Fonts.What are the relevant tickets (if any)?
Fixes: #1337
Screenshots (if appropriate or helpful)