Skip to content

Commit

Permalink
Version 1.3.1
Browse files Browse the repository at this point in the history
- Fixed a bug where `?` didn't show the help screen on Windows by default
  • Loading branch information
mgunyho committed Dec 6, 2022
2 parents 19d3fe1 + 6a61141 commit 14f2cdf
Show file tree
Hide file tree
Showing 5 changed files with 13 additions and 2 deletions.
4 changes: 4 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
## 1.3.1 (2022-12-06)

- Fixed a bug where `?` didn't show the help screen on Windows by default

## 1.3.0 (2022-10-15)

- Add option to toggle filter search mode while the app is running, the default shortcut is `Alt-f` (Github #59)
Expand Down
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 = "tere"
version = "1.3.0"
version = "1.3.1"
authors = ["Márton Gunyhó <[email protected]>"]
edition = "2018"
description = "Terminal file explorer"
Expand Down
1 change: 1 addition & 0 deletions src/settings.rs
Original file line number Diff line number Diff line change
Expand Up @@ -336,6 +336,7 @@ pub const DEFAULT_KEYMAP: &[(KeyEvent, ActionContext, Action)] = &[
(key!(ctrl-r), ActionContext::None, Action::RefreshListing),

(key!('?'), ActionContext::None, Action::Help),
(key!(shift-'?'), ActionContext::None, Action::Help),

(key!(esc), ActionContext::NotSearching, Action::Exit),
(key!(alt-q), ActionContext::None, Action::Exit),
Expand Down
6 changes: 6 additions & 0 deletions src/ui/help_window.rs
Original file line number Diff line number Diff line change
Expand Up @@ -376,6 +376,12 @@ mod tests {

// Check that default keymaps match the ones listed in the README
for (key_combo, _, expected_action) in crate::app_state::settings::DEFAULT_KEYMAP {
// Shift-'?' doesn't need to be in the readme, it's in the default keymap to fix
// the behavior on Windows.
if *key_combo == crokey::key!(shift-'?') {
continue;
}

let key_combo_str = crokey::KeyEventFormat::default().to_string(*key_combo);
let actions = key_mappings.get(key_combo).unwrap_or_else(|| {
panic!(
Expand Down

0 comments on commit 14f2cdf

Please sign in to comment.