Thomas Scholtes
c51e541ae2
Move completion_script into commands module
2014-03-02 19:59:35 +01:00
Thomas Scholtes
44c843793b
Add completion of plugin commands
2014-03-02 16:18:16 +01:00
Thomas Scholtes
25080bd59f
Add documentation for completion command
2014-03-02 15:50:23 +01:00
Thomas Scholtes
5c7104adb0
Print warning last
2014-02-28 17:15:04 +01:00
Thomas Scholtes
57f7fccdde
Install bash-completion on travis
2014-02-28 16:57:22 +01:00
Thomas Scholtes
2b0929b71b
Complete queries
2014-02-27 22:13:09 +01:00
Thomas Scholtes
74cb897f79
Add warning if completion package not found
2014-02-27 18:16:02 +01:00
Thomas Scholtes
8450d51bab
bash-completion package can be set by environment
2014-02-27 17:57:02 +01:00
Thomas Scholtes
996a1d6c90
Use bash-completion package
2014-02-27 17:52:23 +01:00
Thomas Scholtes
211d3ac1cb
Do not evaluate in subshell
2014-02-27 15:28:16 +01:00
Thomas Scholtes
81a28198aa
Test completion with clean bash instance
2014-02-27 15:09:02 +01:00
Thomas Scholtes
4c00e52455
Completion for filenames with spaces
2014-02-23 23:17:49 +01:00
Thomas Scholtes
fa6f7622e0
Move completion into beets.ui package and use pkg_resources
2014-02-23 22:16:59 +01:00
Thomas Scholtes
e8e0682aae
Add completion support for bash 3.2
...
Bash 3.2 does not have associative arrays, so we hack around that by using
generic varibale names like `opts__$cmd`. We also don't support the "?" alias
anymore.
2014-02-22 17:59:23 +01:00
Thomas Scholtes
c5d3483fc3
Add note for shell support
2014-02-20 13:46:21 +01:00
Thomas Scholtes
c1de721ca1
Remove unused code
2014-02-20 13:43:48 +01:00
Thomas Scholtes
14ece207c9
Add completion command
...
The command prints a shell script that provides completion for the `beet`
command. To test it run `eval "$(beet completion)"` in your shell.
I also included some crude testing for this. The `test/test_completion.sh`
script runs tests in a shell and exit with a non-zero status code if the tests
fail. It assumes that the completion script is already loaded in the executing
shell.
As of now the completion only works for bash 4.1 and newer.
2014-02-20 01:15:03 +01:00
Adrian Sampson
c196f20dfc
fix numeric queries over empty string ( fix #547 )
2014-02-17 22:51:53 -05:00
Adrian Sampson
5d55312fdb
add TOCs to some documentation
2014-02-16 19:25:26 -08:00
Adrian Sampson
a8ee13f16e
add some failing tests for date queries
2014-02-14 23:02:51 -08:00
Adrian Sampson
4feccd4712
date queries: light style changes
2014-02-14 22:21:26 -08:00
Adrian Sampson
1d67201290
link to copyartifacts plugin
2014-02-13 21:38:55 -08:00
Adrian Sampson
a2075d31e5
modify: use formatted values in _showdiff()
...
Perhaps we should use this for other commands also. One outstanding issue is
strange highlighting (e.g., "True -> False" helpfully shows that the "e" did
not change).
2014-02-13 21:33:58 -08:00
Adrian Sampson
be31ac683a
Model._parse() class method
2014-02-13 21:29:17 -08:00
Adrian Sampson
b1d70eee39
modify: remove special parsing logic
...
This could be nicer, but at least we now use standard type-based parsing.
2014-02-13 21:22:23 -08:00
Adrian Sampson
e37d00c93c
changelog for config priorities ( #513 )
2014-02-13 13:58:47 -08:00
Adrian Sampson
4bb2622b9b
fix testability of main entry point
2014-02-13 13:56:26 -08:00
Adrian Sampson
276a09bad7
clean up --config handling
...
In reference to a363d9672f . This helps preserve
modularity/readability by avoiding contamination of the subcommand logic with
beets-specific logic.
2014-02-13 13:46:20 -08:00
Adrian Sampson
23fb5da1dc
Revert "Replace path separators from config"
...
This reverts commit c82b31e750 .
Conflicts:
docs/changelog.rst
2014-02-13 13:22:45 -08:00
Adrian Sampson
8df31453c0
setup.py: remove namespace_packages declaration
...
Looks like the Setuptools people are moving to make this an error. I don't
think it was doing anything anyway.
https://bitbucket.org/pypa/setuptools/issue/12/update-or-remove-warning-when-namespace
2014-02-11 12:06:25 -08:00
Adrian Sampson
c6d649eadf
changelog/thanks for #535
2014-02-11 09:53:41 -08:00
Adrian Sampson
007c26176e
Merge pull request #535 from kljohann/last_playing
...
mpdstats: update last_played
2014-02-11 09:51:46 -08:00
Adrian Sampson
3dd9e4622f
lastgenre: tolerate el.weight is None
2014-02-11 09:49:15 -08:00
Adrian Sampson
7190964e05
restore echonest fetch command ( fix #540 )
2014-02-11 09:44:02 -08:00
Thomas Scholtes
49bce6276e
Fix test run with setuptools
2014-02-11 13:24:47 +01:00
Adrian Sampson
4c5fc8fd76
echonest: use only one plugin class ( fix #536 )
2014-02-10 22:08:15 -08:00
Johann Klähn
73a43b56a0
mpdstats: update last_played
...
This fixes #529 and brings back the old behaviour of setting last_played
on every song change regardless of whether it is played to the end or skipped.
2014-02-10 20:55:42 +01:00
Thomas Scholtes
ba226f566d
Update docs for fix a363d967
2014-02-10 17:29:23 +01:00
Thomas Scholtes
004e9a8144
Add query converter
2014-02-10 17:26:26 +01:00
Thomas Scholtes
dcbf7ecc36
Fix album retrieval
2014-02-10 17:26:26 +01:00
Thomas Scholtes
6663ed0c64
Use URL converters
2014-02-10 17:26:26 +01:00
Thomas Scholtes
a363d9672f
Load plugins from cli config
2014-02-10 17:26:26 +01:00
Thomas Scholtes
5f79c54cb3
Rewrite config test to be more transparent
2014-02-10 17:26:26 +01:00
Adrian Sampson
8ffe83b99e
fetchart: fix #533 , remote_priority ignoring local
2014-02-09 16:10:53 -08:00
Adrian Sampson
8556de8d3a
dbcore: flexattr deletion ( fix #530 )
2014-02-08 12:31:50 -08:00
Adrian Sampson
e609319b3d
fix ihate tests
2014-02-08 12:20:25 -08:00
Adrian Sampson
ee713d153c
ihate: fix singletons (from #486 , fix #411 )
2014-02-08 12:11:32 -08:00
Adrian Sampson
67df43b9cf
changelog/thanks for #486 ( close #398 )
2014-02-08 12:05:19 -08:00
Adrian Sampson
fe5c175cc3
style fixes for ihate ( #486 )
2014-02-08 12:00:23 -08:00
Adrian Sampson
5f2cb6b5cd
Merge pull request #486 from BrainDamage/master
...
Added support for queries in iHate plugin as opposed to hardcoded regexes
2014-02-08 11:40:23 -08:00