Skip to content

Instantly share code, notes, and snippets.

@cskeeters
Last active July 12, 2025 15:36
Show Gist options
  • Save cskeeters/f2692eb724fcf8be653c44c98bd89e83 to your computer and use it in GitHub Desktop.
Save cskeeters/f2692eb724fcf8be653c44c98bd89e83 to your computer and use it in GitHub Desktop.
Patch for reverting H and L behavior in yazi
diff --git a/yazi-core/src/tab/commands/cd.rs b/yazi-core/src/tab/commands/cd.rs
index 887a6b76..7b5d52b0 100644
--- a/yazi-core/src/tab/commands/cd.rs
+++ b/yazi-core/src/tab/commands/cd.rs
@@ -73,9 +73,7 @@ impl Tab {
}
// Backstack
- if opt.source.big_jump() && opt.target.is_regular() {
- self.backstack.push(&opt.target);
- }
+ self.backstack.push(&opt.target);
Pubsub::pub_from_cd(self.id, self.cwd());
self.hover(None);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment