initial-commit

This commit is contained in:
nicwands
2026-02-24 13:32:15 -05:00
commit fe12109209
5 changed files with 1070 additions and 0 deletions

24
src/index.js Normal file
View File

@@ -0,0 +1,24 @@
import path from 'path'
import { app } from 'electron'
import FileSystemAdapter from './FileSystemAdapter'
import { definePlugin } from 'takerofnotes-plugin-sdk'
export default definePlugin({
id: 'filesystem',
name: 'Filesystem',
description: 'Store notes as markdown files on your local filesystem',
version: '1.0.0',
apiVersion: '0.1.0',
configSchema: [
{
key: 'notesDir',
label: 'Notes Directory',
type: 'directory',
default: path.join(app.getPath('userData'), 'notes'),
required: true,
},
],
createAdapter(config) {
return new FileSystemAdapter(config)
},
})