Skip to content

Commit

Permalink
refactor(nav): ctrl+click to double click for tiddler navigation
Browse files Browse the repository at this point in the history
  • Loading branch information
oeyoews committed Oct 17, 2024
1 parent 2b749da commit 1ad7359
Show file tree
Hide file tree
Showing 4 changed files with 8 additions and 7 deletions.
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@

<h2>V3</h2>

* `3.7.0`: `ctrl+click` to double click for tiddler navigation
* `3.6.1`: update readme video tutorial
* `3.6.0`: update `/?` to `@help:`, and some other triggers
* `3.5.2`: update clickable icon style on hover
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
"registry": "https://registry.npmjs.org"
},
"license": "MIT",
"version": "3.6.1",
"version": "3.7.0",
"packageManager": "[email protected]",
"scripts": {
"update:config": " pnpm ts-node scripts/generateConfig.ts",
Expand Down
10 changes: 5 additions & 5 deletions src/tiddlywiki-codemirror-6/modules/extensions/tidExt.ts
Original file line number Diff line number Diff line change
Expand Up @@ -29,12 +29,12 @@ class CustomLink extends WidgetType {
wrapper.textContent = cm6['clickable-icon']() || ' 🔗';
wrapper.className = 'cm-tiddler-link';
wrapper.title = title;
wrapper.onclick = (e: MouseEvent) => {
wrapper.ondblclick = (e: MouseEvent) => {
e.preventDefault();
if (e.ctrlKey) {
useSound();
new $tw.Story().navigateTiddler(title);
}
// if (e.ctrlKey) {
useSound();
new $tw.Story().navigateTiddler(title);
// }
};

return wrapper;
Expand Down
2 changes: 1 addition & 1 deletion src/tiddlywiki-codemirror-6/plugin.info
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
"title": "$:/plugins/oeyoews/tiddlywiki-codemirror-6",
"name": "CodeMirror6",
"description": "CodeMirror 6 editor",
"version": "3.6.1",
"version": "3.7.0",
"core-version": ">=5.3.4",
"list": "readme settings changelog ",
"stability": "STABILITY_2_STABLE"
Expand Down

0 comments on commit 1ad7359

Please sign in to comment.