Creating modes in i3 config

I modified a "mode" from the official documentation to launch my browsers:

set $mode_launcher Launch: [f]irefox [c]hrome
bindsym $mod+i mode "$mode_launcher"

mode "$mode_launcher" {
    bindsym f exec firefox
    bindsym c exec google-chrome-stable
    
    bindsym Escape mode "default"
    bindsym Return mode "default"
}

This works perfectly. Mod+i opens the mode, displays "Launch: [f]irefox [c]hrome" in red and white over the ibar and functions as expected.

Buoyed by my success, I tried a second one:

set $mode_texted Launch: [g]eany [f]eatherpad
bindsym $mod+t mode "$mode_texted"

mode "$mode_texted" {
    bindsym g exec geany
    bindsym f exec featherpad
    
    bindsym Escape mode "default"
    bindsym Return mode "default"
}

Unfortunately, I cannot get this to work. In addition, with this in the config, the Mod+t, instead brings up the Mod+i interface on the ibar with strange behavior.

I've tried a simpler approach, which works:

bindsym $mod+t mode "texted"
# set $mode_texted TextEd: [g]eany [v]im
mode "texted" {
    bindsym g exec geany
    bindsym f exec featherpad
    
    bindsym Escape mode "default"
    bindsym Return mode "default"
}

This will enter the mode and allow either editor to launch with the appropriate key press, but without the "TextEd: [g]eany [v]im" displaying. "texted" (all lower case) does display. Oddly enough, if the above commented line is uncommented, it has no effect.

Obviously, this is not a show stopper, but I'm curious as to why the other script won't work.

Thank you.

Forum kindly sponsored by