diff options
| author | Emre AKYÜZ <emreakyuz_2@hotmail.com> | 2023-11-13 16:30:08 +0300 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2023-11-13 13:30:08 +0000 |
| commit | 50e72a1a0306d4343360b31f941ef73b4c2e8ba5 (patch) | |
| tree | f46833ca95d9c50b8add72db86b0e9c104ec3bf4 | |
| parent | 031938a792ac3107a512e89504929ef9e3e8ed6a (diff) | |
| download | eibhear-50e72a1a0306d4343360b31f941ef73b4c2e8ba5.tar.gz eibhear-50e72a1a0306d4343360b31f941ef73b4c2e8ba5.tar.zst eibhear-50e72a1a0306d4343360b31f941ef73b4c2e8ba5.zip | |
An unnecessary(?), small improvement for lf mkdir command (#1372)
The new method is more robust and better handles directory names with spaces and special characters.
It's more minimal.
| -rw-r--r-- | .config/lf/lfrc | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/.config/lf/lfrc b/.config/lf/lfrc index e104591..e783d72 100644 --- a/.config/lf/lfrc +++ b/.config/lf/lfrc @@ -50,7 +50,7 @@ cmd open ${{ esac }} -cmd mkdir $mkdir -p "$(echo $* | tr ' ' '\ ')" +cmd mkdir $mkdir -p "$@" cmd extract ${{ clear; tput cup $(($(tput lines)/3)); tput bold @@ -139,7 +139,7 @@ map D delete map E extract map C copyto map M moveto -map <c-n> push :mkdir<space> +map <c-n> push :mkdir<space>""<left> map <c-r> reload map <c-s> set hidden! map <enter> shell |
