Skip to content
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

Persistent Command History #42

Open
BrianOtto opened this issue Apr 5, 2019 · 1 comment
Open

Persistent Command History #42

BrianOtto opened this issue Apr 5, 2019 · 1 comment
Assignees

Comments

@BrianOtto
Copy link
Collaborator

This is in regards to the following comment in #41 ...

In terms of "most likely useful features for the near term"...one is probably being able to store the history in some browser-persistent place...and have it there between sessions so you don't have to keep going to find it. But I also want it to be Rebol-structured and queryable (including a way that you could access it and download it). So all that starts to sound like wanting some kind of generalized persistence...

We should be able to do this by replacing the array push with an insert into a IndexedDB database for the user. This is all done client side, and so there would be no need for a cookie to identify the user when they come back. In addition, a few functions in replpad.reb could be created to allow you to read, search and download this data.

I would be happy to start looking into this. I have done something similar already, to handle the JavaScript blobs in UI Builder. Please provide any additional comments or ideas you would like to try out with this feature. The database could also be expanded to include other settings, like console text and background colors, for the user.

@BrianOtto BrianOtto self-assigned this Apr 5, 2019
@hostilefork
Copy link
Owner

Please provide any additional comments or ideas you would like to try out with this feature.

The only comment that comes to mind is that arbitrary Rebol data doesn't round-trip as text. It could be closer at it doing it than it is today for some basic structures. But they won't preserve binding and object identity...so doing that would require a binary format.

There was apparently one for Rebol once, and Red has made something not too complex called redbin.

I don't have immediate plans to do this...but I guess my comment would be to keep an eye out for situations where more-than-a-string would be useful, and to think about that with any generalized service design. But just getting some string persistence would--again--be a good day-to-day help so one is not hunting down test strings to retype in...

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants