jgrizou
073d03e2fb
Enable open command with option, e.g. "evince -f"
2013-07-04 10:55:49 +02:00
Jonathan Grizou
31cf4de9d3
Change call for command from "cmds[cmd].command(**vars(args))" to "cmds[cmd].command(args)".
...
Applied the corresponding changes to command files.
AMakes it possible to declare and use additional parser inside subparsers.
May be useful for tag command. Will be implemented in texnote plugin.
2013-07-03 23:01:47 +02:00
Jonathan Grizou
c1b4a797d5
Fixed open_cmd.
2013-07-03 21:15:57 +02:00
Fabien Benureau
e4f7017fdb
commands updated to new config, new repo
2013-07-02 14:04:05 +01: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
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
Olivier Mangin
1b5e21ab5c
Adds option to open document with another programm.
2013-06-13 14:50:54 +02:00
Fabien Benureau
c8501aa211
updating the code to new color module
2013-06-13 12:30:45 +02:00
Olivier Mangin
b514ab0dde
Better use of ui in commands.
2013-06-11 12:30:42 +02:00
Jonathan Grizou
ff4b40e770
Fixed error in import, wrong relative path
2013-06-08 14:32:37 +02:00
jgrizou
d27e5457ef
Adds plugin capability and call MAIN_SECTION to get configs.
2013-06-07 20:51:12 +02:00
Olivier Mangin
04eeedf8a4
Switch to config based papers directory.
...
TODO add papers dir to config on papers init command.
2013-06-05 19:52:11 +02:00
Olivier Mangin
0d413697e7
FIX minor bug in document path.
2013-03-14 15:07:50 +01:00
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.
2013-02-21 16:48:32 +01:00
Olivier Mangin
42569f7f23
Adds basic UI functionalities.
2013-02-13 11:42:43 +01:00
Olivier Mangin
748717ff97
Adds edit command.
2013-01-04 15:27:29 +01:00
Olivier Mangin
f734e2f172
Simplified color usage.
2012-12-26 22:21:25 +01:00
Olivier Mangin
3af7590827
Adds basic import command with document file copy.
...
Still lot to be improve on ui and features.
2012-12-20 17:56:34 +01:00
Olivier Mangin
da7fa55d19
Adds config file.
2012-12-19 17:45:18 +01:00
Olivier Mangin
0d53619e1f
Updates commands. Many bug fix.
2012-12-18 16:48:40 +01:00
Olivier Mangin
2d57a2080c
Adds handling of the case where no document file is defined.
2012-10-22 05:00:04 +02:00
Fabien Benureau
09b737b210
removed configparser in favor of yaml
2012-10-11 19:57:56 +02:00
Fabien Benureau
b413be687d
imcomplete implementation of Repository, Paper classes
2012-10-10 16:33:17 +02:00
Fabien Benureau
15782375a5
citekey generation and support
2012-10-07 22:13:41 +02:00
Fabien Benureau
3c11994b6f
added test. fixed few syntaxic bugs.
2012-10-07 20:19:53 +02:00
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
2012-10-07 19:27:20 +02:00