News for hackers. Stuff that matters.
Re:Show HN: Deploy to K8s without YAML using ShuttleOps by realshadow on Wednesday October 07, 2020 @08:29AM (#24707502)
Keeping up with indenion is a pain the ass when your config file is large
Re:Show HN: Deploy to K8s without YAML using ShuttleOps by barrkel on Thursday October 08, 2020 @06:31AM (#24717793)
Folding and highlighting in the editor make it much easier.

I use yafolding minor mode in Emacs, it folds based on indentation level, and it handles indentation-oriented syntaxes like Python and YAML as well as block-oriented syntaxes like C, Java, JS and Ruby.

yaml-mode in Emacs highlights :| text in the quoted string highlight colour, so it's easy to see you're still in the block, or whether you've unindented your way out to the YAML again.

I generally try and split out my yaml such that the quoted blocks don't need to be enormous, though. So, single SQL statements, rather than a whole SQL script, to take one motivating example.

I also use highlight-indentation-current-column mode, for an extra visual aid.