I basically want a workflow that goes like this:
I'm working on a script and run into some issues so I:
- Move the script to the interactive console (shift+alt+e on Mac)
- Run a few queries against my variables to figure things out. This step is over when I find a line of code that works.
- Use a keyboard shortcut to add it to the end of the file I have open.
- Repeat as necessary until I feel good about just editing the file directly again.
Options I'm aware of (that I don't care for)
- Scroll up, copy, paste.
- Use shortcut to open up history panel. Select line, copy, close panel, click on script, paste.
I feel it would be a lot smoother for my workflow if I could just hit some key combo and BAM! the last line of code I executed is just put at the bottom of the current file.
Can it be done? Anyone have some insight?