Olivier Mangin
a7012f532d
Merge pull request #53 from pubs/feat/skippable_tests
...
Fix expectedFailure tests
9 years ago
Fabien Benureau
620eef4ace
Fix expectedFailure tests
9 years ago
Fabien Benureau
e979aae85b
Better rename and error dialogue
...
info() messages now print on stdout. warning() and error() still
print on stderr.
Fix #50
9 years ago
Olivier Mangin
b4d066e1f9
Merge pull request #52 from pubs/feat/better-exceptions
...
Better exceptions handling at the ui level.
9 years ago
Olivier Mangin
2d9fa9af94
Comments out failing test from #25 .
9 years ago
Olivier Mangin
35214e3012
Fix using str instead of ustr for python2 compatibility.
9 years ago
Olivier Mangin
2720d13049
Moves test of config file creation to its own test.
9 years ago
Olivier Mangin
ecb1910084
Better error message on UnicodeDecodeError for reading text file.
...
Also renames read_file to read_text_file which is what is implemented.
Fixes #51 .
9 years ago
Olivier Mangin
348bd6d64b
FIX wrong access to debug configuration value.
...
Also adds the option to the config spec.
9 years ago
Olivier Mangin
ed2bbb4498
Removes generic handling of errors from commands.
...
The default behavior for commands is now to only catch exceptions that
must be handled specifically. This includes outputting a context
dependant message, cleaning up, etc. All other exceptions will be
handled by the ui.
9 years ago
Olivier Mangin
df8f0e6d6b
FIX error handler.
...
Also fix alignments.
9 years ago
Olivier Mangin
6366f4bd01
Uses exception __string__, not __repr__ to carry message.
9 years ago
Olivier Mangin
b12c6297f0
Adds exception catching in main command.
9 years ago
Olivier Mangin
7f6dde2f0c
Temporary fix ExpectedFailure does not handle SystemExit on python 2.
...
Actually the test not only is expected to fail but it misses a file
which causes an error instead of a failure on python 2. Should be
addressed by #25 .
9 years ago
Olivier Mangin
e3df872e65
Updates for new version of pyfakefs.
...
Modules should now be imported from the pyfakefs package.
9 years ago
Olivier Mangin
9d0a800d8b
Cleans up old imports of ConfigParser.
9 years ago
Fabien Benureau
3e3a671837
Remove bibtexparser unicode conversion
...
It was transforming "\&" into "&", rendering the output of
pubs export unsuitable for latex rendering.
9 years ago
Fabien Benureau
a5a653becd
Support old bibtexparser keywords
...
So previous commit 666941d471
broke the current pip version
of bibtexparser (0.6.2), which does not have a
homegeneize_fields keyword. My bad and fixed!
9 years ago
Fabien Benureau
2db80c66ae
Add volume to field ordering
...
Fix #40 , which was annoying.
Any implementation of #33 should watch out for this.
9 years ago
Fabien Benureau
666941d471
Set bibtexparser homogenize_fields to True
...
The default changed from True to False. It is not explicitly set.
9 years ago
Fabien Benureau
98a2f1d646
Fix quadratic output in export
9 years ago
Fabien Benureau
a702d86a74
Make `pubs doc` subparsers required
...
Before, `pubs doc` alone would just exit without printing any help
9 years ago
Fabien Benureau
82c93cf695
Predefined themes and a color bash script
...
Fix : #44
9 years ago
Fabien Benureau
78c562d640
256 colors support
...
+ The colors name's are the number 0 through 255.
+ Old names still work.
+ Add `magenta` color, wrongly named `purple` before.
+ Adds `white`, `darkgrey`.
+ grey/gray spelling
Also removed italics as a default option for publisher.
Related: #44
9 years ago
Olivier Mangin
87346707be
FIX discrepancy in readme.
9 years ago
Fabien Benureau
ec98221d1c
Sanitize one-liner strings
...
Fixes #26
9 years ago
Fabien Benureau
b6e8139bc3
Remove extraneous doc message
9 years ago
Fabien Benureau
b2ebc67f5e
Handle Unicode BOM in bibfile
...
In particular, xml2bib file created without the `-nb` options would trip bibtexparser.
Fixes #23
9 years ago
Fabien Benureau
220e5ad9a8
Fix tests for python 3
9 years ago
Fabien Benureau
69dc3a1690
Parsing error displays bibdata
9 years ago
Fabien Benureau
3b0ba0bb3c
Test for leading space in citekeys
...
This test is expected to fail. Nose does not handle that yet (treats it as false).
As such, changes have been made to make tests discoverable by unittest.
You may want to uninstall nose and do something like:
alias nosetests="python -m unittest discover"
in your bashrc
Related: #25
9 years ago
Fabien Benureau
0ab8310089
Fix color in test_oneliner
9 years ago
Fabien Benureau
48e7658b8c
Update readme.md
...
Precise that the alias plugin should be activated. (see #47 )
Section on document management, and clues where to find more help.
Remove outdated requirements, automatically installed anyway.
9 years ago
Fabien Benureau
5ca090668f
Handle IOError: [Errno 32] Broken pipe
...
Will happen if piping through a pager like less, that closes
stdout before everything has been printed.
Related: #47
9 years ago
Fabien Benureau
2ba435126d
Add --force-colors option
...
Useful when piping to a pager that supports color.
Improved and cleaned up a bit the ui functions too.
Related #44 , #47
9 years ago
Fabien Benureau
a291114900
Remove duplicated edit_cmd code
...
Makes nano the default editor.
Fixes #46
9 years ago
Olivier Mangin
854702488c
Fixes #46 : editor command behaviors with the new config.
...
- Fix the previous default to 'None' (the string 'None', not None)
in the config.
- Adds support for using the $EDITOR when none is defined in the condif.
- Use ui.editor instead of content.editor in the add commnand.
9 years ago
Fabien Benureau
aa521576f5
More robust plugin list in conf
...
A single plugin name or an absence of it, with or without comma,
is now properly handled.
Related: #18
9 years ago
Fabien Benureau
f843aebcbd
Better handle utf-8 citekeys
...
Utf-8 citekeys generate errors in bibtexparser. Until this is fixed,
this commit replace the stack-trace by a clear error message.
related: #28
9 years ago
Fabien Benureau
402cf62db0
Merge pull request #42 from 73/master
...
`doc`, `info` command & prefix completion
+ Prefix completion, see #34
+ Add `doc` command, closes #41
+ Add `info` ui command, closes #43
9 years ago
73
23890bf579
missed two somehow
9 years ago
73
5cc3f892a0
All commands that consume a citekey as an argument will now complete a
...
prefix.
9 years ago
73
69b2879fa2
added ui.info() and made it default for citekey completion
9 years ago
73
a926c4c654
adds a *doc add|remove|export|open* command; depricates commands *open* and *attach*; fixed typos in readme.md and uis;
9 years ago
Fabien Benureau
76be98a900
Merge pull request #37 from pubs/feat/new_config
...
feat/new_config: better, more robust, more flexible configuration
9 years ago
Fabien Benureau
f52a7202bb
Better help for the list command
9 years ago
Fabien Benureau
7186576aef
Fix bug in args & less-aggressive update
...
Without args.prog, AliasCommand fail. Alias is better documented
in the readme and initial config files.
Update will now only trigger with version bumps. And the plugins
section is not updated. Removes the --upgrade flag.
9 years ago
Olivier Mangin
ba48941d93
Fixes alias plugins and adds it to packages.
9 years ago
Olivier Mangin
16aa0163f6
Removes automatic config update.
...
Makes it optional through command switch.
9 years ago
Olivier Mangin
af207e2604
Adds alias plugin test and fix its config access.
9 years ago