Skip to content

Commit 06e88aa

Browse files
committed
chore(sync): merge from main
2 parents 96a3d77 + c94f3f2 commit 06e88aa

3 files changed

Lines changed: 26 additions & 1 deletion

File tree

.husky/post-checkout

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
#!/usr/bin/env sh
2+
# Configure rolling tag to allow force updates during fetch
3+
# This ensures 'git fetch' can update the rolling tag without user intervention
4+
5+
ROLLING_REFSPEC=$(git config --local --get-all remote.origin.fetch | grep -c '^+refs/tags/rolling:' || true)
6+
7+
if [ "$ROLLING_REFSPEC" -eq 0 ]; then
8+
git config --local --add remote.origin.fetch '+refs/tags/rolling:refs/tags/rolling'
9+
fi

tests/mocks/obsidian.ts

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1584,6 +1584,22 @@ export class Modal extends Component {
15841584
onClose(): void {}
15851585
}
15861586

1587+
export abstract class SuggestModal<T> extends Modal {
1588+
abstract getItems(): T[];
1589+
abstract getItemText(item: T): string;
1590+
abstract onChooseItem(item: T, evt?: KeyboardEvent | MouseEvent): void;
1591+
1592+
open(): void {
1593+
super.open();
1594+
}
1595+
}
1596+
1597+
export abstract class FuzzySuggestModal<T> extends SuggestModal<T> {
1598+
abstract getItems(): T[];
1599+
abstract getItemText(item: T): string;
1600+
abstract onChooseItem(item: T, evt?: KeyboardEvent | MouseEvent): void;
1601+
}
1602+
15871603
export class Notice {
15881604
private message: string | DocumentFragment;
15891605
private duration: number;

vendor/obsidian-plugin-library

0 commit comments

Comments
 (0)