138 Commits

Author SHA1 Message Date
Fabien C. Y. Benureau
fe014bc0a5
fix note append of under python 2 with unicode 2019-08-02 16:02:53 +09:00
dvklopfenstein
11c74f1ffe Lowercase format vars. Add Chinese character test 2019-07-19 11:58:41 -04:00
dvklopfenstein
20b7da7245 Add newline to appended note text after evaluating note text 2019-07-18 23:12:10 -04:00
dvklopfenstein
f8508ac5e1 Thank you very much for considering my pull request.
I have added a test: tests/test_note_append.py
And have made the isuggested code changes.
Please let me know if anything else is needed.
https://github.com/pubs/pubs/pull/201
https://github.com/pubs/pubs/issues/200
2019-07-18 22:58:17 -04:00
dvklopfenstein
634a500438 Added '-a' (--append) arg to append a line of text to the notes file.
https://github.com/pubs/pubs/issues/200
2019-07-18 10:15:40 -04:00
emnllm
2e4af1d38f removes the month field from the chronological listing 2019-06-25 19:00:37 +00:00
emnllm
b3e9db62e1 improves chronological listing (year, month), adds test 2019-06-25 18:22:58 +00:00
emnllm
e1f56fb212 adds chronological listing using bibtex year field 2019-06-25 11:08:29 +00:00
Fabien C. Y. Benureau
232158db68
Merge branch 'master' into pr-191 2019-06-07 13:04:25 +09:00
ksunden
c1afd26d6f ENH: Don't fail on import, warn instead 2019-05-08 23:39:51 -05:00
Olivier Mangin
1f1bbea917
Merge branch 'master' into git-plugin 2019-03-19 22:16:36 -07:00
Amlesh Sivanantham (zamlz)
663e5ab1d0
Added events for tag updates 2019-03-11 13:25:15 -07:00
Amlesh Sivanantham (zamlz)
6b74683fb4
Added events for edit command
also added comments to events functions to list what uses them
2019-03-11 12:29:19 -07:00
Amlesh Sivanantham (zamlz)
4862860a7e
Added git functionality for notes 2019-03-11 11:58:10 -07:00
Fabien C. Y. Benureau
e58ae98b93
fix for 187 2019-01-18 13:51:39 +09:00
Fabien C. Y. Benureau
3fee6b9403
valid_citekey function in bibstruct 2019-01-05 20:57:03 +09:00
Fabien C. Y. Benureau
9bf88649a3
fix #172 2019-01-05 01:06:44 +09:00
Fabien C. Y. Benureau
b99c5b43fa
handle / in citekeys 2019-01-04 23:17:54 +09:00
Fabien C. Y. Benureau
a58f1b1d5e
hotfix for #164 2018-08-27 11:52:52 +09:00
Fabien C. Y. Benureau
efb91b1ff4
hotfix for #165 2018-08-27 11:47:25 +09:00
Olivier Mangin
42d75d1230
Merge branch 'master' into fix/doc_add 2018-08-20 13:25:40 +02:00
Olivier Mangin
668d30ffbf
Allows move for import on explicit option.
- uses `copy` as a default (hence no need for the option),
- does not use `doc_add` config for import.
2018-08-20 12:14:25 +02:00
Olivier Mangin
c4bf5eef87
Merge branch 'master' into jma/arxiv 2018-08-14 13:23:44 +02:00
Olivier Mangin
7dae35e722
Adds the statistics command. (Fixes #8) 2018-08-09 23:48:29 +02:00
Olivier Mangin
8eef7bd77b
Remove code duplication for command arguments. 2018-08-09 19:19:29 +02:00
Olivier Mangin
a8de97c327
Fixes #144: behavior of add_copy mode during add.
- correctly handles add_copy mode and configuration,
- add option top force 'copy' mode (since the default had been changed
in between from 'copy' to 'move' this is now needed),
- fixes assumption in one test that the default is 'copy' (in other
words the test was broken and ensuring that the functionality was broken
too.),
- do not try to delete the source when it is an URL.
2018-08-09 19:00:01 +02:00
Fabien C. Y. Benureau
be80e75cbb
better error message when parsing of bibtex fails
Plus, slight refactoring: remove `databroker.verify()` method
2018-08-06 17:45:30 +09:00
J. Antognini
d6ab091e5c Only allow one of doi, arxiv, or isbn to pubs_add
Also includes some minor refactoring.
2018-08-05 00:00:20 -07:00
Olivier Mangin
6e72b0e2f7
Merge branch 'master' into jma/arxiv 2018-08-02 12:01:10 +02:00
Olivier Mangin
13f21a3d28
Minor grammar in warning. 2018-08-01 14:43:32 +02:00
Olivier Mangin
5a47150aad
Adds option to ignore malformed bibtex files or entry during import. 2018-07-30 18:24:56 +02:00
Olivier Mangin
60650b874a
Addresses minor comments (error message and better test). 2018-07-30 17:46:04 +02:00
J. Antognini
ccdbe72eb7 Address omangin's code review.
* This fixes the logic in the `pubs add` command so that an arxiv ID doesn't
  overwrite a DOI.  This also changes the logic so that if an invalid DOI, ISBN,
  or arXiv ID is provided the program will raise an error.

* The code now uses the bibtexparser package to generate the bibtex file for
  arxiv papers.

* A dedicated exception is added for references that can't be found.
2018-07-28 22:37:14 -07:00
Olivier Mangin
8a7d143261
Improves behaviors related to bibtex decoding error.
- from editor input in add and edit commands,
- from files in import command.
2018-07-25 22:20:14 +02:00
Joe Antognini
35f209a98a Remove unnecessary function from earlier commit. 2018-07-23 23:33:05 -07:00
Joe Antognini
f3c83668f9 Allow bibtex to be added from arxiv id.
This allows the user to add a reference via an arXiv ID similarly to how a reference can be added
from a DOI or ISBN.  If the arXiv ID has a DOI associated with it (according to the arXiv server),
the DOI will be used.  If it does not (perhaps the paper is unpublished), then a bibtex entry will
automatically be generated from the reference's metadata.

Note that a potential issue with this addition is that if a paper is added before it is published
(i.e., there is no DOI associated with it), and the paper is later published, the updated
information will have to be manually added.
2018-07-23 18:23:36 -06:00
Fabien C. Y. Benureau
4b1717b7fd
dialog after editing paper 2018-06-10 19:09:49 +09:00
ksunden
e177b43d14 Remove unused imports, update strings 2018-05-20 20:17:45 -05:00
ksunden
54a056c277 Change error to warning 2018-05-14 18:38:43 -05:00
Kyle Sunden
7c82a8518b
remove extraneous print 2018-05-14 18:03:39 -05:00
ksunden
247554c248 Fix error handling 2018-05-08 23:20:32 -05:00
ksunden
bff1f5763d Add a command to open urls 2018-05-08 22:32:12 -05:00
Fabien C. Y. Benureau
913a5d77b5 unicode citekey in python2; removes 2018-04-10 14:55:55 +09:00
Fabien C. Y. Benureau
c7e9470300 implement requested changes for #133 2018-04-10 14:46:27 +09:00
Fabien C. Y. Benureau
dc4e118c3c make utf8 citekeys possible in python 2.7. closes #28
This involved many changes, some side effects of the change include:
- remove of all `u"abc"` forms, in favor of
  `from __future__ import unicode_literals`. Their usage was
  inconsistent anyway, leading to problems when mixing with
  unicode content.
- improve the tests, to allow printing for usecase even when
  crashing. Should make future test easier. This is done with a
  rather hacky `StdIO` class in `p3`, but it works.
- for some reason, the skipped test for Python 2 seems to work
  now. While the previous point might seem related, it is not clear
  that this is actually the case.
2018-04-10 14:45:54 +09:00
Olivier Mangin
12e8285674 Adds tag list completion in 2018-03-20 18:43:51 -04:00
Olivier Mangin
6e39cea473 Adds --strict option to list to force strict unicode comparison. 2018-02-20 18:06:33 -05:00
Olivier Mangin
a8716e6482 Adds completion for the --ignore-fields tag. 2018-01-07 13:54:38 -05:00
Olivier Mangin
860181e278 Adds argument to ignore fields in export. [Closes #67]
`pubs export --ignore-fields abstract,note CiteKey`
2018-01-07 13:40:06 -05:00
Bill Flynn
aea58dea29 [#95] refactored exception into standardize_doi 2018-01-05 21:31:19 -05:00