Skip to main content

Interface: SnippetHashOptions

Defined in: packages/uimatch-selector-anchors/src/hashing/snippet-hash.ts:90

Configuration for snippet hash generation

Properties

algorithm?

optional algorithm: "sha1" | "sha256" | "md5";

Defined in: packages/uimatch-selector-anchors/src/hashing/snippet-hash.ts:107

Hash algorithm to use

Default

'sha1'

contextAfter?

optional contextAfter: number;

Defined in: packages/uimatch-selector-anchors/src/hashing/snippet-hash.ts:101

Number of lines after the target line to include in snippet

Default

3

contextBefore?

optional contextBefore: number;

Defined in: packages/uimatch-selector-anchors/src/hashing/snippet-hash.ts:95

Number of lines before the target line to include in snippet

Default

3

hashDigits?

optional hashDigits: number;

Defined in: packages/uimatch-selector-anchors/src/hashing/snippet-hash.ts:114

Number of hex digits to use in the hash string Higher values reduce collision probability but increase I/O slightly

Default

10

timeoutMs?

optional timeoutMs: number;

Defined in: packages/uimatch-selector-anchors/src/hashing/snippet-hash.ts:121

Timeout for snippet matching (milliseconds) If specified, search will stop when time limit is reached

Default

undefined (no timeout)