Nnn: Docs unclear on 2-digit hex codes

Created on 29 Aug 2020  路  6Comments  路  Source: jarun/nnn

Sorry for the likely basic question. I'm reading the docs around configuration and can't for the life of me figure out how a 2-digit hex code works.

From the configuration docs

Specify file-specific colors with xterm 256 color codes (2 hex symbols per color)

Which links to this page. I don't see any two-color hexes listed, and despite some searching can't figure out how to generate them. Random codes I put it do change the configuration, but I'm still unclear where I'd get a 2 digit hex from (usually I see 3 or 6 digits, and the single digit terminal schema used for NNN_COLORS is different).

bug

All 6 comments

Updated the docs to use _numbers_ instead of _codes_. Use the hex value of the Xterm color numbers (shown in decimal in the external link).

I was having a similar conundrum as @snide, I don't see any decimal in the external link that you mentioned, or any further way to determine the 2 hex symbol based off of Xterm color number. Using 00 to overwrite for now.

cap
Note that the numbers have to have width of 2, meaning 2 becomes 02
Edit: better screenshot

Thanks @0xACE! I will link it from the config page.

Wow! You already took care of it! Thank you @0xACE!

@0xACE bless you!

Was this page helpful?
0 / 5 - 0 ratings

Related issues

kuntau picture kuntau  路  3Comments

fcying picture fcying  路  9Comments

ralphee picture ralphee  路  6Comments

weatherbell picture weatherbell  路  8Comments

harriott picture harriott  路  6Comments