def remember(self, location: Path | URL) -> None:
        """Remember a new location in the history.

        Args:
            location: The location to remember.
        """
        self._history.append(location)
        self._current = len(self._history) - 1
Remember a new location in the history.

        Args:
            location: The location to remember.
        
frogmouth/widgets/viewer.py