Olivier Mangin
38fc68adbc
Refactors filebroker to remove file duplication.
8 years ago
Olivier Mangin
983d1892e0
Removes unused imports.
8 years ago
Olivier Mangin
7b19a9dcdd
Forces utf8 when no encoding in header for DOI request.
...
The default behavior from the requests library is to use the guess from
chardet which is not always reliable while doi.org seems to always
return utf8 encoded data. It's unlikely that this changes without also
updating the header.
8 years ago
Olivier Mangin
cf596206b0
FIX: Encode unicode before writing to file in python2.
...
This is necessary because _open returns a file descriptor in binary mode
for python2.
8 years ago
Olivier Mangin
81f2661593
Cosmit
8 years ago
Fabien Benureau
0dd51aff58
Merge pull request #79 from pubs/bug/websearch_fix
...
Fixes websearch in Python 3 (fix #69 )
8 years ago
Fabien C. Y. Benureau
1f224a90c7
Fixes websearch in Python 3 ( fix #69 )
8 years ago
Olivier Mangin
d281a82025
Merge pull request #71 from pubs/feat/note_extension
...
[notes] Allow different file extension for note file (closes #70 ).
8 years ago
Olivier Mangin
4ffd62fe9f
[notes] Allow different file extension for note file (see #70 ).
8 years ago
Olivier Mangin
cd63575034
Merge pull request #74 from pubs/feat/require_argcomplete
...
Adds argcomplete as an optional requirement.
8 years ago
Olivier Mangin
af503fd0eb
Argcomplete as an optional requirement.
8 years ago
Fabien C. Y. Benureau
bc71557461
Add argcomplete to required package (easier installation)
8 years ago
Fabien Benureau
7e3cd61628
Merge pull request #73 from pubs/bug/unittests
...
Bug/unittests
8 years ago
Olivier Mangin
9b6496d740
Removed commented code with old imports.
8 years ago
Olivier Mangin
323fb8b674
Fixes indent and removes unused io import.
8 years ago
Fabien C. Y. Benureau
3b4cfe635d
Fix tests for Python 2
...
Also, some cleanup in fake_env.py
8 years ago
Fabien C. Y. Benureau
66a91b3c0c
Fix content._open for Python 2
8 years ago
Fabien C. Y. Benureau
ce4b66e9b4
Fix unittests for Python 3
8 years ago
Fabien Benureau
2465f821ba
Merge pull request #61 from pubs/feat/autocomplete
...
Feat/autocomplete
8 years ago
Fabien C. Y. Benureau
a99e97c716
Streamline autocompletion explanations in readme
...
Important details about Bash were not mentioned in our explanation. Furthermore,
these instructions may get obsolete at any moment. Better to delegate to the
argcomplete project.
8 years ago
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