Fabien Benureau
13bd18cda9
working fs replacement enabling use case testing.
...
papers content was mostly moved to papers_cmd.py
You can now use papers_cmd.execute('papers tag Page99'.split()) from the code
12 years ago
Fabien Benureau
bfa6eb58b7
FIX bug in tag_cmd
12 years ago
Fabien Benureau
585e09e498
tags set are algebrical: math+romance-war
12 years ago
Fabien Benureau
919c7c1c5a
method parse for algebric tags
12 years ago
Jonathan Grizou
112d6269d7
Verification problème decoration event dans classe
12 years ago
Jonathan Grizou
9134ac62da
Error when renaming plugins.py in plugin.py, in texnote the import name was not changed.
12 years ago
Olivier Mangin
014234b159
FIX issue with plugins being called plugins.
...
For some reason the installer creates a plugin package inside papers.
Therefore the 'import plugins' refers to the __init__.py module in that
directory. Fixed by renaming 'plugins.py' into 'plugin.py'.
12 years ago
Olivier Mangin
05ab7ec32a
Cleanup events.
...
- moves tests to separate test_events file
- cleanup base Event class
12 years ago
Olivier Mangin
19ca6c8ac2
Merge branch 'develop' into texnote
12 years ago
Olivier Mangin
e017ffef20
Fix bugs with saving tags in yaml.
...
- now saves tag set as list (maybe the save_meta function should be
moved to paper.py)
- updates test to actually test storing of metadata
12 years ago
Olivier Mangin
6d303b2c4c
Simplifies event mechanism.
...
- moves RemoveEvent to events
- makes listen a classmethod of the event
12 years ago
Olivier Mangin
4fe3b45836
Merge branch 'develop' into texnote
12 years ago
Fabien Benureau
467e9f4713
add_cmd automatically recognize the format when using the editor
12 years ago
Fabien Benureau
2981d6d9cc
websearch accepts multiple keyword
12 years ago
Fabien Benureau
0fe6b50dc2
clarified user prompt in add_cmd
12 years ago
Fabien Benureau
eb10c0dff1
FIX s/label/tags/ in add_cmd
12 years ago
Fabien Benureau
52a95af184
renamed tags command into tag
12 years ago
Fabien Benureau
a1895103fc
new and improved tag(s) command !
...
(will be renamed 'tag' in next commit)
'git tag ref' returns the tags of the ref
'git tag tag1' return the refs which have tag1 as tag
'git tag ref tag1,tag2' add tag1 and tag2 to ref
'git tag ref :tag1,tag2' remove tag1 and add tag2 to ref
12 years ago
Fabien Benureau
637eab1059
removed dead code in list
12 years ago
Fabien Benureau
4d3ce2e2d8
factorized list command print code into helpers
12 years ago
Fabien Benureau
8290eeaa9b
FIX bug in bold colors
12 years ago
jgrizou
415b1b37c5
args in event mechanism
12 years ago
Jonathan Grizou
ed44a2c262
Event mechanism working perfectly and very simple and clean
12 years ago
Fabien Benureau
d30d5f32c4
"label" renamed as "tag" in the metadata file (and everywhere else).
...
Use the update command to update your metadata files.
Tags is now a property of the Paper class, so one can use :
print(p.tags)
p.tags = ['math', 'romance']
12 years ago
Fabien Benureau
4e6b062a64
update command for updating repository format
12 years ago
jgrizou
ff195c0859
Plugins class created and handle for the parse. Next step is to code the event messages. Next one is to code the setup extension.
12 years ago
Fabien Benureau
4f132737e4
made init command more robust
12 years ago
Fabien Benureau
8b0baede88
FIX bug in color handling
12 years ago
Jonathan Grizou
a880f5b677
bulshit
12 years ago
Olivier Mangin
70eec18c1d
FIX missing import in files.
12 years ago
Olivier Mangin
03145ed77e
FIX bug in list.
12 years ago
Olivier Mangin
06ea3627f4
Adds new attach command.
...
Adds command to associate a document (pdf, ...) to an existing paper
(same copy option than add and import commands).
12 years ago
Olivier Mangin
2fdf95c785
Adds ability to only list citekeys of matching papers (list cmd).
12 years ago
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
Olivier Mangin
281d945f08
FIX color bugs.
12 years ago
Olivier Mangin
af5020c6a4
FIX bugs introduced by change in color handling.
12 years ago
Fabien Benureau
a928af2944
Merge branch 'develop' of gmimosa:/gitroot/mimosa/papers into develop
...
Conflicts:
papers/commands/open_cmd.py
12 years ago
Fabien Benureau
7ff15be075
added john in the author list of setup.py
12 years ago
Olivier Mangin
1b5e21ab5c
Adds option to open document with another programm.
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
Fabien Benureau
facaa2ae6a
deactivation mecanism for colors; 'colored' is now 'dye'
12 years ago
Fabien Benureau
f1bf98cd52
simpler, faster color code
12 years ago
jgrizou
fed60b7069
Author search by last name: ugly.
12 years ago
Olivier Mangin
db7a81598e
Fix wrong command name (devlist -> list)
12 years ago
Olivier Mangin
8d9f4310e0
Adds forgotten tags_cmd and fixes init_cmd.
12 years ago
Olivier Mangin
b514ab0dde
Better use of ui in commands.
12 years ago
Olivier Mangin
e404c9e5b3
Adds tags command to list tags.
12 years ago
Olivier Mangin
16c43f84e3
Adds 'bibtex' to valid format names (was used as default for export).
12 years ago
Olivier Mangin
2e52c33851
Merges devlist into list.
12 years ago
Olivier Mangin
245ab0ea4d
Integrates devadd as add.
12 years ago
Jonathan Grizou
74118924b8
Improved devlist_cmd. Now supporting undefinite number of args
12 years ago
Jonathan Grizou
e1ab6510b5
Option to add label on add. Clean label plot for list option
12 years ago
Jonathan Grizou
a162f26723
A first trial to add queries in list_cmd -> see devlist_cmd.
12 years ago
Jonathan Grizou
7b034b6d53
A proposal to change add_cmd -> see devadd_cmd. Bibfile becomes an option. If not define, open editor to fill one.
12 years ago
Jonathan Grizou
bacb97176e
Plugin texnote very basic, quick coding, shoudl not interact with papers core
12 years ago
Jonathan Grizou
511b8e5680
Some comments in files, no modif in api
12 years ago
Jonathan Grizou
ff4b40e770
Fixed error in import, wrong relative path
12 years ago
jgrizou
d27e5457ef
Adds plugin capability and call MAIN_SECTION to get configs.
12 years ago
Olivier Mangin
66fc618149
Adds TODO, FIX minor issue in list, change explicit call to class name
...
to cla.
12 years ago
Olivier Mangin
f0750b0388
Adds tags display to list.
12 years ago
jgrizou
1e30a6899e
when init -> update config file with papers-directory
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
099e764c04
Removes paging from list command.
12 years ago
Olivier Mangin
f8e370f288
Uniformizes add and import commands. Still to be further tested.
12 years ago
Olivier Mangin
a45051815d
Adds remove command.
12 years ago
Olivier Mangin
411647a1b3
FIX bug in edit command when citekey is edited.
12 years ago
Olivier Mangin
7c3ce78f70
Basic tag handling.
12 years ago
Olivier Mangin
bea8c99187
FIX OSError on existing document file. Use ui to display error at init.
12 years ago
Olivier Mangin
3e6a1403b9
Adds basic export capabilities.
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
0798280f9a
Partial FIX of pretty person representer.
...
- removes unnecessary information
- removes bibtex purification that does not behave as expected
- in current state a bug in pybtex still make the display incorrect
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
49821eab51
Improves parser selection.
12 years ago
Olivier Mangin
42569f7f23
Adds basic UI functionalities.
12 years ago
Olivier Mangin
81b51cb7a4
Improves output by using pybtex purify function.
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
da7fa55d19
Adds config file.
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
2d57a2080c
Adds handling of the case where no document file is defined.
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
Fabien Benureau
fc65d2e76e
semantic names for colors
13 years ago
Fabien Benureau
f4be1b4ab7
removed obsolete install_cmd
13 years ago
Fabien Benureau
15782375a5
citekey generation and support
13 years ago
Fabien Benureau
3c11994b6f
added test. fixed few syntaxic bugs.
13 years ago
Fabien Benureau
acab1b8044
major restructuring of code. many oliver remarks implemented. no new features.
...
divided code into multiple files
paperpile style argparse
setup.py with script option
13 years ago
Fabien Benureau
60d17982e4
added pit script. added EDITOR global var
13 years ago
Fabien Benureau
561a266c24
open command
13 years ago
Fabien Benureau
12ad2a16e7
added numbering of papers
13 years ago
Fabien Benureau
3f8086e8a9
list command
13 years ago
Fabien Benureau
542fc26958
add command
13 years ago
Fabien Benureau
c2876a768f
init, install and websearch command
13 years ago
Fabien Benureau
a10f3274f1
find, init, install cmds
13 years ago
Fabien Benureau
2ca5308102
added goal issue
13 years ago