Fabien C. Y. Benureau
4ac5889123
Update installation section in readme
8 years ago
Olivier Mangin
e129398311
Pass the config to plugins on parser modification to allow completion.
8 years ago
Olivier Mangin
576d907a78
Adds instructions for zsh completion.
8 years ago
Olivier Mangin
92fb403871
Fix function in FakeModule.
8 years ago
Olivier Mangin
ce3ed1e52f
Use ImportError for older python versions.
8 years ago
Olivier Mangin
e1a6ad2167
Adds basic tag completion.
8 years ago
Olivier Mangin
02c11aaaea
Adds completion for citekeys.
8 years ago
Olivier Mangin
a5466c940e
Prepare configuration loading for autocomplete.
...
In particular, tries to load configuration when no argument is given.
Also removes unused check option from load_conf.
8 years ago
Olivier Mangin
f6e0412306
Missing import in update.
8 years ago
Olivier Mangin
af73d4ed64
Basic autocompletion with argcomplete.
...
Only support pubs command completion.
8 years ago
Olivier Mangin
559d486236
Fix path not expanded for edit_file command.
...
In particular the issue was preventing notes from being edited.
8 years ago
Olivier Mangin
ce7eccf8b1
Adds LICENSE file
8 years ago
Olivier Mangin
f1f5343017
[readme] Adds website in authors.
8 years ago
Olivier Mangin
2370d0b783
[readme] Adds a short install section to the README.
8 years ago
Olivier Mangin
d7e25d07eb
Merge pull request #62 from d9w/pr1
...
Fixes default message for errors bug
8 years ago
Olivier Mangin
4ff87085ae
Config spec update for empty editor value.
8 years ago
Olivier Mangin
6c2f0f6f8d
Moves editor commands to ui to avoid using with wrong editor values.
...
For now, the editor_input and edit_file functions do not make sense
outside of the context of an ui. Having them in the content module
was confusing. (See issue fixed by a600855.)
8 years ago
Olivier Mangin
a600855c31
Fix calls to edit_file with wrong editor in conf and note commands.
...
Also replaces fix from PR #63 .
8 years ago
Dennis Wilson
fbff9cd94c
default message for errors bugfix
8 years ago
Olivier Mangin
a02f67f133
Minor improvement of error handling.
...
Also removes ignore of broken pipe from 5ca090668
since this is not
handling it the right way (see #60 ).
8 years ago
Olivier Mangin
d4c18ad1a4
Fixes #49 .
8 years ago
Olivier Mangin
bbf3d3d0c8
Merge pull request #59 from tmearnest/master
...
fixed inverted conditional
8 years ago
Tyler Earnest
d465c35e89
fixed inverted conditional
8 years ago
Olivier Mangin
70e1169fe7
Simplifies test if binary mode.
8 years ago
Olivier Mangin
8ae339d870
Removes debug code and unused code.
8 years ago
Fabien C. Y. Benureau
0f84268ebf
Honor custom pubsdoc in config
9 years ago
Fabien C. Y. Benureau
2aad93b526
Simplify, update the testsuite
...
Replace the in-house stubbing by the facilities offered
by pyfakefs for running tests. We don't use `io.open`
anymore, because pyfakefs does not stub it correctly.
We rely on a patched version of pyfakefs, as a few bug
remain in the official repo.
9 years ago
Fabien Benureau
dcfe429e42
Merge pull request #54 from pubs/feat/cache
...
Add a cache to speed up commands.
9 years ago
Olivier Mangin
2859e4bc62
More refactoring to remove code duplication. Also adds tests.
9 years ago
Olivier Mangin
57a32e5601
Removes some code duplication.
9 years ago
Fabien Benureau
d9f24052fc
Update bs4 code; removes warning
9 years ago
Fabien Benureau
22c7acde99
Rewrite cache in case of any problem
9 years ago
Fabien Benureau
ee3a7cd77d
Travis uses tests/requirements.txt
9 years ago
Fabien Benureau
e5b898c5c2
Cache implemented
...
The implementation is designed to be robust to filesystems having integers
or nanosecond stat time.
Added a requirements.txt file for the tests:
`pip install -r tests/requirements.txt` to install the necessary packages
to run the tests.
Fix #13 , Fix #14
9 years ago
Fabien Benureau
9ad6d8db25
Simplified fake_env code
...
1. Removed the unicode wrapper around fake_env io
2. Overrided pyfakefs cStringIO with StringIO (Python 2.x)
3. copy_dir will copy file in binary file to the fake filesystem
*unless* they are bib, yaml, txt or md files
4. ui.handle_exception() conserve traceback
Numerous unicode subtelties required diving into pyfakefs and configobj
source code. Unicode on Python 2.x is the worst.
9 years ago
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