Powerlevel9k / powerlevel9k

Powerlevel9k was a tool for building a beautiful and highly functional CLI, customized for you. P9k had a substantial impact on CLI UX, and its legacy is now continued by P10k.
https://github.com/romkatv/powerlevel10k
MIT License
13.46k stars 948 forks source link

The difference between truncate_absolute and truncate_absolute_chars is unclear #1274

Open romkatv opened 5 years ago

romkatv commented 5 years ago

This is for master.

As far as I can tell, POWERLEVEL9K_SHORTEN_STRATEGY=truncate_absolute has the same effect as POWERLEVEL9K_SHORTEN_STRATEGY=truncate_absolute_chars. If this is intended, please say so in the docs. If not, please fix the code and clarify the difference between these two strategies in the docs.

Syphdias commented 5 years ago

Codewise I don't think there is a difference (besides an extra comment). On next it even shares the same switch case...

No idea why the docs were not changed. Thanks for the report! I'll fix it on next shortly.