Olivier Mangin
18ed2a7629
Simplifies paper retrieval from repo.
...
- Removes old paper_from_ref from repo.
- Changes papers_from_citekey to get_paper.
- Switches texnote plugin to new ref argument helpers.
12 years ago
Olivier Mangin
105ae292b9
Support for many references and refactor.
...
- Moves shared command code to helpers module.
- Implements reference(s) argument for commands:
+ a helper to add single or multi-reference argument to parser,
+ two functions to transform this argument into a list of citekeys.
12 years ago
Fabien Benureau
db14fb94f3
Merge branch 'feature/fastercolor' into develop. Read on for details.
...
The interface of color has changed.
color.colored(s, 'red') becomes color.dye(s, color.red)
The code behind it is simpler and shorter.
The decision to use color or not is made when the UI class is instanciated,
and the configuration is read. There is no need to handle it on a per-file
basis. The default before repository instanciation is with color, but that
might (should) change.
12 years ago
Fabien Benureau
c8501aa211
updating the code to new color module
12 years ago
Olivier Mangin
e404c9e5b3
Adds tags command to list tags.
12 years ago
jgrizou
d27e5457ef
Adds plugin capability and call MAIN_SECTION to get configs.
12 years ago
Olivier Mangin
04eeedf8a4
Switch to config based papers directory.
...
TODO add papers dir to config on papers init command.
12 years ago
Olivier Mangin
f8e370f288
Uniformizes add and import commands. Still to be further tested.
12 years ago
Olivier Mangin
bea8c99187
FIX OSError on existing document file. Use ui to display error at init.
12 years ago
Olivier Mangin
0d413697e7
FIX minor bug in document path.
12 years ago
Olivier Mangin
5d312e020d
Improves edition, FIX bugs.
...
- handle citekey modifications in edition,
- fixes bug in update and remove functions.
12 years ago
Olivier Mangin
83845d2360
Adds update funciton for paper and required API and test updates.
...
- Adds update function that handle changes in citekey.
- Adds copy functions to paper classes.
- Adds tests.
- FIX a few bugs.
12 years ago
Olivier Mangin
2d700073a8
Improves document handling.
...
- configuration is now referenced in repo object,
- introduces new class PaperInRepo,
- simplifies storage of documents in metadata,
- changes a few names.
12 years ago
Olivier Mangin
748717ff97
Adds edit command.
12 years ago
Olivier Mangin
f734e2f172
Simplified color usage.
12 years ago
Olivier Mangin
3af7590827
Adds basic import command with document file copy.
...
Still lot to be improve on ui and features.
12 years ago
Olivier Mangin
47e3ce88e8
Moves add_papers fonctionality.
...
Now:
- paper.py provides extraction of many Papers from bib,
- command performs the loop to add each paper to repo.
12 years ago
Olivier Mangin
b46f8c543d
Improves repo dir specification to avoid issues.
12 years ago
Olivier Mangin
0d53619e1f
Updates commands. Many bug fix.
12 years ago
Olivier Mangin
1fad286517
Improves repo.py, adds tests. Still things to clean and decide...
12 years ago
Olivier Mangin
b08133bd1d
Improves citekey suffix generation.
12 years ago
Olivier Mangin
2d758ea16e
Cleanup Paper class and adds test.
12 years ago
Olivier Mangin
f2e9625aac
Work in progress: improves UTF-8 support, cleans paper creation.
12 years ago
Olivier Mangin
655fb25bfa
Adds command to add multiple reference at once.
...
Also fixes a few bugs.
12 years ago
Olivier Mangin
a1e69cdf61
Switched to full year in citekey generation.
12 years ago
Olivier Mangin
443329d7cf
Fix bug in citekey generation.
12 years ago
Fabien Benureau
09b737b210
removed configparser in favor of yaml
13 years ago
Fabien Benureau
cdd2796638
finished implementing the classes
...
a lowercase bug remain that force to move to another format than configparser. Which is just as well.
13 years ago
Fabien Benureau
b413be687d
imcomplete implementation of Repository, Paper classes
13 years ago