+
+ {action.icon && action.icon}
+
+
+ {ancestors.length > 0 &&
+ ancestors.map((ancestor: any) => (
+
+
+ {ancestor.name}
+
+
+ ›
+
+
+ ))}
+ {action.name}
+
+ {action.subtitle && (
+
{action.subtitle}
+ )}
+
+
+ {action.shortcut?.length ? (
+
+ {action.shortcut.map((sc: any) => (
+
+ {sc}
+
+ ))}
+
+ ) : null}
+
+ );
+ }
+);
+
+export default KbarResultItem;
diff --git a/src/components/Kbar/SearchTableRegisterAction.tsx b/src/components/Kbar/SearchTableRegisterAction.tsx
new file mode 100644
index 000000000..b4baa8a5a
--- /dev/null
+++ b/src/components/Kbar/SearchTableRegisterAction.tsx
@@ -0,0 +1,19 @@
+import { useRegisterActions } from "kbar";
+
+interface TableActionObject {
+ id: string;
+ name: string;
+ keywords: string;
+ perform: () => void;
+}
+
+const SearchTableActionRegister = ({
+ tableObjects,
+}: {
+ tableObjects: TableActionObject[];
+}) => {
+ useRegisterActions([...tableObjects]);
+ return null;
+};
+
+export default SearchTableActionRegister;
diff --git a/src/components/Table/FinalColumn/AddColumnRegister.tsx b/src/components/Table/FinalColumn/AddColumnRegister.tsx
new file mode 100644
index 000000000..455e7ac09
--- /dev/null
+++ b/src/components/Table/FinalColumn/AddColumnRegister.tsx
@@ -0,0 +1,21 @@
+import { columnModalAtom, tableScope } from "@src/atoms/tableScope";
+import { useSetAtom } from "jotai";
+import { useRegisterActions } from "kbar";
+
+const AddColumnRegister = () => {
+ const openColumnModal = useSetAtom(columnModalAtom, tableScope);
+ useRegisterActions([
+ {
+ id: "addColumn",
+ name: "Add Column",
+ shortcut: ["x", "c"],
+ keywords: "Add column",
+ perform: () => {
+ openColumnModal({ type: "new" });
+ },
+ },
+ ]);
+ return null;
+};
+
+export default AddColumnRegister;
diff --git a/src/components/Table/FinalColumn/FinalColumnHeader.tsx b/src/components/Table/FinalColumn/FinalColumnHeader.tsx
index 3d65a9a41..5a2170d6a 100644
--- a/src/components/Table/FinalColumn/FinalColumnHeader.tsx
+++ b/src/components/Table/FinalColumn/FinalColumnHeader.tsx
@@ -5,6 +5,7 @@ import { AddColumn as AddColumnIcon } from "@src/assets/icons";
import { tableScope, columnModalAtom } from "@src/atoms/tableScope";
import { spreadSx } from "@src/utils/ui";
+import AddColumnRegister from "./AddColumnRegister";
export interface IFinalColumnHeaderProps extends Partial