From 50e72a1a0306d4343360b31f941ef73b4c2e8ba5 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Emre=20AKY=C3=9CZ?= Date: Mon, 13 Nov 2023 16:30:08 +0300 Subject: [PATCH] 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. --- .config/lf/lfrc | 4 ++-- 1 file 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 push :mkdir +map push :mkdir"" map reload map set hidden! map shell