unison
unison copied to clipboard
Feature Proposal: A `ui` command in `ucm`
It would be really cool to have a ui command in ucm. Here's how I imagine it working:
.> ui, opens the UI in the browser if there's a UI folder thatucmknows about (set through--uiorUCM_WEB_UI)..> ui installto install and perhaps also update? (could be a separate command) the UI. Which version of the UI that gets downloaded could be specified and/or determined by a mechanism to tag which version of ucm the ui can run with (per @aryairani's suggestion)..> uiwithout a UI folder present,ucmwould tell the user (instead of attempting to open the URL) and ask if the user would want to download the UI, allowing them to choose betweenlatestand the current release (M2gfor instance)..> ui List.mapwould work similar todisplay List.mapexcept that it would openList.mapin the UI—in the future this could open directly in an Electron app which would allow us to support multiple calls toui <definition>to open in the same window instead of in a new browser tab every time..> ui List.map List.filterwould open bothList.mapandList.filterin the UI..> ui .basewould open the UI zoomed into the on thebasenamespace (relative to)
wrt downloading the UI, could we have a way of keeping track of the newest ui that is supported by the user's version of ucm? (this involves tweaking our git tags to produce a git describe version number that is meaningful in sequential, which is possible and common, though not obvious)
And if we have a way to automatically download the ui, we should have a way of automatically updating the ui to the latest supported.
Right! .> ui update and .> ui install and .> ui install unstable for instance. I like it—added it to the list.
I imagine that this would come for "free", but just to throw it out there:
It would be nice if ui 3 worked like view 3 does (the 3rd result from the previous command).
@ceedubs nice!
Closing for now.