X-Git-Url: https://git.madduck.net/etc/zsh.git/blobdiff_plain/51ac318a1294c0cc8a4eb2e5f8c647a2e2b7001f..HEAD:/.zsh/zshrc/80-zle_inplace_list?ds=sidebyside diff --git a/.zsh/zshrc/80-zle_inplace_list b/.zsh/zshrc/80-zle_inplace_list index dc7753d..1f66759 100644 --- a/.zsh/zshrc/80-zle_inplace_list +++ b/.zsh/zshrc/80-zle_inplace_list @@ -27,11 +27,19 @@ _list_inplace() { lastarg="${(Q)bufwords[iword]}" fi [[ -z "${lastarg}" ]] && return 1 - ls -l ${~lastarg:h} - zle end-of-line + ls "$@" ${~lastarg} + zle redisplay + #zle end-of-line } zle -N _list_inplace bindkey '\el' _list_inplace +_list_inplace_time() { + emulate -L zsh + _list_inplace -rt +} +zle -N _list_inplace_time +bindkey '\eL' _list_inplace_time + # vim:ft=zsh