MCPcopy Create free account
hub / github.com/continuedev/continue / navigateUp

Method navigateUp

extensions/cli/src/util/inputHistory.ts:74–86  ·  view source on GitHub ↗
(currentInput: string)

Source from the content-addressed store, hash-verified

72 }
73
74 navigateUp(currentInput: string): string | null {
75 if (this.history.length === 0) return null;
76
77 // Store original input on first navigation
78 if (this.currentIndex === -1) {
79 this.originalInput = currentInput;
80 this.currentIndex = 0;
81 } else if (this.currentIndex < this.history.length - 1) {
82 this.currentIndex++;
83 }
84
85 return this.history[this.currentIndex]?.text || null;
86 }
87
88 navigateDown(): string | null {
89 if (this.currentIndex === -1) return null;

Callers 2

handleHistoryNavigationFunction · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected