Notebook-specific plugins
Bug #656446 reported by
Brian V.
This bug affects 2 people
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Zim |
Fix Released
|
Wishlist
|
Mariano Draghi |
Bug Description
It would be nice if it were possible to create notebook-specific plugins. Such plugins could reside in a special attachment folder and automatically be loaded when the notebook is loaded. For security, a user could be asked before loading the plugins.
I use zim to store a bit of different data, and sometimes I'd like to take a page of content and export the information in a specific format. This means parsing some of the data and doing whatever else is needed (perhaps bookmarks exporting or contact list exporting, etc). Since the plugins would be specific to the notebook or pages, it seems only useful if a notebook could contain notebook-specific plugins coded in Python as well.
Related branches
lp:~chaghi/zim/zim-profiles
- Jaap Karssenberg: Pending requested
-
Diff: 777 lines (+425/-17)12 files modifiedtests/config.py (+31/-0)
tests/gui.py (+7/-0)
tests/notebook.py (+132/-2)
tests/pageview.py (+32/-1)
tests/plugins.py (+10/-0)
zim/__init__.py (+147/-8)
zim/config.py (+6/-0)
zim/gui/__init__.py (+11/-4)
zim/gui/pageview.py (+18/-1)
zim/notebook.py (+18/-0)
zim/plugins/__init__.py (+10/-1)
zim/plugins/automount.py (+3/-0)
Changed in zim: | |
status: | New → Confirmed |
importance: | Undecided → Wishlist |
tags: | added: missing preferences |
Changed in zim: | |
status: | Confirmed → In Progress |
assignee: | nobody → Mariano Draghi (chaghi) |
To post a comment you must log in.
Having plugins stored specific in a notebook is a bad idea security wise. Prompting the user is not going to improve that. (E.g. I use some outlook macros, but getting the popup every single time you start outlook is a major annoyance.)
I have been pondering the idea of having different configuration "profiles" this would allow you to set different preferences per notebook or per group of notebooks. Each of these profiles could of course have different plugins while all plugins are installed in the normal way.
-- Jaap