Skip to content

Commit

Permalink
Fix "ctrl-i" key for history navigation
Browse files Browse the repository at this point in the history
Unfortunately, "ctrl-i" doesn't work unless "tab" i sremapped to the
key.
  • Loading branch information
sayanarijit committed May 24, 2021
1 parent eef4d92 commit 9b02ef3
Show file tree
Hide file tree
Showing 4 changed files with 7 additions and 5 deletions.
2 changes: 1 addition & 1 deletion Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[package]
name = "xplr"
version = "0.11.0" # Update lua.rs
version = "0.11.1" # Update lua.rs
authors = ["Arijit Basu <[email protected]>"]
edition = "2018"
description = "A hackable, minimal, fast TUI file explorer"
Expand Down
1 change: 1 addition & 0 deletions src/init.lua
Original file line number Diff line number Diff line change
Expand Up @@ -745,6 +745,7 @@ xplr.config.modes.builtin.default = {
}
}

xplr.config.modes.builtin.default.key_bindings.on_key["tab"] = xplr.config.modes.builtin.default.key_bindings.on_key["ctrl-i"]
xplr.config.modes.builtin.default.key_bindings.on_key["v"] = xplr.config.modes.builtin.default.key_bindings.on_key.space
xplr.config.modes.builtin.default.key_bindings.on_key["V"] = xplr.config.modes.builtin.default.key_bindings.on_key["ctrl-a"]
xplr.config.modes.builtin.default.key_bindings.on_key["/"] = xplr.config.modes.builtin.default.key_bindings.on_key["ctrl-f"]
Expand Down
7 changes: 4 additions & 3 deletions src/lua.rs
Original file line number Diff line number Diff line change
Expand Up @@ -134,9 +134,10 @@ mod test {
fn test_compatibility() {
assert!(check_version(VERSION, "foo path").is_ok());
assert!(check_version("0.11.0", "foo path").is_ok());
assert!(check_version("0.11.1", "foo path").is_ok());

assert!(check_version("0.11.1", "foo path").is_err());
assert!(check_version("0.10.0", "foo path").is_err());
assert!(check_version("1.12.0", "foo path").is_err());
assert!(check_version("0.11.2", "foo path").is_err());
assert!(check_version("0.10.1", "foo path").is_err());
assert!(check_version("1.12.1", "foo path").is_err());
}
}

0 comments on commit 9b02ef3

Please sign in to comment.