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

Use prepl #5

Open
austinhaas opened this issue Jun 16, 2020 · 3 comments
Open

Use prepl #5

austinhaas opened this issue Jun 16, 2020 · 3 comments
Labels
enhancement New feature or request

Comments

@austinhaas
Copy link
Owner

Not sure how easy this is to implement, because we might have to parse EDN in elisp.

Might make it easy to colorize the output by type.

@austinhaas austinhaas added the enhancement New feature or request label Jun 16, 2020
@austinhaas
Copy link
Owner Author

Started working on this: https://github.com/austinhaas/scrim/tree/prepl

We can either parse the EDN in elisp, or create a custom io-prepl that converts to an elisp-readable string.

@austinhaas
Copy link
Owner Author

Parsing the EDN output seems easy enough to do with elisp code. I just put the EDN in a temporary buffer running clojure-mode and use the same code I use to extracts sexps in other places, and then do some minimal munging to convert the data to a plist.

https://github.com/austinhaas/scrim/blob/prepl/scrim.el#L372-L382

@austinhaas
Copy link
Owner Author

The main thing I'd like to fix now is setting the background colors for the output so that they span the width of the entire buffer, rather than only the strings, so that it looks like vertical slices. (And then I'd make the colors a lot more subtle.) I have no idea if that is possible, though; my searches have come up empty.

Maybe we can use an overlay. But I don't see how to insert it. Currently, we propertize the output strings in the preoutput-filter.

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

No branches or pull requests

1 participant