Add ctrl-c handler

pull/3/head
Arijit Basu 3 years ago
parent f43ba87a2b
commit 107211a69c
No known key found for this signature in database
GPG Key ID: 7D7BF809E7378863

2
Cargo.lock generated

@ -1117,7 +1117,7 @@ checksum = "712e227841d057c1ee1cd2fb22fa7e5a5461ae8e48fa2ca79ec42cfc1931183f"
[[package]]
name = "xplr"
version = "0.2.7"
version = "0.2.8"
dependencies = [
"criterion",
"crossterm",

@ -1,6 +1,6 @@
[package]
name = "xplr"
version = "0.2.7" # Update app.rs
version = "0.2.8" # 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."

@ -11,7 +11,7 @@ use std::collections::VecDeque;
use std::fs;
use std::path::PathBuf;
pub const VERSION: &str = "v0.2.7"; // Update Cargo.toml
pub const VERSION: &str = "v0.2.8"; // Update Cargo.toml
pub const TEMPLATE_TABLE_ROW: &str = "TEMPLATE_TABLE_ROW";

@ -341,6 +341,11 @@ impl Default for KeyBindings {
help: cancel & quit
messages:
- Terminate
ctrl-c:
help: cancel & quit
messages:
- Terminate
"###,
)
.unwrap();

Loading…
Cancel
Save