713 Commits

Author SHA1 Message Date
Olivier Mangin
81f2661593 Cosmit 2017-07-22 13:35:13 -04:00
Fabien Benureau
0dd51aff58 Merge pull request #79 from pubs/bug/websearch_fix
Fixes websearch in Python 3 (fix #69)
2017-07-17 19:05:58 +02:00
Fabien C. Y. Benureau
1f224a90c7 Fixes websearch in Python 3 (fix #69) 2017-07-17 15:42:06 +02:00
Olivier Mangin
d281a82025 Merge pull request #71 from pubs/feat/note_extension
[notes] Allow different file extension for note file (closes #70).
2017-07-12 12:22:09 -04:00
Olivier Mangin
4ffd62fe9f [notes] Allow different file extension for note file (see #70). 2017-07-12 10:41:51 -04:00
Olivier Mangin
cd63575034 Merge pull request #74 from pubs/feat/require_argcomplete
Adds argcomplete as an optional requirement.
2017-07-12 10:36:57 -04:00
Olivier Mangin
af503fd0eb Argcomplete as an optional requirement. 2017-07-12 10:26:05 -04:00
Fabien C. Y. Benureau
bc71557461 Add argcomplete to required package (easier installation) 2017-07-12 10:26:05 -04:00
Fabien Benureau
7e3cd61628 Merge pull request #73 from pubs/bug/unittests
Bug/unittests
2017-07-12 10:16:09 +02:00
Olivier Mangin
9b6496d740 Removed commented code with old imports. 2017-07-11 17:26:08 -04:00
Olivier Mangin
323fb8b674 Fixes indent and removes unused io import. 2017-07-11 17:13:39 -04:00
Fabien C. Y. Benureau
3b4cfe635d Fix tests for Python 2
Also, some cleanup in fake_env.py
2017-07-11 17:08:53 -04:00
Fabien C. Y. Benureau
66a91b3c0c Fix content._open for Python 2 2017-07-11 17:08:53 -04:00
Fabien C. Y. Benureau
ce4b66e9b4 Fix unittests for Python 3 2017-07-11 17:08:52 -04:00
Fabien Benureau
2465f821ba Merge pull request #61 from pubs/feat/autocomplete
Feat/autocomplete
2017-07-09 23:38:07 +02:00
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.
2017-07-09 21:09:19 +02:00
Fabien C. Y. Benureau
4ac5889123 Update installation section in readme 2017-07-09 20:58:56 +02:00
Olivier Mangin
e129398311 Pass the config to plugins on parser modification to allow completion. 2017-07-08 00:10:15 -04:00
Olivier Mangin
576d907a78 Adds instructions for zsh completion. 2017-07-08 00:10:15 -04:00
Olivier Mangin
92fb403871 Fix function in FakeModule. 2017-07-08 00:10:15 -04:00
Olivier Mangin
ce3ed1e52f Use ImportError for older python versions. 2017-07-08 00:10:15 -04:00
Olivier Mangin
e1a6ad2167 Adds basic tag completion. 2017-07-08 00:10:15 -04:00
Olivier Mangin
02c11aaaea Adds completion for citekeys. 2017-07-08 00:10:15 -04:00
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.
2017-07-08 00:10:15 -04:00
Olivier Mangin
f6e0412306 Missing import in update. 2017-07-08 00:10:15 -04:00
Olivier Mangin
af73d4ed64 Basic autocompletion with argcomplete.
Only support pubs command completion.
2017-07-08 00:10:15 -04:00
Olivier Mangin
559d486236 Fix path not expanded for edit_file command.
In particular the issue was preventing notes from being edited.
2017-07-08 00:09:21 -04:00
Olivier Mangin
ce7eccf8b1 Adds LICENSE file 2017-07-06 11:40:53 -04:00
Olivier Mangin
f1f5343017 [readme] Adds website in authors. 2017-07-05 16:13:50 -04:00
Olivier Mangin
2370d0b783 [readme] Adds a short install section to the README. 2017-07-05 16:13:50 -04:00
Olivier Mangin
d7e25d07eb Merge pull request #62 from d9w/pr1
Fixes default message for errors bug
2017-05-24 14:04:39 -04:00
Olivier Mangin
4ff87085ae Config spec update for empty editor value. 2017-05-24 13:58:04 -04:00
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.)
2017-05-24 13:51:02 -04:00
Olivier Mangin
a600855c31 Fix calls to edit_file with wrong editor in conf and note commands.
Also replaces fix from PR #63.
2017-05-24 13:45:24 -04:00
Dennis Wilson
fbff9cd94c default message for errors bugfix 2017-05-24 14:18:39 +02:00
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).
2017-05-11 15:49:35 -04:00
Olivier Mangin
d4c18ad1a4 Fixes #49. 2017-05-11 15:34:14 -04:00
Olivier Mangin
bbf3d3d0c8 Merge pull request #59 from tmearnest/master
fixed inverted conditional
2017-05-09 11:56:35 -04:00
Tyler Earnest
d465c35e89 fixed inverted conditional 2017-05-05 16:50:06 -05:00
Olivier Mangin
70e1169fe7 Simplifies test if binary mode. 2017-04-14 20:14:15 -04:00
Olivier Mangin
8ae339d870 Removes debug code and unused code. 2017-04-14 19:10:08 -04:00
Fabien C. Y. Benureau
0f84268ebf Honor custom pubsdoc in config 2016-06-06 00:25:27 +02:00
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.
2016-06-05 21:48:19 +02:00
Fabien Benureau
dcfe429e42 Merge pull request #54 from pubs/feat/cache
Add a cache to speed up commands.
2016-06-01 15:33:19 +02:00
Olivier Mangin
2859e4bc62 More refactoring to remove code duplication. Also adds tests. 2016-02-02 21:21:24 -05:00
Olivier Mangin
57a32e5601 Removes some code duplication. 2016-02-02 19:06:34 -05:00
Fabien Benureau
d9f24052fc Update bs4 code; removes warning 2016-01-31 06:57:04 +01:00
Fabien Benureau
22c7acde99 Rewrite cache in case of any problem 2016-01-23 02:31:20 +01:00
Fabien Benureau
ee3a7cd77d Travis uses tests/requirements.txt 2016-01-23 02:11:08 +01:00
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
2016-01-23 02:03:02 +01:00