从目录中选择文件。很方便再看电视剧!
choose-next的Python项目详细描述
动机
有时候你只想躺在床上看几集。但是 导航到正确的文件夹并选择一个您尚未看到的插曲 昨天的工作太多了。有了这个小剧本你所要做的就是 键入“playfuturama”(使用tab键完成课程!)如果你设置了例如 此别名:
alias playfuturama='choose-next -c "mplayer -fs" "/media/usb/Futurama"'
新闻
2.0.1 | 2017-05-01 | Small fixes, Windows compatible |
2.0.0 | 2017-04-30 | Bugfixes, Python 3 support, extensive test suite |
1.1 | 2011-04-26 | Bugfixes, ^{tt1}$, ^{tt2}$, and ^{tt3}$ |
1.0 | 2010-04-26 | First working version |
示例
在接下来的几周里,你想严格地看所有的《未来》剧集 旋转:
# clear existing log file choose-next --clear /media/usb/Futurama # no special options needed alias playfuturama='choose-next -c "mplayer -fs" "/media/usb/Futurama"'
你想看一个随机的插曲(无序!),但你已经没有了 看到。您需要预先设置文件名,以便保留旋转顺序:
playfuturama -rp
不知何故你分心了,想再看最后一集:
playfuturama -l
您希望观看特定的一集,并从现在开始继续观看:
playfuturama -n10 "/media/usb/Futurama/S04E01.avi"
用法
choose-next [OPTION]... DIR [FILE]... DIR directory to choose from FILES prefer these files before all others Some options: -c CMD, --command=CMD execute CMD on every selected file; %s in CMD is substituted with the filename, otherwise it is appended to CMD --clear remove log file and exit -l, --last play last played file -n NUM, --number=NUM number of files to select (-1: infinite) -p, --prepend prepend selected filename instead of appending -r, --random choose a random file from DIR
版权
版权所有(c)2010-2017 Johannes Wei_l
许可证gplv3+:
GNU GPL版本3或更高版本<;http://gnu.org/licenses/gpl.html>;
这是免费软件:您可以自由更改和重新分发它。
在法律允许的范围内,不提供任何保证。