147 Commits

Author SHA1 Message Date
Fabien Benureau
cc3928ef4b fake editor_input 2013-07-04 18:05:53 +01:00
jgrizou
1f91712b31 Changed init of texnote to pass tests. 2013-07-04 12:23:10 +02:00
jgrizou
ebff1bb4e4 Updated texnote, not working yet
Add a check_directory in files.py
2013-07-04 12:10:23 +02:00
jgrizou
073d03e2fb Enable open command with option, e.g. "evince -f" 2013-07-04 10:55:49 +02:00
jgrizou
49bdd93019 Enable edit command with option, e.g. "gvim -f" 2013-07-04 10:50:35 +02:00
Jonathan Grizou
e9b0373456 Some test on texnote 2013-07-04 00:09:17 +02:00
Jonathan Grizou
f29f1a96b5 Check if plugin as a parser command before adding it into the OrderedList.
Indeed some plugins may not need to define one.
2013-07-04 00:08:00 +02:00
Jonathan Grizou
fa836aaad9 events.py more clean 2013-07-04 00:05:59 +02:00
Jonathan Grizou
4a91c4953c Change back plugin.py to plugins.py + adapt PapersPlugin class protoype to command with args 2013-07-03 23:12:32 +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
d02155af4e Fixed other command, only tested for export_cmd 2013-07-03 21:22:23 +02:00
Jonathan Grizou
c1b4a797d5 Fixed open_cmd. 2013-07-03 21:15:57 +02:00
Jonathan Grizou
dce81717cc edit_cmd fixed. 2013-07-03 21:12:48 +02:00
Fabien Benureau
e9cb26f2e0 core file updated for python 3 2013-07-02 18:01:41 +01:00
Fabien Benureau
fc47328cbf FIX in config spotted by Jonathan 2013-07-02 16:45:34 +01:00
Fabien Benureau
dc73c987c8 update command for config v2 to v3 2013-07-02 16:42:37 +01:00
Fabien Benureau
4e9ce17c71 adapted update to version 3 2013-07-02 15:58:35 +01:00
Fabien Benureau
3c0f575b92 backtracked on changes. repo is passing all tests 2013-07-02 15:58:12 +01:00
Fabien Benureau
9614593192 version system 2013-07-02 15:57:28 +01:00
Fabien Benureau
f528aa8a67 updated core. almost all tests are passing 2013-07-02 14:05:32 +01:00
Fabien Benureau
e4f7017fdb commands updated to new config, new repo 2013-07-02 14:04:05 +01:00
Fabien Benureau
164816a910 updated tests 2013-07-02 14:03:32 +01:00
Fabien Benureau
c7a8ada751 enabled load keyword in repo __init__ 2013-07-02 13:29:17 +01:00
Fabien Benureau
7b66a4697d all repo test pass. doc are temporarily disabled. 2013-07-02 12:07:26 +01:00
Fabien Benureau
c3b71e9095 better files.clean_path arguments 2013-07-02 11:22:55 +01:00
Fabien Benureau
ac4b682307 added doc_dir and keywords init to config 2013-07-02 11:19:13 +01:00
Fabien Benureau
a354e79523 first test of new repo passing 2013-07-02 10:59:55 +01:00
Fabien Benureau
320a488667 added get operator to config 2013-07-01 14:56:16 +01:00
Fabien Benureau
45da61f4d2 added config support for multiple sections 2013-07-01 14:22:25 +01:00
Fabien Benureau
f934e8c2ec more tests for config, slightly changed implementation and interface. 2013-07-01 13:44:43 +01:00
Fabien Benureau
e92c418d80 new, simplified, easier to use config implementation
tests are provided, but the rest of the code has not be updated yet.
2013-07-01 13:14:56 +01:00
Fabien Benureau
500667baae more usecase test, hack-fixed plugins. 2013-06-30 18:40:34 +01:00
Fabien Benureau
6d8b0aba21 added force option to remove command 2013-06-30 18:14:56 +01:00
Fabien Benureau
193d815ca6 Merge branch 'texnote' into feat/fs 2013-06-30 18:10:06 +01:00
Fabien Benureau
37cd8209d7 compatibility module for python2/3 code 2013-06-29 22:42:04 +01:00
Fabien Benureau
20116cf69d color.undye method for purging color from strings 2013-06-29 22:41:33 +01:00
Fabien Benureau
b4504278f2 more robust fake_fs testing; added papers add test 2013-06-29 09:30:56 +01:00
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
2013-06-28 19:30:07 +02:00
Fabien Benureau
bfa6eb58b7 FIX bug in tag_cmd 2013-06-28 16:08:49 +02:00
Fabien Benureau
585e09e498 tags set are algebrical: math+romance-war 2013-06-28 15:22:55 +02:00
Fabien Benureau
919c7c1c5a method parse for algebric tags 2013-06-28 14:58:27 +02:00
Jonathan Grizou
112d6269d7 Verification problème decoration event dans classe 2013-06-28 10:43:32 +02:00
Jonathan Grizou
9134ac62da Error when renaming plugins.py in plugin.py, in texnote the import name was not changed. 2013-06-28 00:29:55 +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