Use "esc" instead of "escape"

pull/3/head
Arijit Basu 3 years ago
parent 669151c70e
commit 096489dee4
No known key found for this signature in database
GPG Key ID: 7D7BF809E7378863

2
Cargo.lock generated

@ -1133,7 +1133,7 @@ checksum = "712e227841d057c1ee1cd2fb22fa7e5a5461ae8e48fa2ca79ec42cfc1931183f"
[[package]]
name = "xplr"
version = "0.1.9"
version = "0.1.10"
dependencies = [
"criterion",
"crossterm",

@ -1,6 +1,6 @@
[package]
name = "xplr"
version = "0.1.9" # Update app.rs
version = "0.1.10" # Update app.rs
authors = ["Arijit Basu <sayanarijit@gmail.com>"]
edition = "2018"
description = "An experimental, minimal, configurable TUI file explorer, stealing ideas from nnn and fzf."

@ -12,7 +12,7 @@ use std::io::BufReader;
use std::path::Path;
use std::path::PathBuf;
pub const VERSION: &str = "v0.1.8"; // Update Cargo.toml
pub const VERSION: &str = "v0.1.10"; // Update Cargo.toml
pub const UNSUPPORTED_STR: &str = "???";
pub const TOTAL_ROWS: usize = 50;
@ -341,10 +341,12 @@ impl App {
pub fn exit_submode(self) -> Result<Self, Error> {
let mode = match self.mode {
Mode::Explore => Mode::Explore,
Mode::ExploreSubmode(_) => Mode::Explore,
Mode::Select => Mode::Select,
Mode::SelectSubmode(_) => Mode::Select,
m => m,
};
Self::new(
&self.config,
&self.directory_buffer.pwd,

@ -268,7 +268,7 @@ impl Default for KeyBindings {
- Call:
command: bash
escape:
esc:
help: quit
actions:
- Quit

@ -19,7 +19,7 @@ pub enum Key {
Return,
Space,
Tab,
Escape,
Esc,
Zero,
One,
@ -270,7 +270,7 @@ impl Key {
TermionKey::Char('\n') => Key::Return,
TermionKey::Char(' ') => Key::Space,
TermionKey::Char('\t') => Key::Tab,
TermionKey::Esc => Key::Escape,
TermionKey::Esc => Key::Esc,
TermionKey::Char('0') => Key::Zero,
TermionKey::Char('1') => Key::One,

Loading…
Cancel
Save