Fork me on GitHub
#portal
<
2023-08-31
>
Sebastian08:08:10

Hello 👋 If anybody is using Portal together with Emacs and Cider, I've put together a https://gist.github.com/lambdank/9d2f8639349c2fcfa5166eb96dfba1b7 for interacting with Portal through Emacs. It's quite easy to grasp the pattern and extend it, if you want additional functionality.

Ellis09:08:09

I actually had https://github.com/elken/doom/blob/1b76d59fc7791b85c417000535abe011391ef9a9/config.org#portal but I stopped using portal as much because it didn't work well with the project I was working on Might be a good prompt to improve it...

Sebastian11:08:04

I usually just tap> directly in the code, or by using cider-tap-sexp-at-point. This script is more to avoid having to switch focus from Emacs to Portal in the web browser. That's also why it's a hydra-mode, because I can enter it using C-; and mostly do j and k for up/down, TAB and backtab to cycle viewer and i and h to navigate a tree structure.

👍 2
djblue17:08:13

Very cool 💯 Setting the filter from emacs isn't something I've seen before awesome

djblue17:08:55

@U043RSZ25HQ if you don't mind me asking, what kind of issues did you run into with portal in your project?

Ellis19:08:46

They're not portal related, it was just a messy project. Very brittle, lots of dependant state. What I've used portal on it's extremely useful 🙂