def on_omnibox_local_chdir_command(self, event: Omnibox.LocalChdirCommand) -> None:
        """Handle being asked to view a new directory in the local files picker.

        Args:
            event: The chdir command event to handle.
        """
        if not event.target.exists():
            self.app.push_screen(
                ErrorDialog("No such directory", f"{event.target} does not exist.")
            )
        elif not event.target.is_dir():
            self.app.push_screen(
                ErrorDialog("Not a directory", f"{event.target} is not a directory.")
            )
        else:
            self.query_one(Navigation).jump_to_local_files(event.target)
Handle being asked to view a new directory in the local files picker.

        Args:
            event: The chdir command event to handle.
        
frogmouth/screens/main.py