Local Codebase UI

You can navigate the Unison Codebase Manager (UCM) via the CLI with aset of commandsbut the UCM also ships with a UI for viewing and navigating your local codebase.

To bring up the local codebase UI, enteruiin the UCM. This will open the UI in your default browser.

The UI supports several features which augment the local development process in Unison:

📝 Doc rendering

If there are linkedDocsfor a Unison term or type, the codebase UI will fully render the docs with their enriched text features.Docelements like tooltips, links between docs and terms, and evaluated code examples will all be displayed when you open a Unison term.

Try it out by searching for theNaturaltype in the🔍 find definitionquery box. The linked documentation for usingNaturalshould render in the local UI.

👀 Click-through to source interactivity

If you're ever curious about the source code of your favorite Unison library or functions, you can use the local UI to see the source of the code and all the preceding code that constitutes it.

Any function, value, or type that highlights on mouse-over is a clickable link that will open a new source code panel.

🎹 Keyboard shortcuts

With the UI open in your browser, enter?to pull up a few handy keyboard shortcuts to remember when using the UI.

These keyboard shortcuts are also useful for navigating public codebases on Unison Share.

🔭 Namespace scoped searching

In addition to the top-level🔍 find definitionsearch functionality, the local codebase UI supportsscopedsearching and namespace navigation.

Say you're in a large codebase and you've been using the local UI to check out some of the functions under theListdata type namespace. If you'd like to scope your search to other terms which are only under theListnamespace in thebaselibrary, you can mouse-over the namespace path to the right of the type or term name, and from there you should see two options. The first opens a search query for finding other terms within the namespace, and the second allows you to refocus your navigation sidebar to the current namespace for a more granular view of the codebase.