def jump_to_local_files(self, target: Path | None = None) -> Self:
        """Switch to and focus the local files pane.

        Returns:
            Self.
        """
        if (
            self.popped_out
            and target is None
            and self.query_one(Tabs).active == self._local_files.id
        ):
            self.popped_out = False
        else:
            self.popped_out = True
            if target is not None:
                self._local_files.chdir(target)
            self._local_files.activate().set_focus_within()
        return self
Switch to and focus the local files pane.

        Returns:
            Self.
        
frogmouth/widgets/navigation.py