mirror of
https://github.com/siyuan-note/siyuan.git
synced 2025-05-21 19:41:05 +08:00
This commit is contained in:
parent
d1f89d77b9
commit
e39bf3503f
@ -8,6 +8,7 @@ import {fullscreen} from "../../protyle/breadcrumb/action";
|
||||
import {fetchPost} from "../../util/fetch";
|
||||
import {isCurrentEditor, openFileById} from "../../editor/util";
|
||||
import {updateHotkeyTip} from "../../protyle/util/compatibility";
|
||||
import {openGlobalSearch} from "../../search/util";
|
||||
|
||||
declare const vis: any;
|
||||
|
||||
@ -21,7 +22,7 @@ export class Graph extends Model {
|
||||
public rootId: string; // "local" 必填
|
||||
private timeout: number;
|
||||
public graphData: {
|
||||
nodes: { box: string, id: string, path: string }[],
|
||||
nodes: { box: string, id: string, path: string, type: string }[],
|
||||
links: Record<string, unknown>[],
|
||||
box: string
|
||||
};
|
||||
@ -591,6 +592,10 @@ export class Graph extends Model {
|
||||
if (!node) {
|
||||
return;
|
||||
}
|
||||
if (node.type === "textmark tag") {
|
||||
openGlobalSearch(`#${node.id}#`, !window.siyuan.ctrlIsPressed);
|
||||
return;
|
||||
}
|
||||
if (window.siyuan.shiftIsPressed) {
|
||||
openFileById({
|
||||
id: node.id,
|
||||
|
Loading…
Reference in New Issue
Block a user