Repository: gitui-org/gitui (language: rust)

Issue:
Going to Files from Details -> Inspect or Diff is not working
**Describe the bug**
Going to Files Tab from Details or Diff view in Log is failing

**To Reproduce**
Steps to reproduce the behavior:
1. Go to 'Log' Tab.
2. Select a commit from history and press 'Enter' to go to Details and then 'Right' Inspect.
3. The option to go to Files with F is presented.
4. Pressing 'F' has no effect.
5. Selecting a file and pressing 'Right' again to diff will have the same issue. Files option is presented but nothing happens.

**Expected behavior**
I expected to go to Files Tab showing the selected file and the commit revision inspecting.

**Context (please complete the following information):**
 - Ubuntu 23.10 
 - GitUI 0.25.1

**Additional context**
Otherwise Files tab works as expected. Tested on Alacritty and Foot.


Discussion / hints:
I suspect that this is just commands showing up in the cmd bar that are unavailable in these circumstances 
I haven't checked. It would be a cool feature though to have them available. Like you are checking a specific commit in the log tab and then you jump to files to inspect a changed file at that commit. 
Hey, as per discussed in the discord server. I found the commit that removed the functionality ( [7dcf93e ](https://github.com/extrawurst/gitui/commit/7dcf93e0b279a7f09a98b44fee88430afa09e149) ). I will fix it and get back to you with a proper PR.

Fix patch:
diff --git a/src/popups/inspect_commit.rs b/src/popups/inspect_commit.rs
index 42c95dd2b1..7ce1aced8d 100644
--- a/src/popups/inspect_commit.rs
+++ b/src/popups/inspect_commit.rs
@@ -23,6 +23,8 @@ use ratatui::{
 	Frame,
 };
 
+use super::FileTreeOpen;
+
 #[derive(Clone, Debug)]
 pub struct InspectCommitOpen {
 	pub commit_id: CommitId,
@@ -169,6 +171,24 @@ impl Component for InspectCommitPopup {
 				} else if key_match(e, self.key_config.keys.move_left)
 				{
 					self.hide_stacked(false);
+				} else if key_match(
+					e,
+					self.key_config.keys.open_file_tree,
+				) {
+					if let Some(commit_id) = self
+						.open_request
+						.as_ref()
+						.map(|open_commit| open_commit.commit_id)
+					{
+						self.hide_stacked(true);
+						self.queue.push(InternalEvent::OpenPopup(
+							StackablePopupOpen::FileTree(
+								FileTreeOpen::new(commit_id),
+							),
+						));
+						return Ok(EventState::Consumed);
+					}
+					return Ok(EventState::NotConsumed);
 				}
 
 				return Ok(EventState::Consumed);


Test patch: