MCPcopy Create free account
hub / github.com/agentforce314/clawcodex / next

Method next

src/command_system/input_processing.py:823–830  ·  view source on GitHub ↗

Get next history entry (down arrow).

(self)

Source from the content-addressed store, hash-verified

821 return self._entries[self._cursor]
822
823 def next(self) -> str | None:
824 """Get next history entry (down arrow)."""
825 if not self._entries:
826 return None
827 self._cursor = min(len(self._entries), self._cursor + 1)
828 if self._cursor >= len(self._entries):
829 return "" # Past the end = empty
830 return self._entries[self._cursor]
831
832 def search(self, prefix: str) -> list[str]:
833 """Search history for entries starting with prefix."""

Callers 13

test_nextMethod · 0.95
test_next_past_endMethod · 0.95
sliceAnsiFunction · 0.80
firstGraphemeFunction · 0.80
lineWidthFunction · 0.80
stringWidthFunction · 0.80
memoizedWrapFunction · 0.80
measureTextNodeFunction · 0.80
lruEvictFunction · 0.80
cacheSetFunction · 0.80
graphemeStopsFunction · 0.80
cacheTitleFunction · 0.80

Calls

no outgoing calls

Tested by 2

test_nextMethod · 0.76
test_next_past_endMethod · 0.76