diff --git a/assets/js/kbar.js b/assets/js/kbar.js
index 271a68f..5ab5d53 100644
--- a/assets/js/kbar.js
+++ b/assets/js/kbar.js
@@ -18,8 +18,7 @@ const searchStyle = {
fontSize: "16px",
width: "100%",
boxSizing: "border-box",
- outline: "none",
- border: "none"
+ outline: "none"
};
const animatorStyle = {
@@ -83,9 +82,9 @@ const ResultItem = React.forwardRef(
@@ -223,7 +222,9 @@ const staticActions = [
keywords: "settings edit",
perform: () => (window.location.pathname = "admin/settings/edit"),
}
-]
+].map(function(a) {
+ return {...a, section: "Pages"}
+})
function DynamicResultsProvider() {
const [actions, setActions] = useState([])
@@ -236,9 +237,12 @@ function DynamicResultsProvider() {
.then(json => setNotes(json.notes))
}, [rerender])
+
const noteActions = useMemo(() => notes.map(note => createAction({
id: note.slug,
name: note.name,
+ subtitle: note.channels.map(c => c.name).join(", "),
+ section: "Notes",
keywords: note.channels.map(c => c.name),
perform: () => (window.location.pathname = `/admin/notes/${note.id}`),
})), [notes])
@@ -252,8 +256,8 @@ export default function KBar() {
-
-
+
+