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.
This commit is contained in:
Emre AKYÜZ 2023-11-13 16:30:08 +03:00 committed by GitHub
parent 031938a792
commit 50e72a1a03
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -50,7 +50,7 @@ cmd open ${{
esac esac
}} }}
cmd mkdir $mkdir -p "$(echo $* | tr ' ' '\ ')" cmd mkdir $mkdir -p "$@"
cmd extract ${{ cmd extract ${{
clear; tput cup $(($(tput lines)/3)); tput bold clear; tput cup $(($(tput lines)/3)); tput bold
@ -139,7 +139,7 @@ map D delete
map E extract map E extract
map C copyto map C copyto
map M moveto map M moveto
map <c-n> push :mkdir<space> map <c-n> push :mkdir<space>""<left>
map <c-r> reload map <c-r> reload
map <c-s> set hidden! map <c-s> set hidden!
map <enter> shell map <enter> shell