Skip to content
AI Primer
release

Datasette 1.0a30 adds a slash Jump To menu and plugin hook

Datasette 1.0a30 introduced a slash-triggered Jump To menu plus a hook for plugin-supplied search items. Simon Willison used it in datasette-agent 0.1a4 to start agent chats from the same menu, so plugin authors can wire in their own actions.

2 min read
Datasette 1.0a30 adds a slash Jump To menu and plugin hook
Datasette 1.0a30 adds a slash Jump To menu and plugin hook

TL;DR

You can read the official jump-menu writeup, skim the 1.0a30 release note, and then jump straight to the datasette-agent follow-up. The interesting bit is not just the slash palette itself, but that the same surface now doubles as a plugin entry point, with simonw's demo turning an empty-state search box into an agent launcher.

Jump to menu

Datasette's new menu is a command-palette style navigator. Hitting / opens a searchable overlay for databases, tables, and canned queries, which is a much faster path than clicking around a large instance.

The official writeup is the Datasette blog post, and Simon Willison's release note at simonwillison.net places it as the headline feature of 1.0a30.

Plugin hooks

datasette 1.0a30

Release: datasette 1.0a30 The big new feature in this alpha is a new customizable "Jump to..." menu, described in detail in The extensible "Jump to" menu in Datasette 1.0a30 on the Datasette blog. You can try it out by hitting / on latest.datasette.io - it looks like this: The new jump_items_sql() plugin hook allows plugins to add their own items to the set that's searched by the plugin. Tags: projects, datasette, annotated-release-notes

The extensibility story splits across two hooks:

That gives plugin authors two different insertion points, data in the search index and interface in the menu itself, instead of a single all-purpose extension hook.

datasette-agent

datasette-agent 0.1a4

Release: datasette-agent 0.1a4 Taking advantage of the new makeJumpSections() JavaScript plugin hook added in Datasette 1.0a30, datasette-agent now presents this "Start a new agent chat" interface as part of the Jump to menu, any time you hit /: You can try this out by signing into agent.datasette.io using your GitHub account. Tags: datasette, datasette-agent

Datasette-agent 0.1a4 is the first concrete example. Instead of only returning extra search results, it uses the menu's empty state to present a "Start a new agent chat" form.

Willison's post links to agent.datasette.io, where the feature is live for users who sign in with GitHub. That makes the new jump surface feel less like navigation chrome and more like a general action launcher for Datasette plugins.

Further reading

Discussion across the web

Where this story is being discussed, in original context.

On X· 1 thread
Jump to menu1 post
Share on X