mirror of
https://github.com/pedrogdn/obsidian-time-bullet-plugin.git
synced 2026-07-22 12:10:28 +00:00
Replace the DOM keydown listeners with a CodeMirror 6 transactionFilter so the Space/Enter timestamp triggers work with virtual keyboards on iOS and Android, which don't emit reliable keydown events. The filter applies to every editor including popouts, so the previous per-document key wiring is no longer needed. - Extract trigger logic into a headless time-bullet-core module, unit tested with vitest against a real CodeMirror EditorState. - Enter on an empty time bullet mirrors Obsidian's native empty-bullet behavior: outdent one level per press, then drop the marker at top level. Honors the vault's useTab/tabSize settings, and preserves -, *, + markers. - Keep the toggle-time-bullet command and multi-marker support from 1.2.0. - Set isDesktopOnly to false; bump to 1.3.0.
34 lines
907 B
JSON
34 lines
907 B
JSON
{
|
|
"name": "obsidian-sample-plugin",
|
|
"version": "1.3.0",
|
|
"description": "This is a sample plugin for Obsidian (https://obsidian.md)",
|
|
"main": "main.js",
|
|
"scripts": {
|
|
"dev": "node esbuild.config.mjs",
|
|
"build": "tsc -noEmit -skipLibCheck && node esbuild.config.mjs production",
|
|
"test": "vitest run",
|
|
"test:watch": "vitest",
|
|
"version": "node version-bump.mjs && git add manifest.json versions.json"
|
|
},
|
|
"keywords": [],
|
|
"author": "",
|
|
"license": "MIT",
|
|
"devDependencies": {
|
|
"@codemirror/state": "^6.5.2",
|
|
"@types/jsdom": "^28.0.0",
|
|
"@types/node": "^16.11.6",
|
|
"@typescript-eslint/eslint-plugin": "5.29.0",
|
|
"@typescript-eslint/parser": "5.29.0",
|
|
"builtin-modules": "3.3.0",
|
|
"esbuild": "0.17.3",
|
|
"jsdom": "^22.1.0",
|
|
"obsidian": "latest",
|
|
"prettier": "^3.6.2",
|
|
"tslib": "2.4.0",
|
|
"typescript": "4.7.4",
|
|
"vitest": "^0.34.6"
|
|
},
|
|
"dependencies": {
|
|
"dayjs": "^1.11.13"
|
|
}
|
|
}
|