portal 2025-09-26

Should pressing the right arrow key expand a collection in the inspector view? This is my intuition from doing the same when navigating folders in macOS Finder with arrow keys.

works well, thank you!

the implementation does look tricky

@shaunlebron not sure if you are still interested in this feature, but I got it working in https://github.com/djblue/portal/commit/f1c5c8d580cb3569f04fc7287ffed0de759cd4df. It isn't released yet, but you can play with it via http://djblue.github.io/portal/ with the demo data.

Oh, forgive me for dragging my feet! Thank you

Your good, it actually ended up being a bit tricker than I expect 😅

That's an interesting idea. Currently when you press the right arrow key, Portal only tries to https://github.com/djblue/portal/blob/master/src/portal/ui/state.cljs#L274-L278. This would only work if the child is expanded.

When neither is available, I could see trying to expand the currently selected value, then doing the same thing 🤔

Is this something you would be interested in implementing?

sure yeah

What does your clojure setup look like?

worth nothing also that in macOS Finder, pressing left collapses the current folder when moving back, not sure if desired here

I use Cursive

Portal uses babashka tasks to manage all the tooling. bb dev will start a shadow-cljs server which cursive should be able to find using its default shadow-cljs setup.

Then to get a dev instance launched, the easiest way is via (portal.api/open {:mode :dev})

The currently development docs need some updating 😂

I use cursive for navigating giant projects, but use a simpler vim setup for smaller things

Ohh, I think conjure/vim-fireplace should also play nicely with a shadow-cljs nrepl server

yeah I’m sure it will, I’ll look at it next week, thanks for the invitation to PR

🙏 1

Please let me know if you run into any issue, always happy to help make things better 👍

🙏 1