MCPcopy Create free account
hub / github.com/Acode-Foundation/Acode / constructor

Method constructor

src/lib/searchHistory.js:10–16  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

8
9class SearchHistory {
10 constructor() {
11 this.history = this.loadHistory(HISTORY_KEY);
12 this.searchIndex = -1; // Current position in history for search input
13 this.replaceIndex = -1; // Current position in history for replace input
14 this.tempSearchValue = ""; // Temporary storage for current search input
15 this.tempReplaceValue = ""; // Temporary storage for current replace input
16 }
17
18 /**
19 * Load history from localStorage

Callers

nothing calls this directly

Calls 1

loadHistoryMethod · 0.95

Tested by

no test coverage detected