I don't think this is a good example of the value of these things. You can just as easily do that same thing with advanced text editor features. Sublime for example supports multi-cursor editing. Just hold alt+shift+arrow keys to add a cursor, then type in the brackets you want. Ctrl+D can be used to select the next occurrence of the current selection with multiple cursors, built-in commands from the command pallete can do anything to your current selection (e.g. convert case), etc.
All of that efficiency without having to pay a monthly subscription, wasting electricity on some AI model, and worrying about the legal/moral implications.
Why? You can copy and paste the entire section, and use multiple cursors to add in the brackets.
going from
a: 'one',
to
a['one'],
just requires you to add two brackets and remove the colon. With multiple cursors you can do that exact same operation for all lines in a few keystrokes.
It's having to go find the other block you want, copy and paste it, and then set up the multiple cursors and type, versus it just happening automatically without any of that.
In my use cases I’ve long moved on from writing the original hash. Having it autocomplete without having to open a file and tab back/forth (or find then copy/paste a block to the other file to temporary work on it) etc.
But what's lost in my over simplified example is the contetxt is usually way more involved. I'm usually passing those as arguments to some function or other unique syntax situation that a glorified find and replace can solve. It's all about doing it in the times you would never think even bother writing a custom command because typing is faster given the unique syntactical context... The only thing faster then is autocomplete.
I'm not actually recreating a new hash with the convienient same format.
All of that efficiency without having to pay a monthly subscription, wasting electricity on some AI model, and worrying about the legal/moral implications.