Re: [Zim-wiki] Search by time
Hi Agustin, this is a task for Version Control System (VCS) like GIT, available as a plugin, which allows you to perform the following queries: git diff --name-status "@{3 days ago}" "@{2 days ago}" more details on: http://stackoverflow.com/questions/8016645/git-list-all-files-added-modified-on-a-day-or-week-month Hope it will be useful information, I have made some experiments with very smooth granularity of versions, similarly to http://etherpad.org, but needs to be tweaked :) The GIT should be still sufficient, since you can set an interval, which triggers a new revision of changes in the notebook. All the best, NorfCran On 8 February 2017 at 19:44, Karthik Tayur <karthiksta...@gmail.com> wrote: > You could alter the default template to reflect the time of modification? > In the same way the default template reflects the date of its creation, it > should be possible to add a line to mention the last modified time. I don't > know however how easy/difficult it is. > > Regards > > On 8 February 2017 at 22:55, Agustin Lobo <aloboa...@gmail.com> wrote: > >> Can I search my notes by time? For example, listing those notes >> modified in the last 3 months >> Thanks >> >> -- >> Agustin Lobo >> aloboa...@gmail.com >> >> ___ >> Mailing list: https://launchpad.net/~zim-wiki >> Post to : zim-wiki@lists.launchpad.net >> Unsubscribe : https://launchpad.net/~zim-wiki >> More help : https://help.launchpad.net/ListHelp >> > > > ___ > Mailing list: https://launchpad.net/~zim-wiki > Post to : zim-wiki@lists.launchpad.net > Unsubscribe : https://launchpad.net/~zim-wiki > More help : https://help.launchpad.net/ListHelp > > ___ Mailing list: https://launchpad.net/~zim-wiki Post to : zim-wiki@lists.launchpad.net Unsubscribe : https://launchpad.net/~zim-wiki More help : https://help.launchpad.net/ListHelp
Re: [Zim-wiki] Custom plugins installation
Dear Alessandro, it is great to have a feedback from somebody, who intends to use the plugin. I personally used mainly the custom tool and made a conversion of the custom tool to the native plugin. I have identified and fixed the issue, tested the plugin and it should work correctly now. Please be sure that you paste the code from the wiki page https://github.com/jaap-karssenberg/zim-wiki/wiki/TreeMap-plugin-%28converted-Text2mindmap-custom-tool%29 and there is a right indentation (Python is sensitive to mixed tabs and spaces). I use very up to date version of ZIM-Wiki 0.63 from PPA. Please let me know, if there is still an issue and I will try to solve it for you. All the best, NorfCran On 28 June 2015 at 21:10, Jaap Karssenberg jaap.karssenb...@gmail.com wrote: Hi Alessandro, Sounds like you installed the plugin correctly. The fact that the .pyc file is created shows that zim tries to load the plugin. However if it does not show up, there may be an error in the plugin that prevents it from loading. Try running zim with zim -D to get debug output and open the preferences window. The error while loading the plugin should show up there. Regards, Jaap On Wed, Jun 24, 2015 at 10:57 AM, Alessandro La Fauci alafa...@yahoo.it wrote: Dear Zim team, I would really like to install and use the TreeMap plugin published on this page https://github.com/jaap-karssenberg/zim-wiki/wiki/Plugins I saved and put the code in folder ~/.local/share/zim/plugins , the file is saved as tremapeditor.py. After starting Zim i found another file in the same directory called tremapeditor.pyc. Nevertheless the plugin doesn't appear under preferences plugins, and I can't see any new option in all the other menus. What should I do to correctly install this plugin. Thank you in advance Cheers A ___ Mailing list: https://launchpad.net/~zim-wiki Post to : zim-wiki@lists.launchpad.net Unsubscribe : https://launchpad.net/~zim-wiki More help : https://help.launchpad.net/ListHelp ___ Mailing list: https://launchpad.net/~zim-wiki Post to : zim-wiki@lists.launchpad.net Unsubscribe : https://launchpad.net/~zim-wiki More help : https://help.launchpad.net/ListHelp ___ Mailing list: https://launchpad.net/~zim-wiki Post to : zim-wiki@lists.launchpad.net Unsubscribe : https://launchpad.net/~zim-wiki More help : https://help.launchpad.net/ListHelp
Re: [Zim-wiki] Re-ordering the index / custom sorting
Dear Murat, I have tried to write some comments in the lines of yours, hope it is aright and thanks for Jaap's considerations. On 18 February 2015 at 11:23, Güven, Ugur Murat murat.gue...@ts.fujitsu.com wrote: Hi Jaap, 1/ Do you only want custom ordering, or switch between custom and alphabetical sorting ? What I’d love to see is the possibility to enable / disable a personal index My current structure is: 004Projects 004-0010-ProjectA 001-Information-ProjectA 002-Tasks-ProjectA 003-Meetings-ProjectA M001-DATE-ProjectA M002-DATE-ProjectA M003-DATE-ProjectA 003-OngoingTopics-ProjectA 004-0020-ProjectB 004-0030-ProjectC … using the pre-fix numbers for sorting. So putting this together means that I would need the possibility to sort · according to creation date · setting the position manually 2/ If so, where do you click to switch between custom ordering and alphabetic ordering ? And how this switch affect sub-sections ? Basically I need to have the option per parent note to make child notes sorted against. So, right-clicking on the parent note should show a popup menu In above example I would sort manually: 004-0010-ProjectA 001-Information-ProjectA 002-Tasks-ProjectA 003-Meetings-ProjectA 003-OngoingTopics-ProjectA These should be sorted against creation date: 003-Meetings-ProjectA M001-DATE-ProjectA M002-DATE-ProjectA M003-DATE-ProjectA yes, that would be a need settings (selective), maybe it would be possible to keep this information in header of the parent page? 3/ When index has custom ordering, where do new pages show up - at the end, in the front, other position ? According to the selected option in parent note. There could be an exception though -- 5/ ... what did I not think of yet ... ? If camel case creation is switched on, the notes which are created automatically need to be placed as child notes and should be sorted alphabetically as standard. 4/ Should custom sorting depend on list of links in parent page ? (Either by default or as a plugin) That is a nice idea. On the one hand it could make it easier for the user to find the notes in the index if the index order follows the order in the note, but on the other hand, if the links are not in a list within a note, I don’t see a direct visual connection to the index order and to the order within the note. this kind of sorting is relevant for export of chapters defined on a single page (the same level). It is also useful for a further graphical interpretations and pages in UI and appreciated by people with strong spatial memory like me :-) -- 5/ ... what did I not think of yet ... ? I often use parent notes as ‘folders’ with little or no content. Such ‘special’ notes could have the option to have the sub-notes listed as links (basically your idea at 4/ with an addition) it could be maybe possible to define some additional attributes to the sub-links (a color and an importance), which would be stored in the sub-link (this is just an idea) Thank you and Regards, Murat ___ Mailing list: https://launchpad.net/~zim-wiki Post to : zim-wiki@lists.launchpad.net Unsubscribe : https://launchpad.net/~zim-wiki More help : https://help.launchpad.net/ListHelp ___ Mailing list: https://launchpad.net/~zim-wiki Post to : zim-wiki@lists.launchpad.net Unsubscribe : https://launchpad.net/~zim-wiki More help : https://help.launchpad.net/ListHelp
Re: [Zim-wiki] presentations with zim
There is one thing, which comes to my mind, you need to allow execution of the script (file) and if it does not help you could try to close ZIM and run it from your terminal:~$ zim -D It will show debugging details about the running zim as well as custom tools and I can ensure you that this is version independent, because it reads a source of the page, which is fixed. It uses the following standard libraries: gtk, subprocess, os, sys If you find any information/error messages after running the custom tool please let me know so I can make changes before sharing the code on https://github.com/jaap-karssenberg/zim-wiki/wiki with all other custom tools. Jakub On 5 February 2015 at 15:30, Agustin Lobo aloboa...@gmail.com wrote: no window comes up, although the python process _skb_recv_datagram appears in the system monitor. Maybe because of using 0.60... Hopefully I'll get some feedback on the problem with 0.62 Thanks Agus On Thu, Feb 5, 2015 at 1:46 PM, NorfCran norfc...@gmail.com wrote: in that case you may need to create the custom tool yourself: the command should define path to the presenter.py On 5 February 2015 at 13:22, Agustin Lobo agustin.l...@ictja.csic.es wrote: I do not get the presenter item under Tools. Maybe because I'm using 0.60? (I have a problem with 0.62 that I have reported) or may be I have to do something under Tools/Custom Tools ? On Thu, Feb 5, 2015 at 12:40 PM, NorfCran norfc...@gmail.com wrote: Agus, you are right, currently I have developed a custom tool useful for presentations, which takes the opened page with a DEFINED ORDER of sub-pages in form of sub-links: +introduction +methods +... consequently after running the custom tool a small window appears and you can change pages with page up, page down and escape the window by pressing the escape key or button. It would be nice to integrate it more neatly to the full screen feature of ZIM, which I have used for some presentations before :-D Hope it helps and possibly it may be useful also for somebody else... You need to copy attached files to ~/.config/zim/customtools/ and restart the ZIM, than the custom tool should appear under menu -- tools -- presenter All the best, Jakub On 29 January 2015 at 21:32, Agustin Lobo aloboa...@gmail.com wrote: Jakub, At some point you said ...especially in presentations, which I love to make in ZIM Could you explain how you actually make presentations with zim or point to the appropriate doc? Thanks! Agus -- Agustin Lobo aloboa...@gmail.com ___ Mailing list: https://launchpad.net/~zim-wiki Post to : zim-wiki@lists.launchpad.net Unsubscribe : https://launchpad.net/~zim-wiki More help : https://help.launchpad.net/ListHelp -- -- Dr. Agustin Lobo Institut de Ciencies de la Terra Jaume Almera (CSIC) Lluis Sole Sabaris s/n 08028 Barcelona Spain Tel. 34 934095410 Fax. 34 934110012 e-mail agustin.l...@ictja.csic.es https://sites.google.com/site/aloboaleu/ ___ Mailing list: https://launchpad.net/~zim-wiki Post to : zim-wiki@lists.launchpad.net Unsubscribe : https://launchpad.net/~zim-wiki More help : https://help.launchpad.net/ListHelp -- Agustin Lobo aloboa...@gmail.com ___ Mailing list: https://launchpad.net/~zim-wiki Post to : zim-wiki@lists.launchpad.net Unsubscribe : https://launchpad.net/~zim-wiki More help : https://help.launchpad.net/ListHelp
Re: [Zim-wiki] presentations with zim
Agus, you are right, currently I have developed a custom tool useful for presentations, which takes the opened page with a DEFINED ORDER of sub-pages in form of sub-links: +introduction +methods +... consequently after running the custom tool a small window appears and you can change pages with page up, page down and escape the window by pressing the escape key or button. It would be nice to integrate it more neatly to the full screen feature of ZIM, which I have used for some presentations before :-D Hope it helps and possibly it may be useful also for somebody else... You need to copy attached files to ~/.config/zim/customtools/ and restart the ZIM, than the custom tool should appear under menu -- tools -- presenter All the best, Jakub On 29 January 2015 at 21:32, Agustin Lobo aloboa...@gmail.com wrote: Jakub, At some point you said ...especially in presentations, which I love to make in ZIM Could you explain how you actually make presentations with zim or point to the appropriate doc? Thanks! Agus -- Agustin Lobo aloboa...@gmail.com import gtk import subprocess import time import os import sys # custom tool program = zim notebook = sys.argv[1] path = sys.argv[2] namespace = index = 0 #list_sublinks = [,] + sublinks.replace(+, ).split(\n) def get_namespace_from(path): global notebook if path.endswith(.txt): path = path[:-4] return path.replace(notebook,).replace(/,:)[1:] def convert_to_absolute_path(namespace): rel_path = namespace.replace(':',/)+'.txt' rel_path = rel_path.replace( , _) abs_path = os.path.join(notebook, rel_path) return abs_path def get_page_sublinks(path): global namespace links = [] if os.path.exists(path+.txt): page = open(path+.txt, r) for line in page.readlines(): link_chunks = line.split([[+) if len(link_chunks) 1: for link_chunk in link_chunks[1:]: end_link = link_chunk.find(]]) start_title = 0 end_title = link_chunk.find(|) if end_title == -1: end_title = end_link link = link_chunk[start_title:end_title] comment = link_chunk[end_link+2:].strip() # print title if not : in link: links.append(namespace+:+link) return links def wakeup(widget, event): global index global namespace global list_sublinks if type(event) == int: keycode = event else: keycode = event.keyval # PgUp if keycode == 65365 and index 0: index = index - 1 # PgDn elif keycode == 65366 and index len(list_sublinks)-1: index = index + 1 # Esc elif keycode == 65307: destroy(widget) # change page if index gives sense if index = 0 and index len(list_sublinks): print index: %i % index print length of sublinks: %i % len(list_sublinks) print namesspace: %s % list_sublinks[index] subprocess.call([program, notebook, list_sublinks[index]]) def destroy(widget, data=None): widget.destroy() gtk.main_quit() namespace = get_namespace_from(path) print namespace list_sublinks = [namespace,]+get_page_sublinks(path) print list_sublinks w = gtk.Window() #w.set_title(ZIM-Wiki presenter) w.set_decorated(False) w.set_has_frame(False) w.set_border_width(4) w.set_keep_above(True) w.set_gravity(gtk.gdk.GRAVITY_SOUTH_EAST) width, height = w.get_size() w.move(gtk.gdk.screen_width() - width, gtk.gdk.screen_height() - height) w.add_events(gtk.gdk.KEY_PRESS_MASK) w.connect(key-press-event, wakeup) hbox = gtk.HButtonBox() w.add(hbox) # Create a new button prev_button = gtk.Button(PgUp) next_button = gtk.Button(PgDn) quit_button = gtk.Button(ESC) # Connect the clicked signal of the button to our callback prev_button.connect(pressed, wakeup, 65365) next_button.connect(pressed, wakeup, 65366) quit_button.connect(pressed, destroy) hbox.add(prev_button) hbox.add(next_button) hbox.add(quit_button) hbox.set_size_request(200, 25) prev_button.show() next_button.show() quit_button.show() hbox.show() w.show() gtk.main() presenter-usercreated.desktop Description: application/desktop ___ Mailing list: https://launchpad.net/~zim-wiki Post to : zim-wiki@lists.launchpad.net Unsubscribe : https://launchpad.net/~zim-wiki More help : https://help.launchpad.net/ListHelp
Re: [Zim-wiki] Sort index
Greetings! I also worked around the issue with prefixed numbers and renaming the pages afterwards. I would really appreciate a possibility to define custom order, especially in presentations, which I love to make in ZIM :D It works fine, except the ordering, which restricts usage of alt+PgDn due to alphabetical (in this use case misleading) ordering. The index is strictly alphabetic, but in fact information about order is defined by sublinks in the parent page. For example I would suggest the following approach (category of a wish list and a discussion ;) In case of already mentioned presentation the structure could be the following: +introduction +methods +experiments +results +conclusion If you sort the index according to ordered sublinks on the parent page, than it would match the data structure. The separation of custom sorted and alphabetically sorted could be visually differentiated. That would create more coherent structure between pages and the index. The only question is whether this suggestion is in favour of users and how complicated would be the implementation this feature, since as far as I have researched the SQLite database is not ready for keeping track of customized ordering... Best regards, JaKub On 29 January 2015 at 10:04, Güven, Ugur Murat murat.gue...@ts.fujitsu.com wrote: Hi Agus, Is there a way of making the index on the left to display in alphabetic order? To be honest, I don't know if there is a possibility to change the display order for the index. I haven't found anything either. But the index is shown in alphabetical order. You may want to try out by putting numbers as a prefix to your notes. That's how I make sure that the notes remain in the order I want. Regards, Murat ___ Mailing list: https://launchpad.net/~zim-wiki Post to : zim-wiki@lists.launchpad.net Unsubscribe : https://launchpad.net/~zim-wiki More help : https://help.launchpad.net/ListHelp ___ Mailing list: https://launchpad.net/~zim-wiki Post to : zim-wiki@lists.launchpad.net Unsubscribe : https://launchpad.net/~zim-wiki More help : https://help.launchpad.net/ListHelp
Re: [Zim-wiki] Is there a way of changing the tag symbol?
Dear Paul, it is an extra plugin (requiring installation of this package gtksourceview2), which is called source view. In order to activate this plugin you need to enable it in menu edit -- preferences -- plugins and than scroll down to the plugin and mark the related check-box. Than you can insert block of isolated text (to some extent also highlighted depending on syntax) under menu insert -- code block. It works nicely and helps to keep syntax sensitive information separated. Hope it solves your issue. JaKub On 29 January 2015 at 14:28, Paul Gouin paul.goui...@gmail.com wrote: Dear Jakub, I can't find that option in the menus. Can you tell me where to look? Thanks, Paul 2015-01-29 13:22 GMT+01:00 NorfCran norfc...@gmail.com: Dear Paul, for similar cases I use insert code block element, which isolates all the links from ZIM, maybe it could be considered instead of pasting text directly to ZIM page? All the best, JaKub On 29 January 2015 at 12:50, Paul Gouin paul.goui...@gmail.com wrote: Thanks to all who responded. Turns out my description of the issue was inaccurate: it is not tags that Zim creates automatically but links to new pages. Below is an example of the kind of text I routinely paste into Zim. (These are phonemic transcriptions of recordings made for the purpose of creating text-to-speech synthetic voices; the 1st phrase transcribes and guarantees of due processes ; the @ signs designates the so-called schwa or undifferentiated vowel) If you're patient enough to try and paste this text for yourselves, maybe you'll notice some kind of pattern that escapes me. Links are created on most lines but not all; links may extend across whole lines or not. Disabling the option to Automatically turn file paths into links does not alter Zim's behavior in this respect. Sample text: phn/phrase01418.phn:#_|_-@_n_ d_|_g_~a_.r_@_n_.t_*ii_z_|_*uh_v_|_d_*uu_|_p_r_*o_.s_e_s_# phn/phrase01427.phn:#_|_-@_n_d_|_dh_*a_t_s_|_w_*ai_|_*ai_|_p_*u_sh_t_|_h_*i_m_|_*oo_f_|_dh_-@ _|_r_*uu_f_# phn/phrase01479.phn:#_|_-@_n_d_|_*o_n_|_*uh_.dh_@@_|_f_*i_z_.k_@ _l_|_p_*a_.r_@_.d_ai_s_.@_z_# phn/phrase01543.phn:#_|_-@_n_d_|_d_*i_s_.k_au_n_t_|_s_t_*oo_r_z_|_*oo_.f_n=_|_s_*e_l_|_dh_*e_m_|_f_-@ _r_|_m_*uh_ch_|_l_*e_s_# phn/phrase01554.phn:#_|_-@_n_d_|_dh_-@ _|_s_t_*ah_n_d_.oo_f_|_b_i_.g_*a_n_# phn/phrase01594.phn:#_|_-@_n_d_|_*e_.n_ii_|_w_*uh_n_|_*uh_v_|_dh_*e_m_|_k_*u_d^_|_h_*ou_l_d_|_n_aa_.k_*o_.d^_i_k_s_# phn/phrase01648.phn:#_|_-@_n_d^_|_*i_f_|_w_*ii_|_k_*u_d_|_g_*e_t_|_*au_r_|_sh_*i_p_|_*au_t_# phn/phrase01748.phn:#_|_-@_n_d_|_s_t_*ei_|_dh_*e_r_|_uh_n_.t_*i_l_|_*ai_|_k_*uh_m_# phn/phrase01777.phn:#_|_-@_n_d_|_dh_*ii_|_~oo_r_.g_@_.n_@ _z_.*ei_.sh_n=_z_|_s_*e_.k_r_@_t_.~e_.r_ii_|_jh_*e_n_.r_@_l_# phn/phrase01782.phn:#_|_-@_n_d^_|_-@_n_|_*i_ng_.k_r_ii_s_|_*i_n_|_i_.l_~e_k_.t_r_*i_.s_i_.d^_ii_|_t_*a_.r_@ _f_s_# phn/phrase01801.phn:#_|_-@_n_d_|_dh_*e_r_|_r_~ii_.d^_i_.p_l_*oi_.m_@ _n_t_|_t_-@_|_b_*ei_s_.@_z_|_s_*au_th_|_*uh_v_|_s_*ou_l_# On Tue, Jan 27, 2015 at 10:45 AM, hans...@gmail.com wrote: Yes Twitter will come and go (good riddance) but I hope Zim will be around for generations. On Tue, Jan 27, 2015 at 9:01 AM, Marco Cevoli marco.cev...@gmail.com wrote: I see. It makes lot of sense. Marco Cevoli On Tue, Jan 27, 2015 at 2:23 PM, Jaap Karssenberg jaap.karssenb...@gmail.com wrote: Main logic is that # is also used for anchors in HTML links. So reserved # for links and decided on @ since this is used for tags in applications predating twitter. Regards, Jaap On Tue, Jan 27, 2015 at 1:28 PM, Marco Cevoli marco.cev...@gmail.com wrote: I know this has been discussed before, but why don't we follow twitter's standard? All words with @ are for people/users and # for actual tags. I don't know if this unnecessary complicates things, but it might be useful to many users. The developer(s) can only change the actual @ with # , and this user/contact management (using @) can be created as an external plugin, ie, not forcing everyone to use it, since Zim is designed as a personal organizer. Just brainstorming. Marco Cevoli Technical translator. Graphic designer. Joiner-of-dots. On Tue, Jan 27, 2015 at 11:32 AM, Jaap Karssenberg jaap.karssenb...@gmail.com wrote: On Tue, Jan 27, 2015 at 11:23 AM, Güven, Ugur Murat murat.gue...@ts.fujitsu.com wrote: Hi, Colin:[… ]Ugur Murat wants it and has done coding in related areas so I've been hoping they might do it someday. […] I was thinking of having the @ sign for general tags, and the # sign for people tags, as I’m using tags heavily, also for tasks to assign to people. What I could imagine is to have the tags symbol to be a setting in preferences, but changing the tag symbol is not that easy, as far as I can see
Re: [Zim-wiki] Zim Plugin Treemap
Hi Oliver, there are two options you can choose: a plugin or a custom tool. I would recommend the plugin, which is the most up to date version of this tool fully integrated in ZIM ( https://github.com/jaap-karssenberg/zim-wiki/wiki/TreeMap-plugin-%28converted-Text2mindmap-custom-tool%29). The path you need to use in case of the plugin is ~/.local/share/zim/plugins/tremapeditor.py. After you do so, restart ZIM and the plugin should be loaded and listed in menu -- preferences -- plugins you can find Insert TreeMap and enable the plugin. Finally there should be a new item in menu -- insert -- treemap... I hope that this helps, remember that the inserted list of keywords should be tabbed (spaces do not work). Best regards, NorfCran ___ Mailing list: https://launchpad.net/~zim-wiki Post to : zim-wiki@lists.launchpad.net Unsubscribe : https://launchpad.net/~zim-wiki More help : https://help.launchpad.net/ListHelp
Re: [Zim-wiki] export
Good evening, just to point out existing solution, there has been already a discussion regarding mentioned recursive extraction, so possibly it may be useful to somebody: https://lists.launchpad.net/zim-wiki/msg01864.html All the best, JK On 8 October 2014 09:55, Paulo van Breugel p_vanbreu...@yahoo.com wrote: I can't help with the technical question, but would certainly be interested to test any solution :-) On Tuesday, October 7, 2014 4:46 PM, NorfCran norfc...@gmail.com wrote: Hi Paulo, it is quite handy feature, at some point I was looking for something similar some. I have made a dirty python script to cover my demands. I would like to share a use case also related to export of content (recursively). Initially the script went through content from currently opened page (top page), collected links (kept order of links in text). In this way each link to a subpage was replaced with its content (recursively for each page until it reached end page with no more links to subpages). At the same time the script also generated table of content with few other adjustments to content of each page. It allowed me to structure each chapter like a subpage and when time came I applied the mentioned script, got one long page in a clipboard, created a new page of derived content from the hierarchical structure, exported it to latex and my thesis got almost ready to be shipped :D So in deed I am interested in this feature and possibly I can try to create the plugin. The only technical question I have is about the insex, whether it is possible to get order of links from a page content and if not, than I am interested how difficult would it be to make it possible? I often use links to subpages and would like to reflect the order in index of the side panel, this is useful for switching pages by Alt-PgUp and Alt-PgDn. Thank you for any feedback. All the best, NorfCran ___ Mailing list: https://launchpad.net/~zim-wiki Post to: zim-wiki@lists.launchpad.net Unsubscribe : https://launchpad.net/~zim-wiki More help : https://help.launchpad.net/ListHelp ___ Mailing list: https://launchpad.net/~zim-wiki Post to : zim-wiki@lists.launchpad.net Unsubscribe : https://launchpad.net/~zim-wiki More help : https://help.launchpad.net/ListHelp
Re: [Zim-wiki] export
Hi Paulo, it is quite handy feature, at some point I was looking for something similar some. I have made a dirty python script to cover my demands. I would like to share a use case also related to export of content (recursively). Initially the script went through content from currently opened page (top page), collected links (kept order of links in text). In this way each link to a subpage was replaced with its content (recursively for each page until it reached end page with no more links to subpages). At the same time the script also generated table of content with few other adjustments to content of each page. It allowed me to structure each chapter like a subpage and when time came I applied the mentioned script, got one long page in a clipboard, created a new page of derived content from the hierarchical structure, exported it to latex and my thesis got almost ready to be shipped :D So in deed I am interested in this feature and possibly I can try to create the plugin. The only technical question I have is about the insex, whether it is possible to get order of links from a page content and if not, than I am interested how difficult would it be to make it possible? I often use links to subpages and would like to reflect the order in index of the side panel, this is useful for switching pages by Alt-PgUp and Alt-PgDn. Thank you for any feedback. All the best, NorfCran ___ Mailing list: https://launchpad.net/~zim-wiki Post to : zim-wiki@lists.launchpad.net Unsubscribe : https://launchpad.net/~zim-wiki More help : https://help.launchpad.net/ListHelp
Re: [Zim-wiki] Can Text2mindmap insert a figure directly into the zim page?
Dear Hella, I just finished conversion of the custom tool Text2mindmap and now it follows your example. Previously, I thought that it will be sufficient to have only the custom tool, but your feedback made me reconsider Hope some other users can take advantage of this plugin. https://github.com/jaap-karssenberg/zim-wiki/wiki/TreeMap-plugin-%28converted-Text2mindmap-custom-tool%29 All the best, NorfCran On 30 September 2014 14:17, Hella Riede hella_ri...@gmx.de wrote: Dear zim mailing list, Jaap encouraged me to send my question concerning Text2mindmap here: Dear Jaap, dear zim community, I appreciate zim a lot. To try out the custom tools, I downloaded Text2mindmap from https://github.com/jaap-karssenberg/zim-wiki/wiki/Text2mindmap-custom-tool. In the command field of the zim custom tool dialogue, I entered '~/bin/zim_mindmap.py %s', without the apostrophes. The correct figure is produced from a certain page, but not inserted into that page automatically. I can then insert it via the insert image dialogue, but I am relatively sure that the embedding of the figure was meant to be automatic (?). Example: - I write the mindmap code into a page in the path /my/zim/test.txt - then I save, refresh, and call the Text2mindmap custom tool - result: the expected figure is written to /my/zim/test.png, but it is not automatically embedded into the page Thank you in advance for your help. Ixtos (Linux Mint Maya, zim version 0.61) ___ Mailing list: https://launchpad.net/~zim-wiki Post to : zim-wiki@lists.launchpad.net Unsubscribe : https://launchpad.net/~zim-wiki More help : https://help.launchpad.net/ListHelp ___ Mailing list: https://launchpad.net/~zim-wiki Post to : zim-wiki@lists.launchpad.net Unsubscribe : https://launchpad.net/~zim-wiki More help : https://help.launchpad.net/ListHelp
[Zim-wiki] Command line arguments for AttachmentBrowser
Dear Jaap and other contributors, I am trying to extend attachmentbrowser.py plugin so that it provides command line arguments, which allows storing page path of the attachment folder to clipboard (in case the folder does not exist it is created). It really speeds workflow in my opinion (possibly I can jump over agreeing whether I want to create the attachment folder). Since I often download files and this would be so handy extension, especially when when it can be assigned to globally accessible keyboard shortcuts in the system. Currently I have extended the attachmentbrowser.py with Command class, but I do not know, how to access currently opened page. Possibly it may be necessary to provide argument differentiating notebooks, in case more of them are opened at the same time or use the default one. Thank you in advance for your feedback. All the best, NorfCran ___ Mailing list: https://launchpad.net/~zim-wiki Post to : zim-wiki@lists.launchpad.net Unsubscribe : https://launchpad.net/~zim-wiki More help : https://help.launchpad.net/ListHelp
Re: [Zim-wiki] Time Stamped Text (TST) plugin
Dear Japp, thank you for your suggestion, I already started experimenting with difflib library, which is capable of generating deltas. Concerning the data structure with timestamps, it would be possibly worth to consider the following protocol called Gobby, which does provide a way how to collaborate over network on a one to many text files. On top of this feature it also defines data structure, which may accommodate timestamps. Do you think that the protocol cold be integrated into ZIM, since it uses GTK? Possibly it may elevate ZIM like a personal wiki to real-time collaborative writing? The APIhttp://gobby.0x539.de/trac/wiki/APIReferenceoffers libinftextgtk, but I am not certain about complexity resulting from intended integration. Even though the libinftextgtk is implement in C it seems to be possible to wrap the C implementation and use it in Python code according to the following link: http://stackoverflow.com/questions/1942298/wrapping-a-c-library-in-python-c-cython-or-ctypes The infinote protocol uses storage in the following form: ?xml version=1.0? inf-text-session user id=1 name=norfcran_apple hue=0.203069/ user id=2 name=norfcran hue=0.628897996/ buffer segment author=1asdfasdfasd fa sdf as tell df as df as df /segment segment author=2asdfa sdf as/segment segment author=1 this may be wrong/segment segment author=2 df as d f/segment /buffer /inf-text-session The segment may be extended by timestamps. So it results in timestamped text, which does not preserve history of changes, but on the other hand it brings a real-time collaboration on a single file. Additionally the timestamps could be utilized for tracking changes over many pages, since time is a natural binder of flow, when there are more than one page edited simultaneously. Hope that these suggestions do not turn it into something impossible, so far at least I can see potentially a feasible shortcut to bring another organizational tool in form of timestamps. Thank you in advance for your opinion, best regards, JK On 31 May 2013 13:04, Jaap Karssenberg jaap.karssenb...@gmail.com wrote: JK, Main problem I see is how you going to store all that meta-data in a wiki format. If you really want to timestamp a change of e.g. 2 words half way a paragraph you end up with timestamps every other word in your source text. So you would have to keep a file next to the actual source to track changes as they happen. Kind of keeping a permanent record of the undo stack. Not too hard to hack together if you trigger it to update on each auto-save. Bonus is that you would also get permanent undo. Only technical tid-bit is that our real undo-stack is in terms of positions in the text buffer, which does not match positions in the source text, so some glue is needed there. Alternative would be to store patches and figure out history from that. Most version control system have an annotated mode to show history of text, but those are usually per line, not per word. You could figure out though history per word from the version history. You would have to commit for every other change though, so probably not for your purpose. So in conclusion: 1/ Write a plugin that takes a diff of the text in the source file on each auto-save and stores the deltas timestamped in a record next to the actual source file. 2/ Connect it to the undo stack, so even after closing a page, you can still undo/redo each delta 3/ Figure out what representation of this data you would want in the user interface - e.g. text annotation, change log, ... Regards, Jaap On Fri, May 31, 2013 at 10:53 AM, NorfCran norfc...@gmail.com wrote: Hi Jaap and other contributors, it has been some time, since I worked on a project, which researched capabilities of synchronizing text with time (to extent of timestamped words). Actually I wanted to bring this feature to ZIM, but could not get there (the project in my case tries to use tree data structure algorithm to solve this issue with respect to timestamps). Anyhow, recently I came up to the following application, which inspired me to write this email: https://itunes.apple.com/de/app/armadillo-audio-notes/id532223938?mt=12 It basically provides, what I would personally love to see in ZIM as well (apart of the audio, that is another level). Can you see any possibility to target this feature? I am personally very much into idea of time based text and possibly other users may start to see advantages of it (so there would be chance to track changes based on time through hierarchy of pages, especially when some words in long paragraphs change, it is difficult to use VCS). This is actually the main inspiration of this feature: http://etherpad.org/ I would be interested in your opinions whether you see some possibility in implementing time based text plugin (basically directions of further focus)? Thank you for your feedback, best regards, JK
[Zim-wiki] Time Stamped Text (TST) plugin
Hi Jaap and other contributors, it has been some time, since I worked on a project, which researched capabilities of synchronizing text with time (to extent of timestamped words). Actually I wanted to bring this feature to ZIM, but could not get there (the project in my case tries to use tree data structure algorithm to solve this issue with respect to timestamps). Anyhow, recently I came up to the following application, which inspired me to write this email: https://itunes.apple.com/de/app/armadillo-audio-notes/id532223938?mt=12 It basically provides, what I would personally love to see in ZIM as well (apart of the audio, that is another level). Can you see any possibility to target this feature? I am personally very much into idea of time based text and possibly other users may start to see advantages of it (so there would be chance to track changes based on time through hierarchy of pages, especially when some words in long paragraphs change, it is difficult to use VCS). This is actually the main inspiration of this feature: http://etherpad.org/ I would be interested in your opinions whether you see some possibility in implementing time based text plugin (basically directions of further focus)? Thank you for your feedback, best regards, JK ___ Mailing list: https://launchpad.net/~zim-wiki Post to : zim-wiki@lists.launchpad.net Unsubscribe : https://launchpad.net/~zim-wiki More help : https://help.launchpad.net/ListHelp
[Zim-wiki] Geographically tagged content in ZIM notebook
Dear ZIM users, I have a proposal to enrich ZIM with a possibility to attach geographical locations in form of tags. For instance any page could contain one or many tags @geoloc:50.1859600N, 16.5099800E. These tags should be filtered out from notebook and processed by a plugin. I am willing to work on the plugin with some help in form of hints. The output could be a KML file, which shows all @geoloc tags from the notebook on a digital map for instance in GoogleEarth. The pin defined in KML file would contain information about a namespace to the page. Thank you for any feedback and suggestions. Best regards, NorfCran(JK) ___ Mailing list: https://launchpad.net/~zim-wiki Post to : zim-wiki@lists.launchpad.net Unsubscribe : https://launchpad.net/~zim-wiki More help : https://help.launchpad.net/ListHelp
[Zim-wiki] Automatic update of content provided by a running web server
Dear ZIM developers, does anybody know, what is required to reflect actual state of notebook (including changed pages and files) provided by a web server? I am considering to improve and utilize this feature. Thank you for any directions, best regards JK ___ Mailing list: https://launchpad.net/~zim-wiki Post to : zim-wiki@lists.launchpad.net Unsubscribe : https://launchpad.net/~zim-wiki More help : https://help.launchpad.net/ListHelp
Re: [Zim-wiki] Recursive print/export of sub-pages (determined by sub-links)
On 10 August 2012 16:16, Jaap Karssenberg jaap.karssenb...@gmail.comwrote: OK, after some thinking about it I did a very quick hack to make this work. Figured I could use it as well for my own reporting :) To try it out drop the attached files in the source folder (in zim/ and zim/gui/ respectively). There now should be an option in the export dialog include child pages. This hack does not handle internal links and attachments of sub pages. This would need to be added before merging it in the main branch. Internal links would need support for anchors in the output formats. Here is edited html.py from from formats folder, which supports anchors (I have done it yesterday and it was not working, but with your present improvements it does), thank you! Handling attachments of sub pages needs some refactoring of how the exporter works. Have fun! Jaap html.py Description: Binary data ___ Mailing list: https://launchpad.net/~zim-wiki Post to : zim-wiki@lists.launchpad.net Unsubscribe : https://launchpad.net/~zim-wiki More help : https://help.launchpad.net/ListHelp
[Zim-wiki] looking for a proof of concept plugin allowing in-line insertion of sub-pages (a nested view)
Hi ZIM users, can anybody point me out to a plugin, which has been introduced some time ago by Jaap. It allowed showing subpages as a part of the parent page (a nested view). So far I had no luck to find it in bug reports. I will be happy for any direction, best regards, JK! ___ Mailing list: https://launchpad.net/~zim-wiki Post to : zim-wiki@lists.launchpad.net Unsubscribe : https://launchpad.net/~zim-wiki More help : https://help.launchpad.net/ListHelp
[Zim-wiki] Is there a way to get a path of a currently opened page from command line?
Good evening, is there a way, how I can access a current page, which is opened in ZIM window from command line call? This should be done through a plugin like quicknote. I would like to insert the text directly to currently opened page, is this somehow possible? Thanks for any suggestions, JK! ___ Mailing list: https://launchpad.net/~zim-wiki Post to : zim-wiki@lists.launchpad.net Unsubscribe : https://launchpad.net/~zim-wiki More help : https://help.launchpad.net/ListHelp