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

Add bqn-comint-use-overlay #79

Closed
wants to merge 2 commits into from
Closed

Add bqn-comint-use-overlay #79

wants to merge 2 commits into from

Conversation

slotThe
Copy link
Contributor

@slotThe slotThe commented Sep 8, 2024

A custom toggle to show inline results using overlays, instead of just the minibuffer. Preview:
2024-09-08-153301_298x77_scrot

This adds an additional dependency on eros but it's only loaded if the functionality is actually used.

bqn-mode.el Outdated
(if bqn-comint-use-overlay
(eros--make-result-overlay response
:where end
:duration eros-eval-result-duration)
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Adjusting the format might be desirable so that multiline arrays display nicely; suggestions welcome

Copy link
Contributor Author

@slotThe slotThe Sep 16, 2024

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Rebased + I think I found a relatively acceptable solution; one-line results are displayed like this:
2024-09-16-095847_158x87_scrot
and as soon as we go multiline, we change to
2024-09-16-095859_227x443_scrot

Plus, when called with a universal argument, the result is inserted into the buffer:
2024-09-16-095913_192x99_scrot
2024-09-16-095924_236x436_scrot

Show inline results using overlays, instead of just the minibuffer.
When called with a prefix argument. This emulates the behaviour of a few
modes for lisp dialects, like CIDER.
@AndersonTorres
Copy link
Member

Merged at 668e3f5.

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

Successfully merging this pull request may close these issues.

2 participants