diff options
author | Hendrik Jaeger <henk@frustcomp> | 2015-01-26 22:33:04 +0100 |
---|---|---|
committer | Hendrik Jaeger <henk@frustcomp> | 2015-01-26 22:33:04 +0100 |
commit | 590fa35fde4f48c32fc308275286c68a1bf88ea4 (patch) | |
tree | e3ccf4d0ff56d9bdf0931feba220466a7ff904e0 /.zsh_functions | |
parent | f0a1f3fe2ed28ed216847f32c8a89139cdec2e26 (diff) |
Changes to be committed:
modified: .zsh_aliases
modified: .zsh_functions
modified: .zshrc
Diffstat (limited to '.zsh_functions')
-rw-r--r-- | .zsh_functions | 28 |
1 files changed, 22 insertions, 6 deletions
diff --git a/.zsh_functions b/.zsh_functions index 453f122..664e266 100644 --- a/.zsh_functions +++ b/.zsh_functions @@ -47,12 +47,28 @@ function vifind () { vi $( find $1 -type f ) } -function shufflevideos () { - find $@ -type f -iregex ".*\.\(avi\|flv\|mkv\|mpeg\|mpg\|wmv\|wva\|mp4\|webm\|wva\|m4v\|ogm\|mp4\|mov\)" -exec mpv --shuffle $MPVOPTS \{\} + +function mpvshuffledir () { + mpv $MPVOPTS \ + --shuffle \ + ${1:-.}/**/*.(mpeg|webm|avi|flv|mkv|mpg|wmv|wva|mp4|wva|m4v|ogm|mp4|mov) } -function zle-line-init zle-keymap-select { - RPS1="%B${${KEYMAP/vicmd/c}/(main|viins)/}%b" - RPS2=$RPS1 - zle reset-prompt +function movies_oldest () { + mpv $MPVOPTS \ + **/*.(mpeg|webm|avi|flv|mkv|mpg|wmv|wva|mp4|wva|m4v|ogm|mp4|mov)(Om) +} + +function movies_newest () { + mpv $MPVOPTS \ + **/*.(mpeg|webm|avi|flv|mkv|mpg|wmv|wva|mp4|wva|m4v|ogm|mp4|mov)(om) +} + +function movies_smallest () { + mpv $MPVOPTS \ + **/*.(mpeg|webm|avi|flv|mkv|mpg|wmv|wva|mp4|wva|m4v|ogm|mp4|mov)(oL) +} + +function movies_biggest () { + mpv $MPVOPTS \ + **/*.(mpeg|webm|avi|flv|mkv|mpg|wmv|wva|mp4|wva|m4v|ogm|mp4|mov)(OL) } |