Fix escaping relative path

Either escape or quote. Don't do both at once.
pull/3/head
Arijit Basu 3 years ago
parent d3f88a1fa5
commit 21e4a178c7
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.10"
version = "0.1.11"
dependencies = [
"criterion",
"crossterm",

@ -1,6 +1,6 @@
[package]
name = "xplr"
version = "0.1.10" # Update app.rs
version = "0.1.11" # 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.10"; // Update Cargo.toml
pub const VERSION: &str = "v0.1.11"; // Update Cargo.toml
pub const UNSUPPORTED_STR: &str = "???";
pub const TOTAL_ROWS: usize = 50;

@ -266,7 +266,7 @@ impl Default for KeyBindings {
command: bash
args:
- "-c"
- FILE="{{shellescape relativePath}}" && xdg-open "${FILE:?}" &> /dev/null
- FILE="{{relativePath}}" && xdg-open "${FILE:?}" &> /dev/null
e:
help: edit
actions:
@ -274,7 +274,7 @@ impl Default for KeyBindings {
command: bash
args:
- -c
- FILE="{{shellescape relativePath}}" && "${EDITOR:-vim}" "${FILE:?}"
- FILE="{{relativePath}}" && "${EDITOR:-vim}" "${FILE:?}"
forward-slash:
help: search
actions:

Loading…
Cancel
Save