Edit - Automation, Scripts etc

When I ‘edit’ an automation or script etc from within HA it always comes up in the UI state, I usually want the YAML. I know it’s only a mouse click but could you make it so I can choose what state UI or YAML the edit facility opens up with.
Many thanks great product. :grinning: