366 Commits

Author SHA1 Message Date
Fabien Benureau
6491099099 update pit with python3 support 2013-06-27 23:07:56 +02:00
Fabien Benureau
7c80257e7e updated test.sh script 2013-06-27 23:07:56 +02:00
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'.
2013-06-27 20:07:05 +02:00
Olivier Mangin
05ab7ec32a Cleanup events.
- moves tests to separate test_events file
- cleanup base Event class
2013-06-27 19:41:45 +02:00
Olivier Mangin
19ca6c8ac2 Merge branch 'develop' into texnote 2013-06-27 19:21:53 +02:00
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
2013-06-27 19:21:28 +02:00
Olivier Mangin
6d303b2c4c Simplifies event mechanism.
- moves RemoveEvent to events
- makes listen a classmethod of the event
2013-06-27 18:35:57 +02:00
Olivier Mangin
4fe3b45836 Merge branch 'develop' into texnote 2013-06-27 18:06:51 +02:00
Fabien Benureau
467e9f4713 add_cmd automatically recognize the format when using the editor 2013-06-27 16:02:12 +02:00
Fabien Benureau
2981d6d9cc websearch accepts multiple keyword 2013-06-27 15:17:03 +02:00
Fabien Benureau
0fe6b50dc2 clarified user prompt in add_cmd 2013-06-27 14:28:18 +02:00
Fabien Benureau
eb10c0dff1 FIX s/label/tags/ in add_cmd 2013-06-27 12:00:09 +02:00
Fabien Benureau
52a95af184 renamed tags command into tag 2013-06-27 11:55:36 +02:00
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
2013-06-27 11:45:34 +02:00
Fabien Benureau
637eab1059 removed dead code in list 2013-06-27 11:38:08 +02:00
Fabien Benureau
4d3ce2e2d8 factorized list command print code into helpers 2013-06-27 11:08:19 +02:00
Fabien Benureau
8290eeaa9b FIX bug in bold colors 2013-06-27 11:00:28 +02:00
jgrizou
415b1b37c5 args in event mechanism 2013-06-26 20:00:44 +02:00
Jonathan Grizou
ed44a2c262 Event mechanism working perfectly and very simple and clean 2013-06-26 12:19:24 +02:00
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']
2013-06-25 23:42:06 +02:00
Fabien Benureau
4e6b062a64 update command for updating repository format 2013-06-25 23:09:26 +02:00
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. 2013-06-25 19:45:00 +02:00
Fabien Benureau
4f132737e4 made init command more robust 2013-06-25 16:55:48 +02:00
Fabien Benureau
8b0baede88 FIX bug in color handling 2013-06-25 13:07:18 +02:00
Jonathan Grizou
a880f5b677 bulshit 2013-06-24 22:39:37 +02:00
Olivier Mangin
70eec18c1d FIX missing import in files. 2013-06-24 19:58:11 +02:00
Olivier Mangin
2209ee6dc1 Merge branch 'feat/attach_cmd' into develop 2013-06-22 11:02:17 +02:00
Olivier Mangin
03145ed77e FIX bug in list. 2013-06-22 11:00:47 +02:00
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).
2013-06-21 20:00:01 +02:00
Olivier Mangin
2fdf95c785 Adds ability to only list citekeys of matching papers (list cmd). 2013-06-19 17:02:55 +02:00
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.
2013-06-19 16:43:18 +02:00
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.
2013-06-19 16:35:41 +02:00
Olivier Mangin
281d945f08 FIX color bugs. 2013-06-18 20:22:02 +02:00
Olivier Mangin
af5020c6a4 FIX bugs introduced by change in color handling. 2013-06-13 16:58:56 +02:00
Fabien Benureau
a928af2944 Merge branch 'develop' of gmimosa:/gitroot/mimosa/papers into develop
Conflicts:
	papers/commands/open_cmd.py
2013-06-13 16:44:25 +02:00
Fabien Benureau
7ff15be075 added john in the author list of setup.py 2013-06-13 16:41:38 +02:00
Olivier Mangin
3d4ad3cdae Adds README. 2013-06-13 16:36:14 +02:00
Olivier Mangin
1b5e21ab5c Adds option to open document with another programm. 2013-06-13 14:50:54 +02:00
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.
2013-06-13 12:40:37 +02:00
Fabien Benureau
c8501aa211 updating the code to new color module 2013-06-13 12:30:45 +02:00
Fabien Benureau
facaa2ae6a deactivation mecanism for colors; 'colored' is now 'dye' 2013-06-13 12:30:14 +02:00
Fabien Benureau
840deaccc1 test to measure color performance 2013-06-13 12:28:59 +02:00
Fabien Benureau
f1bf98cd52 simpler, faster color code 2013-06-13 10:50:07 +02:00
jgrizou
fed60b7069 Author search by last name: ugly. 2013-06-12 19:20:45 +02:00
Olivier Mangin
db7a81598e Fix wrong command name (devlist -> list) 2013-06-12 12:42:34 +02:00
Olivier Mangin
8d9f4310e0 Adds forgotten tags_cmd and fixes init_cmd. 2013-06-11 12:34:45 +02:00
Olivier Mangin
b514ab0dde Better use of ui in commands. 2013-06-11 12:30:42 +02:00
Olivier Mangin
e404c9e5b3 Adds tags command to list tags. 2013-06-11 12:23:46 +02:00
Olivier Mangin
16c43f84e3 Adds 'bibtex' to valid format names (was used as default for export). 2013-06-11 12:13:11 +02:00
Olivier Mangin
2e52c33851 Merges devlist into list. 2013-06-11 11:38:56 +02:00