You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Is your feature request related to a problem? Please describe.
I very often spend a few minutes (or even a couple hours) in fsi when prototyping out a project, and I even use it for banal things like a calculator.
Sometimes (actually, literally every time), I want to bring the code I've developed in fsi into a proper codebase. Right now, I have to go up, line by line (this can be many lines in a long prototyping session) and copy them over to a source file.
It would be much easier if you could just dump the inputs (and maybe the outputs, though less important in my opinion) to disk.
Describe the solution you'd like
I'd like there to be a hash command, something like #export, to dump the current session to a file. Maybe followed by an optional file name?
Describe alternatives you've considered
I currently just use an F# interative notebook whenever I can, but I actually spend a not-insignificant amount of time on my phone using fsi through SSH. It's functionally impractical for me to keep these sessions.
Additional context
If the issue is about:
improving the experience around fsi.
The text was updated successfully, but these errors were encountered:
By session you mainly mean the history of the textual inputs (and possibly text outputs), all represented as plaintext?
(i.e. this is not asking for saving and opening the state of the session with fully re-hydrated objects, which would be a lot bigger ask in the general case).
@T-Gro Yeah, I wouldn't expect to get any actual F# state. Just input text (and outputs, if that's not too complicated) as plaintext.
Maybe optionally only include valid/error-free inputs and their outputs, but simply dumping the entire text to a file would be more than enough for my own use case.
A "nice to have" version of this would be exporting to a notebook format to be ingested into dotnet interactive notebooks, but I don't think the utility of that would be all that much greater than just a text output.
I think (am already thinking in implementation specifics) that fsi could provide an object fsi.History.
With maybe a single provided default for dumping it to a file path, but nugets/snippets could decide their own actions to be done with the history of inputs/outputs.
Is your feature request related to a problem? Please describe.
I very often spend a few minutes (or even a couple hours) in
fsi
when prototyping out a project, and I even use it for banal things like a calculator.Sometimes (actually, literally every time), I want to bring the code I've developed in
fsi
into a proper codebase. Right now, I have to go up, line by line (this can be many lines in a long prototyping session) and copy them over to a source file.It would be much easier if you could just dump the inputs (and maybe the outputs, though less important in my opinion) to disk.
Describe the solution you'd like
I'd like there to be a hash command, something like
#export
, to dump the current session to a file. Maybe followed by an optional file name?Describe alternatives you've considered
I currently just use an F# interative notebook whenever I can, but I actually spend a not-insignificant amount of time on my phone using
fsi
through SSH. It's functionally impractical for me to keep these sessions.Additional context
If the issue is about:
fsi
.The text was updated successfully, but these errors were encountered: