Open haizaar opened 12 months ago
I wonder how can I convert to ble.sh configuration. Any ideas/docos?
Of course, you can manually convert the configuration one by one and apply it to the corresponding faces of ble.sh. The list of faces is provided in README §2.6. The detailed way of specifying the colors and styles are described in Manual §2.1.
There is currently no automated conversion from the fish spec to the ble.sh spec. I think one of the problems in automating the conversion is that there is no one-to-one correspondence between fish specifications and ble.sh faces, so the desired correspondence can depend on the personal preferences of each user. Also, ble.sh has a larger number of faces, i.e., more detailed distinctions of the syntax components and the contexts, so simply applying the setting of the closest one to a ble.sh's face would degenerate the detailed distinction by ble.sh. Maybe it is still useful to have a converter for the users who do not care about it so much.
Another way to automatically "generate a color theme" might be to use the contrib/colorglass
module. This module allows a user to adjust existing color settings all at once by changing the hue, gamma, color mixing, etc. You might adjust these parameters to make the overall impression "similar (but not the same)" to the existing fish theme.
I searched for some materials to understand the fish color schemes. We can find the bundled color schemes of fish in the directory /share/tools/web_config/themes
[1] of the source repository. The manual of set
builtin is found in Ref. [2], but it seems the theme files omit set -U
provided in the cover of this Issue. Also, it is not documented there how to specify the options like --background
, --bold
, --underline
. The corresponding source codes that parse these options seem to be found at Ref. [3]. I instead found another documentation page that seems to describe these options [4].
Fish has an amazing web UI where I can set its prompt/completion colors. I like pastel theme which generates the following variables and I wonder how can I convert to ble.sh configuration. Any ideas/docos?