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:
parent
031938a792
commit
50e72a1a03
1 changed files with 2 additions and 2 deletions
|
@ -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
|
||||||
|
|
Loading…
Reference in a new issue