-
Notifications
You must be signed in to change notification settings - Fork 52
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Macro capture #2179
Comments
See also #821 |
Ah, I had forgotten about that! That will definitely help me in the short term. Longer term I still think this could be a nice feature to have, which would do a similar thing but in a more user-friendly way. |
@byorgey would it not be best to pretty-print the base environment to a file? You could then remove the unnecessary parts. |
@xsebek That would be useful too, but it's different than what I'm proposing here. I am concerned with the situation where you have typed a sequence of commands at the REPL, but you have not used
and then you hit the "capture macro" shortcut; it would place the following in your clipboard, suitable for pasting into a
Or something like that, anyway. |
Ah, I copy it from history after quit: tail -n 6 ~/.local/share/swarm/history It would be nice to copy a selection of REPL lines in the game, though. |
Is your feature request related to a problem? Please describe.
When exploring a world or challenge scenario manually, I often execute a series of commands that I later want to turn into a definition.
Describe the solution you'd like
I'd love some kind of "capture macro" shortcut which takes the n most recent REPL inputs and... somehow spits them out in a definition suitable for copy-pasting into a
.sw
file. Like maybe it just sticks the definition in the clipboard? I also don't really know whatn
should be, or if it should be configurable at all.The text was updated successfully, but these errors were encountered: