SEARCH

Enter your search query in the box above ^, or use the forum search tool.

You are not logged in.

#26 2014-08-10 06:30:09

twoion
Emerald Caffeine
From: 星界
Registered: 2012-05-11
Posts: 1,648

Re: Bash completion for the mpv video player

No, I have confirmed that it works fine on a Debian Squeeze/Oldstable with Bash 4.1.5.
--
Besides, the 0.8 release is ready and seems to be the first release without any obvious bugs ^^ I'd appreciate it if you'd give it a try smile


Tannhäuser ~ {www,pkg,ddl}.bunsenlabs.org/{gitlog,repoidx}

Offline

Help fund CrunchBang, donate to the project!

#27 2014-08-10 07:01:21

twoion
Emerald Caffeine
From: 星界
Registered: 2012-05-11
Posts: 1,648

Re: Bash completion for the mpv video player

Alright, it's here: first release candidate 0.9. Should be near-perfect now.

File name completion is now as fast as normal since I finally figured out (=read the docs) how to set the completion options correctly.

Last edited by twoion (2014-08-10 07:01:41)


Tannhäuser ~ {www,pkg,ddl}.bunsenlabs.org/{gitlog,repoidx}

Offline

#28 2014-08-10 07:44:54

Alad
Software Satan
Registered: 2014-02-20
Posts: 1,512

Re: Bash completion for the mpv video player

I don't know if it will pull anything in that will bork a debian stable set up.

It's statically compiled. So, no.

Offline

#29 2014-08-10 07:54:51

twoion
Emerald Caffeine
From: 星界
Registered: 2012-05-11
Posts: 1,648

Re: Bash completion for the mpv video player

Alad wrote:

I don't know if it will pull anything in that will bork a debian stable set up.

It's statically compiled. So, no.

Well, partially - statically linked against ffmpeg, libfribidi and libass, but the rest is linked in dynamically and just like in mplayer, the available feature set depends on which libraries' dev files you've got installed. You'd probably want libmpeg123, for example.


Tannhäuser ~ {www,pkg,ddl}.bunsenlabs.org/{gitlog,repoidx}

Offline

#30 2014-08-10 08:04:49

Alad
Software Satan
Registered: 2014-02-20
Posts: 1,512

Re: Bash completion for the mpv video player

But as you compile against those libraries, there's nothing that should "bork a setup up", right? It'd essentially be like a backport.

Offline

#31 2014-08-10 08:43:50

twoion
Emerald Caffeine
From: 星界
Registered: 2012-05-11
Posts: 1,648

Re: Bash completion for the mpv video player

Yes, no harm done.


Tannhäuser ~ {www,pkg,ddl}.bunsenlabs.org/{gitlog,repoidx}

Offline

#32 2014-08-13 19:51:37

Alad
Software Satan
Registered: 2014-02-20
Posts: 1,512

Re: Bash completion for the mpv video player

I've decided to try something new and make a screencast  ]:D

https://mediacru.sh/8NpA-hQ1GYb4

Offline

#33 2014-08-14 05:16:17

brontosaurusrex
#! Red Menace
Registered: 2012-06-15
Posts: 1,643

Re: Bash completion for the mpv video player

subscribed.

Last edited by brontosaurusrex (2014-08-14 09:39:57)

Offline

#34 2014-08-14 08:58:30

im0
New Member
Registered: 2014-08-14
Posts: 1

Re: Bash completion for the mpv video player

Great project, thanks. I would suggest adding file tab-completion for known media formats. So

mpv [tab]

Only completes/suggests either directories or media (a/v) files. The default bash completion for mplayer works this way.

Cheers!

Last edited by im0 (2014-08-14 08:58:49)

Offline

#35 2014-08-14 10:53:18

twoion
Emerald Caffeine
From: 星界
Registered: 2012-05-11
Posts: 1,648

Re: Bash completion for the mpv video player

Alad wrote:

I've decided to try something new and make a screencast  ]:D

https://mediacru.sh/8NpA-hQ1GYb4

Awesome! Unfortunately, Github-flavoured markdown does not yet support including screencasts as video ...

--
Edit: Linked it in the top post.

Last edited by twoion (2014-08-14 11:23:43)


Tannhäuser ~ {www,pkg,ddl}.bunsenlabs.org/{gitlog,repoidx}

Offline

#36 2014-08-14 11:22:53

twoion
Emerald Caffeine
From: 星界
Registered: 2012-05-11
Posts: 1,648

Re: Bash completion for the mpv video player

im0 wrote:

Great project, thanks. I would suggest adding file tab-completion for known media formats. So

mpv [tab]

Only completes/suggests either directories or media (a/v) files. The default bash completion for mplayer works this way.

Cheers!

Thanks for your input, it's much appreciated!

And here do our preferences clash smile As you might have seen in Alad's screencast or tried by yourself, it also completes .dotted ("hidden") directories as of now (a preference of mine). Normal completion doesn't do that either. I think I'll implement that at some point though for the audience.

As for the completion filtered by media type - I got annoyed quite often by this when I tried playing media files I accidentally stored without an .XXXst w suffix O.o which mplayer completion (at that time) didn't complete ... also, any such liill most likely be incomplete (too many different endings) and also inaccurate, as the supported formats for any version of mpv may differ (depends on what flags were set/libs were present at compile time). I might make something like that optional though (as an argument to the gen.sh script).

The very next features I'm considering though is type-based completion: Some options of mpv take floats or integers within certain ranges or colors, think: increment integer/float arguments by pressing tab multiple times! and so on.


Tannhäuser ~ {www,pkg,ddl}.bunsenlabs.org/{gitlog,repoidx}

Offline

#37 2014-08-14 16:55:25

twoion
Emerald Caffeine
From: 星界
Registered: 2012-05-11
Posts: 1,648

Re: Bash completion for the mpv video player

Version 0.10 (downloads, source) brings range completion for options that take an integer or float arguments: if the respective option takes a number within an interval, complete the upper and lower bounds of that interval.


Tannhäuser ~ {www,pkg,ddl}.bunsenlabs.org/{gitlog,repoidx}

Offline

#38 2014-08-16 11:49:38

twoion
Emerald Caffeine
From: 星界
Registered: 2012-05-11
Posts: 1,648

Re: Bash completion for the mpv video player

I rebuilt the completion scripts in the download section for mpv 0.5.0. A few options have been changed or removed; users should rebuild their scripts or download the updated package.


Tannhäuser ~ {www,pkg,ddl}.bunsenlabs.org/{gitlog,repoidx}

Offline

#39 2014-08-19 18:35:18

Alad
Software Satan
Registered: 2014-02-20
Posts: 1,512

Re: Bash completion for the mpv video player

Awesome! Unfortunately, Github-flavoured markdown does not yet support including screencasts as video ...

I've tried to convert it to GIF, but it's either fugly (ffmpeg), or crashes my computer (imagemagick) hmm

Offline

#40 2014-09-14 20:20:38

twoion
Emerald Caffeine
From: 星界
Registered: 2012-05-11
Posts: 1,648

Re: Bash completion for the mpv video player

I just relased version 0.11 which fixes an important bug: mpv flag options like --border=yes are now actually completed as such (instead of the wrong '--border yes'). This should make the script fully compliant with the mpv CLI option spec again.

.deb download | Source

Last edited by twoion (2014-09-14 20:21:02)


Tannhäuser ~ {www,pkg,ddl}.bunsenlabs.org/{gitlog,repoidx}

Offline

#41 2014-09-15 20:27:52

twoion
Emerald Caffeine
From: 星界
Registered: 2012-05-11
Posts: 1,648

Re: Bash completion for the mpv video player

New version 0.14 includes various bug fixes.

.deb download | Source

Last edited by twoion (2014-09-21 20:30:42)


Tannhäuser ~ {www,pkg,ddl}.bunsenlabs.org/{gitlog,repoidx}

Offline

#42 2014-09-21 20:30:57

twoion
Emerald Caffeine
From: 星界
Registered: 2012-05-11
Posts: 1,648

Re: Bash completion for the mpv video player

New version 0.15 fixes the omission of String-type options.

.deb download | Source

Last edited by twoion (2014-09-21 20:31:14)


Tannhäuser ~ {www,pkg,ddl}.bunsenlabs.org/{gitlog,repoidx}

Offline

#43 2015-01-01 21:20:06

twoion
Emerald Caffeine
From: 星界
Registered: 2012-05-11
Posts: 1,648

Re: Bash completion for the mpv video player

I have uploaded an updated Debian package with the latest completion options from the upstream git sources.

.deb download | Source

Also note that as of now, 0.7.2-1+ffmpeg is available in the experimental suite and designates an mpv build against ffmpeg instead of libav. This is pretty sweet!


Tannhäuser ~ {www,pkg,ddl}.bunsenlabs.org/{gitlog,repoidx}

Offline

#44 2015-03-12 15:24:43

twoion
Emerald Caffeine
From: 星界
Registered: 2012-05-11
Posts: 1,648

Re: Bash completion for the mpv video player

For the Arch users among us: The package is now available in the AUR as mpv-bash-completion-git.

In order to update the completion for newer mpv versions, you have to rebuild the AUR package.

Last edited by twoion (2015-03-12 21:16:43)


Tannhäuser ~ {www,pkg,ddl}.bunsenlabs.org/{gitlog,repoidx}

Offline

Board footer

Powered by FluxBB

Copyright © 2012 CrunchBang Linux.
Proudly powered by Debian. Hosted by Linode.
Debian is a registered trademark of Software in the Public Interest, Inc.
Server: acrobat

Debian Logo