@@ -370,9 +370,9 @@ func (c *Commands) defaultCommands() []*CommandItem {
371 // Add external editor command if $EDITOR is available.
371 // Add external editor command if $EDITOR is available.
373− // TODO: Use [tea.EnvMsg] to get environment variable instead of os.Getenv;
373+ // TODO: Use [tea.EnvMsg] to get environment variables instead of os.Getenv;
374− // because os.Getenv does IO is breaks the TEA paradigm and is generally an
374+ // reading the environment directly bypasses the TEA message system and is
375− // antipattern.
375+ // generally an antipattern.
376 if os.Getenv("EDITOR") != "" {
376 if os.Getenv("EDITOR") != "" {
377 commands = append(commands, NewCommandItem(c.com.Styles, "open_external_editor", "Open External Editor", "ctrl+o", ActionExternalEditor{}))
377 commands = append(commands, NewCommandItem(c.com.Styles, "open_external_editor", "Open External Editor", "ctrl+o", ActionExternalEditor{}))