feat: error/warning messages on first load (#278)
`tmux_echo` now uses hooks this allows it to print on the first load. To cleanup the hooks every hook gets a _unique_ number/index, this is _not_ enforced.
This commit is contained in:
parent
362a306db7
commit
a2dda02b43
2 changed files with 7 additions and 5 deletions
|
@ -35,14 +35,14 @@ load_modules() {
|
|||
|
||||
if [[ -z "${module_name/ }" ]]; then
|
||||
if [[ -z "${modules_list/ }" ]]; then
|
||||
tmux_echo "catppuccin warning: a module list has only white space, to remove all modules set it to \"null\""
|
||||
tmux_echo "catppuccin warning: a module list has only white space, to remove all modules set it to \"null\"" 100
|
||||
else
|
||||
tmux_echo "catppuccin warning: a module list with value \"$modules_list\" has leading/trailing whitespace"
|
||||
tmux_echo "catppuccin warning: a module list with value \"$modules_list\" has leading/trailing whitespace" 101
|
||||
fi
|
||||
continue
|
||||
fi
|
||||
|
||||
tmux_echo "catppuccin warning: module $module_name not found"
|
||||
tmux_echo "catppuccin warning: module $module_name not found" 102
|
||||
|
||||
|
||||
done
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue