fish-shell/doc_src
Fabian Homborg 5926a75cc5 highlight: Also use the fallback variable if the main is empty
Currently, when a variable like $fish_color_command is set but empty:

    set -g fish_color_command

what happens is that highlight parses it and ends up with a "normal"
color.

Change it so instead it sees that the variable is empty and goes
on to check the fallback variable, e.g. fish_color_normal.

That makes it easier to make themes that override variables.

This means that older themes that expect an empty variable to be
"normal" need to be updated to set it to "normal".

Following from this, we could make writing .theme files easier by no
longer requiring them to list all variables with specific values.
Either the theme reader could be updated to implicitly set known color
variables to empty, or the themes could feature empty values.

See #8787.
2022-03-20 17:04:28 +01:00
..
cmds New -n flag for string join. (#8774) 2022-03-13 11:47:33 +01:00
python_docs_theme docs: Align text left 2022-03-11 20:14:47 +01:00
commands.rst Add documentation for prompt_hostname 2021-12-04 10:37:49 +01:00
completions.rst docs: Replace all internal links with :ref:s 2021-03-26 19:32:14 +01:00
conf.py docs synopsis: add HTML highlighing and automate manpage markup 2022-01-19 22:56:41 +08:00
design.rst Docs: Posix -> POSIX 2022-02-14 16:18:16 -08:00
faq.rst Explain the issues of setting fish as login shell 2022-02-18 15:30:57 +01:00
fish_for_bash_users.rst Add documentation for prompt_hostname 2021-12-04 10:37:49 +01:00
fish_indent_lexer.py docs: restore default highlighting keywords and options in HTML 2022-01-16 14:07:19 +01:00
fish_synopsis.py docs synopsis: add HTML highlighing and automate manpage markup 2022-01-19 22:56:41 +08:00
index.rst docs: Readd link to full configuration section to index 2022-03-11 19:13:50 +01:00
interactive.rst highlight: Also use the fallback variable if the main is empty 2022-03-20 17:04:28 +01:00
language.rst Fix a typo 2022-03-16 20:02:09 -07:00
license.rst Bump copyright year 2022-01-09 23:47:58 +08:00
relnotes.rst docs: call the CHANGELOG "release notes" 2021-02-25 22:46:24 +08:00
tutorial.rst docs: Remove prompt from multiline commands 2022-03-11 19:05:26 +01:00