1
0

Changelog

This commit is contained in:
Zef Hemel 2022-12-19 13:42:20 +01:00
parent 6444824f5c
commit 6897111cf9
6 changed files with 49 additions and 21 deletions

View File

@ -183,8 +183,9 @@ const highlightingDirectiveParser = directiveParser.configure({
props: [ props: [
styleTags({ styleTags({
"Name": t.variableName, "Name": t.variableName,
"String PageRef": t.string, "String": t.string,
"Number": t.number, "Number": t.number,
"PageRef": ct.WikiLinkTag,
"Where Limit Select Render Order OrderDirection And": t.keyword, "Where Limit Select Render Order OrderDirection And": t.keyword,
}), }),
], ],

View File

@ -23,7 +23,16 @@ async function actionClickOrActionEnter(
return; return;
} }
const navigationNodeFinder = (t: ParseTree) => const navigationNodeFinder = (t: ParseTree) =>
["WikiLink", "Link", "Image", "URL", "NakedURL", "Link", "CommandLink"] [
"WikiLink",
"Link",
"Image",
"URL",
"NakedURL",
"Link",
"CommandLink",
"PageRef",
]
.includes( .includes(
t.type!, t.type!,
); );
@ -49,6 +58,17 @@ async function actionClickOrActionEnter(
await editor.navigate(pageLink, pos, false, inNewWindow); await editor.navigate(pageLink, pos, false, inNewWindow);
break; break;
} }
case "PageRef": {
const bracketedPageRef = mdTree.children![0].text!;
await editor.navigate(
// Slicing off the initial [[ and final ]]
bracketedPageRef.substring(2, bracketedPageRef.length - 2),
0,
false,
inNewWindow,
);
break;
}
case "NakedURL": case "NakedURL":
await editor.openUrl(patchUrl(mdTree.children![0].text!)); await editor.openUrl(patchUrl(mdTree.children![0].text!));
break; break;

View File

@ -3,6 +3,14 @@ release.
--- ---
## Next
* Changed styling for [[Frontmatter]], fenced code blocks and directives to avoid vertical jumping when moving the cursor around.
* Clicking the URL (inside of an image `![](url)` or link `[text](link)`) no longer navigates there, you need to click on the anchor text to navigate there now (this avoids a lot of weird behavior).
* Long page name in title now no longer overlap with action buttons
* Clicking on a page reference in a `render` clause (inside of a directive) now navigates there (use Alt-click to just move the cursor)
---
## 0.2.4 ## 0.2.4
* Vim mode is here! This mode can be enabled on a per-client basis (its state is stored in the browser). To toggle Vim mode on or off use the {[Editor: Toggle Vim Mode]} command. * Vim mode is here! This mode can be enabled on a per-client basis (its state is stored in the browser). To toggle Vim mode on or off use the {[Editor: Toggle Vim Mode]} command.
* Security update: SB now binds to `127.0.0.1` by default, allowing just connections via `localhost`. To allow outside connections, pass the `--hostname 0.0.0.0` flag (and ideally combine it with a `--user username:password` flag to add basic authentication). * Security update: SB now binds to `127.0.0.1` by default, allowing just connections via `localhost`. To allow outside connections, pass the `--hostname 0.0.0.0` flag (and ideally combine it with a `--user username:password` flag to add basic authentication).

View File

@ -1,9 +1,9 @@
Silver Bullet is an extensible, [open source](https://github.com/silverbulletmd/silverbullet), **personal Silver Bullet is an extensible, [open source](https://github.com/silverbulletmd/silverbullet), **personal
knowledge management** application. Indeed, fundamentally thats fancy talk for “a note-taking app with links.” However, Silver Bullet goes a bit beyond just that. knowledge management** system. Indeed, thats fancy talk for “a note-taking app with links.” However, Silver Bullet goes a bit beyond just that.
You thought there was no such thing as a [silver bullet](https://en.wikipedia.org/wiki/Silver_bullet). You were wrong. Youve been told there is _no such thing_ as a [silver bullet](https://en.wikipedia.org/wiki/Silver_bullet). You were told wrong.
Lets have a look at some of its features. Lets have a look at some of Silver Bullets features.
## Features ## Features
* Runs in any modern browser (including on mobile) and is installable as a [PWA](https://web.dev/progressive-web-apps/). * Runs in any modern browser (including on mobile) and is installable as a [PWA](https://web.dev/progressive-web-apps/).
@ -123,7 +123,6 @@ And restart Silver Bullet. You should be good to go.
## Support ## Support
If you (hypothetically) find bugs or have feature requests, post them in If you (hypothetically) find bugs or have feature requests, post them in [our issue tracker](https://github.com/silverbulletmd/silverbullet/issues). Want to contribute? [Check out the code](https://github.com/silverbulletmd/silverbullet).
[our issue tracker](https://github.com/silverbulletmd/silverbullet/issues). Want to contribute? [Check out the code](https://github.com/silverbulletmd/silverbullet).
Want to chat with us? [We have a Mattermost instance](https://silverbullet.cloud.mattermost.com/), join us! Want to chat with us? [We have a Mattermost instance](https://silverbullet.cloud.mattermost.com/), join us!