portal

shaunlebron 2025-09-26T23:56:13.844009Z

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.

shaunlebron 2025-10-28T17:13:42.160979Z

works well, thank you!

shaunlebron 2025-10-28T17:15:58.966019Z

the implementation does look tricky

djblue 2025-10-28T01:59:28.948889Z

@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.

shaunlebron 2025-10-28T02:18:47.739989Z

Oh, forgive me for dragging my feet! Thank you

djblue 2025-10-28T02:21:07.221499Z

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

djblue 2025-09-27T00:01:26.566579Z

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.

djblue 2025-09-27T00:02:40.576709Z

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

djblue 2025-09-27T00:03:06.295159Z

Is this something you would be interested in implementing?

shaunlebron 2025-09-27T00:03:31.919359Z

sure yeah

djblue 2025-09-27T00:04:14.688349Z

What does your clojure setup look like?

shaunlebron 2025-09-27T00:04:28.553969Z

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

shaunlebron 2025-09-27T00:04:46.640189Z

I use Cursive

djblue 2025-09-27T00:06:22.554289Z

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.

djblue 2025-09-27T00:06:53.381039Z

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

djblue 2025-09-27T00:07:16.502919Z

The currently development docs need some updating 😂

shaunlebron 2025-09-27T00:07:37.952989Z

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

djblue 2025-09-27T00:08:23.845249Z

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

shaunlebron 2025-09-27T00:09:14.940039Z

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

🙏 1
djblue 2025-09-27T00:10:02.243469Z

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

🙏 1