This page is not created by, affiliated with, or supported by Slack Technologies, Inc.
2022-12-05
Channels
- # adventofcode (138)
- # announcements (1)
- # babashka (4)
- # beginners (71)
- # biff (2)
- # calva (7)
- # cider (20)
- # clj-kondo (4)
- # cljsrn (4)
- # clojure (36)
- # clojure-europe (37)
- # clojure-nl (2)
- # clojure-norway (27)
- # clojure-portugal (1)
- # clojure-uk (4)
- # clojurescript (8)
- # emacs (3)
- # graphql (1)
- # hugsql (4)
- # humbleui (6)
- # hyperfiddle (1)
- # jobs-discuss (18)
- # joyride (2)
- # malli (17)
- # meander (7)
- # membrane (8)
- # off-topic (16)
- # pathom (14)
- # portal (4)
- # rdf (36)
- # reitit (4)
- # releases (2)
- # remote-jobs (1)
- # scittle (15)
- # shadow-cljs (13)
- # tools-deps (40)
Is it possible to extend the UI for self registered commands? Couldn't find it in the docs.
I'm using portal to execute functions for e.g running tests, reformatting code. I would like to have the same functionality as "select columns" for my own custom commands (being able to select options which is then sent as an input param to the handler)
Initial idea was something like this:
(register! #'run-tests {:default :uncommited-changes
:options [:uncommited-changes
:changes-for-branch
:all-tests]
:option-form ..hiccup})
run-tests is a function that runs all tests, it takes an input argument ctx
which can be the currently selected value in portal.
When the function is executed via portal the first time it's possible to select an option, that option will stay until you run a "clear"-fn via portal and be available in ctx
(perhaps the key could be namespaced based on the fn name, e.g. :run-tests/option
💭