Skip to content

Commit 3da26a4

Browse files
committed
Push heading limit
1 parent 274ed51 commit 3da26a4

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

src/heading_modal.ts

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -27,12 +27,19 @@ export type Suggestion = HeadingSuggestion | FileSuggestion;
2727

2828
type HeadingModalCallback = (item: Suggestion) => void;
2929

30+
const HeadingModalLimit = 50000;
31+
3032
export class HeadingModal extends FuzzySuggestModal<Suggestion> {
3133
public items: Suggestion[] = [];
3234
public defaultItemIndex: number = -1;
3335
public onChoose: HeadingModalCallback;
3436
public settings: GotoHeadingSettings;
3537

38+
constructor(app: App) {
39+
super(app);
40+
this.limit = HeadingModalLimit;
41+
}
42+
3643
onOpen() {
3744
super.onOpen();
3845

0 commit comments

Comments
 (0)