I learned recently that in any terminal you can option click to move the cursor to a specific location in a command. It’s really great when you want to reuse a command but with a small change.
When you save it the changes will be on the command line.