summaryrefslogtreecommitdiff
path: root/.zsh_functions
diff options
context:
space:
mode:
authorHendrik Jaeger <henk@frustcomp>2015-01-26 22:33:04 +0100
committerHendrik Jaeger <henk@frustcomp>2015-01-26 22:33:04 +0100
commit590fa35fde4f48c32fc308275286c68a1bf88ea4 (patch)
treee3ccf4d0ff56d9bdf0931feba220466a7ff904e0 /.zsh_functions
parentf0a1f3fe2ed28ed216847f32c8a89139cdec2e26 (diff)
Changes to be committed:
modified: .zsh_aliases modified: .zsh_functions modified: .zshrc
Diffstat (limited to '.zsh_functions')
-rw-r--r--.zsh_functions28
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)
}