Open-source and local-first Slack and Notion alternative that puts you in control of your data
TypeScript chatchat-applicationcrdteditorelectronknowledge-baselocal-firstnotionnotion-alternativerealtime-collaborationself-hostedslacksqliteteam-collaborationwikiyjs
import { ListTodo } from 'lucide-react';
import { EditorCommand } from '@colanode/client/types';
export const TodoCommand: EditorCommand = {
key: 'todo',
name: 'To-do',
description: 'Insert a to-do item',
keywords: ['to-do', 'todo', 'checklist', 'action', 'task'],
icon: ListTodo,
disabled: false,
handler: ({ editor, range }) => {
editor.chain().focus().deleteRange(range).toggleTaskList().run();
},
};