Re: [Zim-wiki] Creating new pages from a template

2013-02-11 Thread Jaap Karssenberg
On Mon, Feb 11, 2013 at 12:30 PM, Mark Hughes (Zim mailing list)
m...@happybeing.com wrote:
 Zim uses the term template for and export.

 I'm interested in having templates for creating new Zim pages and wonder if
 there is a mechanism for this.

There is a hidden feature in the code that I will enable after
fixing number of outstanding design items. (As you may have noticed,
dev pace is slow at the moment, so may take some time.) But the
intended feature is single page only, not sub-tree.

 If not, what would the neatest way to create
 new pages -- or rather a subtree of several pages -- based on some a
 pre-defined subtree of Wiki content? I currently use KeyNoteNF for this but
 am migrating gradually to Zim.

 My scenario is that whenever I set up a new project for a website client I
 have a pre-defined wiki (actually KeyNoteNF subtree) with placeholders for
 client information, standard tasks and so on. I create a copy of this and
 then rename/search and replace with the client name/web domain etc.

I think you could do the copy  replace in a small shell script. Add
this script to zim as a custom tool that takes page name as input.
This would enable a work flow where you go to a new page and then
trigger the tool from the tools menu to populate the page.

Regards,

Jaap

___
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] Creating new pages from a template

2013-02-11 Thread Mark Hughes (Zim mailing list)

Thanks Jaap,

Dev pace is what it is - your speed of support/response is very helpful.

Another way to handle this case might be a Copy Subtree / Paste 
Subtree on tree node context menu (which is how I do this in KeyNoteNF).


I can do a scripted solution, but won't go there while I'm mainly on 
Windows!


Regards,

Mark

On 11/02/2013 11:35, Jaap Karssenberg wrote:

On Mon, Feb 11, 2013 at 12:30 PM, Mark Hughes (Zim mailing list)
m...@happybeing.com wrote:

Zim uses the term template for and export.

I'm interested in having templates for creating new Zim pages and wonder if
there is a mechanism for this.

There is a hidden feature in the code that I will enable after
fixing number of outstanding design items. (As you may have noticed,
dev pace is slow at the moment, so may take some time.) But the
intended feature is single page only, not sub-tree.


If not, what would the neatest way to create
new pages -- or rather a subtree of several pages -- based on some a
pre-defined subtree of Wiki content? I currently use KeyNoteNF for this but
am migrating gradually to Zim.

My scenario is that whenever I set up a new project for a website client I
have a pre-defined wiki (actually KeyNoteNF subtree) with placeholders for
client information, standard tasks and so on. I create a copy of this and
then rename/search and replace with the client name/web domain etc.

I think you could do the copy  replace in a small shell script. Add
this script to zim as a custom tool that takes page name as input.
This would enable a work flow where you go to a new page and then
trigger the tool from the tools menu to populate the page.

Regards,

Jaap




___
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] Creating new pages from a template

2013-02-11 Thread Jaap Karssenberg
On Mon, Feb 11, 2013 at 12:43 PM, Mark Hughes (Zim mailing list)
m...@happybeing.com wrote:
 I can do a scripted solution, but won't go there while I'm mainly on
 Windows!

A .bat file should work fine I think :)

Adding a copy option that allows also copying child pages sound like
a good idea as well.

Regards,

Jaap

___
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] Change editor for Edit Source

2013-02-11 Thread Steve Chadsey
On Sat, Feb 9, 2013 at 4:11 AM, nomnex nom...@gmail.com wrote:
 On Fri, 8 Feb 2013 11:51:27 -0700
 Steve Chadsey schad...@gmail.com wrote:

 How do I specify the editor I want to be launched with Tools-Edit
 Source?  I'm using XFCE if that makes any difference.

 I use XFCE Fedora, with Zim 0.59.
 To change my system text editor to Geany, I simply deleted the file
 defaults.list in my home directory
 Path: ~/.local/share/applications/defaults.list
 The next time I select ToolEdit Source, Zim gives me the
 choice to set a default text editor. Does it work for you?

I did not have the file ~/.local/share/applications/defaults.list .
I quit zim, created the file with the contents:

  text/plain=gvim.desktop

Restarted zim, and now I am happy to report that Edit Source opens gvim.

Thanks for the help everyone.
-- 
Steve Chadsey schad...@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


[Zim-wiki] Subscript / superscript

2013-02-11 Thread Andrej Znidarsic
Hello all!

I really enjoy using Zim for writing my notes. As I am doing a lot of
Chemistry related things I would like to use superscript/subscript. Is it
possible to perform this in Zim and if it is, how?

regards

Andrej
___
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] Subscript / superscript

2013-02-11 Thread Kurt Woodham
Andrej,

(Jaap - correct me if I'm wrong on this...)

If you use the _{} or ^{} methods, you might need to do a CTRL-R
(reload) to see the sub/super/scripts.  I have reload wiki markup on
the fly checked as true under preferences, but this is one of the few
markups where it seems that I have to reload manually regardless.

As always, Jaap - much appreciation for a great app.

- Kurt

On 02/11/2013 03:41 PM, Jaap Karssenberg wrote:
 On Mon, Feb 11, 2013 at 9:01 PM, Andrej Znidarsic
 andrej.znidar...@gmail.com wrote:
 I really enjoy using Zim for writing my notes. As I am doing a lot of
 Chemistry related things I would like to use superscript/subscript. Is it
 possible to perform this in Zim and if it is, how?
 
 Sure, they are in the Format menu or you can type them as _{..}
 and ^{...}. Probably you will want to assign key bindings for the
 menu item if you use them a lot - see the manual for details.
 
 Regards,
 
 Jaap
 
 ___
 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] Subscript / superscript

2013-02-11 Thread Jaap Karssenberg
On Mon, Feb 11, 2013 at 9:51 PM, Kurt Woodham kwood...@gmail.com wrote:
 Andrej,

 (Jaap - correct me if I'm wrong on this...)

 If you use the _{} or ^{} methods, you might need to do a CTRL-R
 (reload) to see the sub/super/scripts.  I have reload wiki markup on
 the fly checked as true under preferences, but this is one of the few
 markups where it seems that I have to reload manually regardless.

Yes, reload will work for sure. If it doesn;t work on the fly, you can
put in a bug report for that - must have overloked it when adding the
patterns.

Regards,

Jaap

___
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