]> git.madduck.net Git - etc/zsh.git/blobdiff - .zsh/zshrc/80-zle_inplace_list

madduck's git repository

Every one of the projects in this repository is available at the canonical URL git://git.madduck.net/madduck/pub/<projectpath> — see each project's metadata for the exact URL.

All patches and comments are welcome. Please squash your changes to logical commits before using git-format-patch and git-send-email to patches@git.madduck.net. If you'd read over the Git project's submission guidelines and adhered to them, I'd be especially grateful.

SSH access, as well as push access can be individually arranged.

If you use my repositories frequently, consider adding the following snippet to ~/.gitconfig and using the third clone URL listed for each project:

[url "git://git.madduck.net/madduck/"]
  insteadOf = madduck:

add pmnpw alias
[etc/zsh.git] / .zsh / zshrc / 80-zle_inplace_list
index dc7753da2bd0d9a1302ddceb7cb69aa7438ed077..1f667598c332abdd8eae0efc938eee956556adb6 100644 (file)
@@ -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