Re: [Zim-wiki] text editor - SUGGESTION

2011-03-31 Thread Pablo Angulo
El 31/03/11 09:49, Jaap Karssenberg escribió:
> On Thu, Mar 31, 2011 at 4:01 AM, Dale Longpre  > wrote:
>
> Suggestion: I would like to be able to edit my paragraphs with the
> typical editing options such as LEFT, CENTER, RIGHT and JUSTIFIED.
> I attached a tiny picture and I'm sure you will know what I mean...
>
>
> Since zim focuses more on content than on presentation this is not
> very high on my list. However you can put it in the bug tracker as a
> feature request, maybe someone else wants to pick it up.
>
> Would help if we have a good proposal how to encode this in wiki syntax.

Sorry to be picky, but could this be made optional? Specifically, I hope
the syntax is not very common so it doesn't happen by accident. Remember
we include in our notes snippets of all sorts of source code, so ''' and
{{{ and some other apparently unusual markup do happen. If there are
gonna be several requests like this, how about a unified syntax for all
the non-content markup?

Just an opinion
___
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 Shortcuts

2011-01-09 Thread Pablo Angulo
Place the mouse over the menu entry and press the desired keyboard
shortcut. If that fails, maybe you can edit ~/.config/accelmap, but I
don't know if that will be regenerated on the next startup.

Regards

El 09/01/11 10:07, Michał Kawalec escribió:
> Hello,
> Is there any way of adding custom shortcuts? I want to add one to the
> equation editor, as there is usually not enough time during taking
> notes on a lecture to click through the menu.
>
>
> Many thanks,
> Michal
>
> ___
> 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] Bounty for Tables Implementation

2010-12-17 Thread Pablo Angulo
El 16/12/10 08:25, Jaap Karssenberg escribió:
> What it comes down to is that if tables will be mainly used to chart
> data the treeview looks like a very nice option and it can do advanced
> stuff out of the box. Big disadvantage is that it can not support text
> formatting or flexible layout like merging cells. We could set format
> per column though (including making a column link).
+1 for treeview: I use zim for data, not presentation


___
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] how to get the gnome-do Zim plugin to work

2010-11-30 Thread Pablo Angulo
El 30/11/10 11:07, Brendan Kidwell escribió:
> The source code archive you find there dates back to 2008, which is
> before the Jaap rewrote Zim as a Python app instead of Perl. The
> plugin needs to be updated for the 0.4x series of Zim. Any takers?
> Gnome DO looks like it's based on Mono and C#. (I'm not interested,
> sorry.)
>
There's a similar app called *kupfer* that is python+gtk, already with a
zim plugin, but I don't remember if it worked or not. I've used both
gnome-do and kupfer, and both are too slow to be useful in my netbook. I
now use a keyboard binding to give focus to the terminal and fish once I
get there.
___
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] Zim Capture

2010-08-27 Thread Pablo Angulo
Hello:
I got an error trying to install it: "Installation script not found".
This is firefox 3.6.8 on ubuntu 10.04.
Regards

El 26/08/10 23:47, Michael Mulqueen escribió:
> Hello Folks,
> I hope some of you will have already heard of it, but for those who
> haven't, Zim Capture is an extension for Firefox. It enables you to
> quickly take and cite clippings from web pages with a single right
> click. Sorry Mac users, no release for you yet (see below).
>
> I have just made the first release that I think is worth anyone trying
> (version 0.18). Grab your copy now:
> http://michael.mulqueen.me.uk/projects/zimcapture/
>
> Please e-mail me any feedback and, if appropriate, report any bugs on
> its Launchpad bug tracker: https://launchpad.net/zimcapture/
>
> In the near future, I'm going to be sorting out localisations and Mac
> OS X support, so if you are a non-English language native speaker or a
> Mac user, let me know.
>
> Kind Regards,
> Mike Mulqueen
>
> ___
> 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] How to translate, when short-cut character does not exists in the translated word?

2010-07-17 Thread Pablo Angulo
El 17/07/10 11:21, s...@z107.de escribió:
> Hi,
>
> I have a question concerning the translation.
>
> Look at this example: 
> Given is the menu entry "_Quick Note...", which I would suggest to
> translate to "Kurz Notiz..." in german.
> But the term "Kurz Notiz...", contains no 'q', so I do not know how to
> include the hint to the short-cut in the item name.
>
> any ideas?
>   

I think K should be the short-cut, if it's not used by something else.
My opinion is it's better if menu shortcuts relate to the translated
words that is what the user actually sees. This makes translating menu
items in launchpad more complicated, because you have to keep track of
the letters you have already used.

However, I wouldn't apply that to general short-cuts like ctrl+f for
find, which I'd leave untranslated. Shortcuts of that kind are so
standard that it only harms to translate them, but menu items change
from one application to another.

Just an opinion. Regards.

___
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] Ctrl-L

2010-07-06 Thread Pablo Angulo


El 06/07/10 12:24, Jaap Karssenberg escribió:
> Hmm. Did you check for error messages ? If no errors only thing I can
> think of is making sure you have a clean install.
>   

No error messages. But yeah, I can reinstall and it's no bother anyway,
I was just trying to add information to the bug.


___
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] Ctrl-L

2010-07-06 Thread Pablo Angulo
El 06/07/10 10:38, Jaap Karssenberg escribió:
> Yes it should have that line. But only once in the Insert menu, not in
> the Formats menu.
>   

Sorry for the misunderstanding. I should have said: "I don't have a link
menu item anywhere" instead of "I don't have a Insert/Link or
Format/Link menu item". I didn't remember if it should be in "Insert" or
in "Format". There is no such line in the "format_menu" section.

___
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] Ctrl-L

2010-07-05 Thread Pablo Angulo
El 05/07/10 19:26, Jaap Karssenberg escribió:
>
> Any change you still have an old zim/menubar.xml file somewhere in the
> XDG_DATA_DIRS path ?
>   

I have two zim/menubar.xml files, one in /usr/share, another in
/usr/local/share, but both of them have the line:



___
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] Ctrl-L

2010-07-05 Thread Pablo Angulo
El 05/07/10 17:30, Jaap Karssenberg escribió:
> That is expected behavior when it is not customized. Assume menu also
> shows ^L behind the menu item (if customized it would also be shown
> there).
>   
BTW, which menu item? I don't have a Insert/Link or Format/Link menu item.

___
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] Ctrl-L

2010-07-05 Thread Pablo Angulo
El 05/07/10 17:05, Jaap Karssenberg escribió:
> On Sun, Jul 4, 2010 at 8:42 PM, Patrick Smith  wrote:
>   
>> I'll do a bug report, but I wanted to check first to make sure I'm not
>> missing something obvious like a setting or something.
>> Ctrl-L does not do anything for me. The button in the tool bar works fine.
>> I'm on Ubuntu Lucid, Zim 0.47
>> 
> Works for me. Maybe you accidentally changed the keybinding for this menu 
> item?
>
>   
Doesn't work for me neither. I also use Ubuntu Lucid, Zim 0.47.

If I edit "~/.config/zim/accelmap "  I find:

; (gtk_accel_path "/PageView/insert_link" "l")

I've assumed ; means comment, and tried to remove it, but control+l
still doesn't work, and the file reverts backs to its original status
after starting zim again.

Regards

___
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] cherrytree

2010-05-11 Thread Pablo Angulo
El 11/05/10 20:54, nomnex escribió:
>   Hi,
> The page says it supports simple text tables.
>   

That works fine.

> Have you tried it - how does it compare to Zim?
>   
It has tables and syntax highlighting, but lacks many features in zim.
In general, cherrytree looks smaller. As a first impression, zim feels
much wikier, and it doesn't look like cherrytree can handle as bigs
notebooks as zim. Nicest thing is: both are written in python+gtk and is
also gpl. Hopefully the code can be shared.

> Not sure if I am found of the apples though?
>   
Which apples? You mean the cherries?

Regards

___
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] cherrytree

2010-05-11 Thread Pablo Angulo
I found an application similar to zim: did you know cherrytree?

http://open.vitaminap.it/en/cherrytree.htm

___
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] Problem with add image FileDialog and Image Filter

2010-03-31 Thread Pablo Angulo
s...@z107.de escribió:
> Hi,
>
> I have a problem with the add image dialog, but I do not know if this is
> a bug or a misconfiguration on my side, since the dialog works as
> expected on another (windows xp) PC.
>   
It also works in my ubuntu 9.10, zim 0.46.



___
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] Managing the notebook list

2009-11-29 Thread Pablo Angulo
Dotan Cohen escribió:
> 1) I think that "notes" is the wrong term here, even if Zim has been
> using it historically.
>   
Maybe a "notebook" is a kind of "document", and you can use
XDG_DOCUMENTS_DIR. Anyway, I only use one notebook.
> 2) Is this a freedesktop file or a Gnome file?
>   
I'd say it's freedesktop. I learned about it in the xfce docs, which
tends to follow freedesktop standards and:
http://en.wikipedia.org/wiki/Xdg
redirects to freedesktop.

___
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] Managing the notebook list

2009-11-29 Thread Pablo Angulo
Jaap Karssenberg escribió:
> I have been thinking about this a bit and it seems to me that it would
> be good if zim searches for notebooks in certain standard locations...
> Any thoughts on this ?
Unfortunately, there seems to be no standard directory for notes in 

.config/user-dirs.dirs

It would be interesting to read the directory from this config file
instead of hard coding it. This way it can get translated, for example.
But I don't know if you can just add a new one or what.

Regards

___
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] Online storage

2009-11-20 Thread Pablo Angulo
Roberto Suarez Soto escribió:
>   Someone should program a FUSE filesystem based on rsync+ssh. That
> would be a nifty online storage :-)
>   
What's the advantage of rsync+ssh with respect to ssh alone (mounting
remote folders with sftp)?


___
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] Pyzim beta1 release

2009-11-12 Thread Pablo Angulo
It's there now

Pedro escribió:
> Just a reminder... I am not sure if this got forgotten or if it's on
> its way, but when i checked the alpha version the search function was
> missing.
>
> Pedro
>
>
>
> On Thu, Nov 12, 2009 at 8:57 AM, Jaap Karssenberg
>  wrote:
>   
>> On Thu, Nov 12, 2009 at 8:47 AM, Dotan Cohen  wrote:
>> 
 What is still missing:
 * Version Control plugin(s)
 * Tray Icon plugin and background daemon

 
>>> If that is all that is missing, then I will try to find some time for
>>> it this weekend.
>>>   
>> That is all that is obviously missing, probably there is many subtle things
>> that still need polishing. Judging from bug reports I see coming in, I'm not
>> done yet with this branch :S But it is good to have more people looking at
>> it and create a work list of items that need fixing that way.
>>
>> 
 If you want to help with documentation, have a go at improving the
 manual
 and let me know.

 
>>> Should I just send to you the changes? I sent a recommendation for
>>> updating the Zim description for the .deb installer about a week or
>>> two ago, did you see that message (it was a reply to an older message
>>> on the subject).
>>>   
>> Yeah I saw the mail, thanks for that, I incorporated it in part in the new
>> description for this release.
>>
>> As for the manual, you can just edit it in zim itself and send me the patch
>> (diff -ru old/ new/) - or you can submit a bazaar branch to launchpad with
>> the changes.
>>
>> 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
>
>
>   

___
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] faster creation of notes

2009-07-07 Thread Pablo Angulo
Jaap Karssenberg escribió:
> The enhanced key bindings could be implemented in zim relatively
> easily. You might want to have a go hacking this in the pyzim port.
> The template part need a little bit more work as we need  a proper
> place to store templates. But just using a namespace is ok for a
> prototype. (OK, the custom treemodel looks scary, but just adding a
> new page to the index should make it show up in the tree.)
I'm already reading pyzim, trying to get a feeling of it. Maybe trying
to make small changes is a good idea.
>
> Two questions though:
> 1) Can we use different key-bindings ?
Sure, Jaap. No particular reason for choosing those ones.
> 2) Can we keep the templates but not have the double editing step.
>
> Reason is that I feel this will be real confusing behavior if you do
> not expect it. Also you might accidentally have a page of the same
> name as a template and have a conflict.
>
> My suggestion would be to use some syntax like "tempalte: pagename" to
> create a page from a template. E.g. typing "book: Snowcrash" would
> create a page "Snowcrash" using the template "book".
That would be definitely be better.

Other idea is: use Tab instead of Enter for the template, so that Enter
always builds the note with that name, but Tab will load the template
and clear the name, or do nothing if the current word is not a template.
The tab key is commonly associated to snippet expansion.

Regards


___
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] faster creation of notes

2009-07-07 Thread Pablo Angulo
  Hello:
  In my process of learning python + gtk, I've created a zim mock up to
try out a concept. The idea is to make creation of notes a bit faster,
to achieve mind-map speed, but keeping the current treeview used in zim.
This is how it works:

  * Use arrows to move in the treeview, enter to select a note and
control+space to switch to the editor and back, as usual
  * Use alt+arrows to create notes within the TreeView, using the
editable property of this widget. (alt+left for children, alt+down for
sibling)
  * When there are children of the Template folder, if a new note is
created, you might type the template name and hit enter. Then the text
from the template is copied to the new note, and the cell will become
editable one more time so that you can introduce the real name of this note.

  There are two files attached (unless trimmed by the mail manager, in
which case you can copy and paste the files at the end of the email). It
is run by writing:

python zimmindmap.py

  The other file was generated by glade: it is a gtkbuilder file and it
doesn't need any libraries. It has a mock up menu which is totally
useless, and probably in spanish. The template part should really be
better with autocompletion, and maybe it should use grandchildren of the
Templates folder into, but anyway this is just a mockup.

  Do you like this way of creating notes, and/or using Templates?

Regards

--- zimmindmap.py
---
import sys
import gtk

class ZimMindMap(object):
""" mock up of zim to test an idea """
temptitle = 'Title'
templatechar = '.'
   
def __init__ (self):
""" Class initialiser """
self.notes={}
self.current_note = None
   
self.builder = gtk.Builder()
self.builder.add_from_file("zimmindmap.glade")
   
self.window = self.builder.get_object("mainwindow")
self.noteeditor = self.builder.get_object("noteeditor")
self.noteindex = self.builder.get_object("index")

self.datamodel = gtk.TreeStore(str)

self.cellrender=gtk.CellRendererText() # renderer para la
primera columna
self.title_column = gtk.TreeViewColumn('Notes')
self.title_column.pack_start(self.cellrender,True)
self.title_column.add_attribute(self.cellrender, "text", 0)
self.noteindex.append_column(self.title_column)

uno = self.newnote('Hello1')
dos = self.newnote('Hello2')
self.newnote('Hello11',uno)
self.newnote('Hello12',uno)
self.newnote('Hello21',dos)
self.newnote('Hello22',dos)
templates_iter=self.newnote('Templates')
self.templates_root = self.datamodel.get_path(templates_iter)

self.noteindex.set_model(self.datamodel)
self.builder.connect_signals(self)  

def newnote(self, title, parent=None, texto=None):
it = self.datamodel.append(parent, (title,))
path = self.datamodel.get_path(it)
if not texto:
texto=title
self.notes[path] = texto
return it

def delnote(self, path):
iter=self.datamodel.get_iter(path)
self.datamodel.remove(iter)
del self.notes[path]

def on_mainwindow_destroy(self,widget,data=[]):
gtk.main_quit()

def on_mainwindow_key_release_event(self,widget,data=[]):
if data.keyval==32  and (data.state& gtk.gdk.CONTROL_MASK):  
#Control+space
if self.noteeditor.is_focus():
self.noteindex.grab_focus()
else:
self.noteeditor.grab_focus()
return True
def on_index_key_press_event(self,widget,data=[]):
#65361: left, 65362:up, 65363: right, 65364:down, 65293:Enter,
32:space
if data.keyval==65363:   #right
current_row,current_column=widget.get_cursor()
current_iter=self.datamodel.get_iter(current_row)
widget.expand_row(current_row,False)
if data.state & gtk.gdk.MOD1_MASK:#Alt+Left
new_note_iter=self.newnote(ZimMindMap.temptitle,
parent=current_iter)
new_note_path=self.datamodel.get_path(new_note_iter)
#widget.expand_row(new_note_path,True)  #doesn't work if
current_row only has just this child
widget.expand_row(current_row,True) #not the right
thing, but works
self.cellrender.set_property('editable',True)
   
self.cellrender.connect('edited',self.edited_cell,self.datamodel)
self.noteindex.set_cursor(new_note_path,
focus_column=self.title_column ,start_editing=True)
elif data.keyval==65364 and (data.state&
gtk.gdk.MOD1_MASK):#Alt+down
current_row,current_column=widget.get_cursor()
current_iter=self.datamodel.get_iter(current_row)
parent_iter=self.datamodel.iter_parent(current_iter)
parent_path=self.datamodel.get_path(parent_iter) if
parent_iter else ()
new_note_i

Re: [Zim-wiki] Let's ride the anti-tomboy wave!

2009-07-03 Thread Pablo Angulo
Dotan Cohen escribió:
>> * right click on a folder and "send to email recipient". Both thunar and
>> nautilus compress the folder and send it by email. The receiver opens
>> the attachment with the default application for compressed files, drags
>> and drops onto his zim notes folder and voila, my notes have been merged
>> with hers. That's a power trick for the average Joe.
>> 
>
> It would be valid if Zim notebooks were single files, that would open
> in Zim when clicked on.
>
>   
But then you couldn't select a folder, you would have to send the whole
notebook. I share my computer tricks with some pals, my work with others.
>> * Go to the Documents folder, select all pictures, use nautilus-script
>> to reduce the resolution of all of them
>> 
>
> This has nothing to do with Zim.
>
>   
This has to do with the fact that zim files are plain files, not
"notebooks" in a special zim format with embedded images.
>> * Go to a folder, select all notes, open with geany, do global replace
>> of a word in all the notes
>>
>> 
>
> This has nothing to do with Zim.
>   
This has to do with the fact that zim files are plain files, not
"notebooks" in a special zim format with text scattered around the document.

Sure, the four tricks we came up with can be done in a hidden folder,
but you asked "why would the user want to see this data?", and these are
examples.

The only matter here is what hidden folders are for. I'll save you some
time: it's not in the gnome HIG:

http://developer.*gnome*.org/projects/gup/hig/2.0/hig-2.0.pdf

Now Jaap thinks they should be for configuration, not data. This is a
general principle that is not intrinsically better than the contrary, it
has only the meaning we give to it. But people takes decisions based on
this principles, like hiding the folders, which makes it more difficult
to my fellow joe to find the notebook folder I asked him for.

We need to follow guidelines if thousands of people develop interacting
software independently. And placing data in the configuration folders is
still the exception, not the rule.

Regards

___
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] Let's ride the anti-tomboy wave!

2009-06-30 Thread Pablo Angulo
How about the following?:

* Implement a "migrate notebook" feature, which consists of "move the
files"+"adjust config files"
* Choose a directory like ~/Notes. If it is taken, choose ~/zim, or
~/Notes-012131231, or whatever that is not taken. Place there the first
notebook.
* Let the first note have some text telling something about zim,
editable as a regular note, and with clear instructions on how to
migrate the current notebook.

Ideas, comments?


Vlastimil Ott escribió:
> Dne Út 30. června 2009 19:22:10 Jaap Karssenberg napsal(a):
>   
>> A wizard does not need to be complex. Maybe it should just say "Zim
>> needs a folder to store your notes. Which folder do you want to use as
>> your notebook ?" with a file selector and hide all the properties.
>> 
>
> What about "Zim data - $user"? I think the question is redundant... There 
> could be a simple "Did you 
> know...?" when running for the first time - we can collect some tips 
> together. Something about 
> folders (directories), notebooks, links, namespaces and so on.
> For the very first start I would prefer "run'n'write" - no questions, no 
> wizards. Just one click and 
> write. 
>
> (Of course, I would never use it, because I'm not first time user... :-D)
>
>   

___
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] Let's ride the anti-tomboy wave!

2009-06-28 Thread Pablo Angulo
Dotan Cohen escribió:
>
> In the name of semantics I do prefer the Zim approach, but I can
> understand how less technical users might prefer a word-processor
> approach. This is something to thing about.
>
>   
Sure, the zim approach is plain better, I just noted a difference.
>> * however, tomboy works right out of the box, while the first screen of
>> zim, asking to configure a notebook, requires some thinking. It's not
>> easy to understand what's the Domuent Root, or how you want to use the
>> notebooks before yuou know what the application is for. Some casual
>> users might decide not to try the application. However, once the first
>> notebook is working, anyone can learn most of zim without reading a
>> manual. I'd even say it's easier than tomboy, because the toolbar has
>> more of the good staff.
>>
>> 
>
> I will file a bug on this. Is there any technical reason why Zim
> cannot chose good defaults and let the user override them in the
> preferences afterwards? Even if files have to be moved, that can be
> handled within Zim (or not, as Jaap insists on using non-hidden files
> in the interest of letting the user manipulate them with his file
> manager).
>   
Again, the zim way is perfectly fine for me. I didn't want to reply to
your email that zim is better is every way, and put my brain to think of
some tomboy advantages, but it wasn't easy.



___
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] Let's ride the anti-tomboy wave!

2009-06-28 Thread Pablo Angulo
 Dotan, you're right. I like zim a hell of a lot more than this tomboy,
but if there's a discussion about not depending on mono, then we should
go promote zim.

  In short:
* tomboy doesn't have any feature that zim hasn't (ok, it has one: you
can choose text size)

* zim has a lot of useful features that tomboy hasn't (subfolders,
backlinks, an equation editor, a calendar, a TODO list, embedded images,
screen captures, version control)

* tomboy has some annoying bits (turn a word into a link and it will be
a link forever, you cannot choose your favourite applications for
opening links, the toolbar is less useful, the HIG way of changing
shortcuts doesn't work...)

* however, tomboy works right out of the box, while the first screen of
zim, asking to configure a notebook, requires some thinking. It's not
easy to understand what's the Domuent Root, or how you want to use the
notebooks before yuou know what the application is for. Some casual
users might decide not to try the application. However, once the first
notebook is working, anyone can learn most of zim without reading a
manual. I'd even say it's easier than tomboy, because the toolbar has
more of the good staff.

Regards

Dotan Cohen escribió:
> I have not used the Tomboy software, but it appears to be "a personal
> wiki" which is just Zim's niche. Is anyone familiar with this
> software? Where does it lack compared to Zim? What features does it
> have that Zim is missing?
>
> Zim can be marketed at "the Tomboy alternative" if it is done right. Start 
> here:
> http://news.slashdot.org/story/09/06/27/1759255/Richard-Stallman-Says-No-To-Mono
>
>   

___
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] Keyboard shortcut while Zim is running in system tray.

2009-03-18 Thread Pablo Angulo
Just set a keyboard shortcut for
zim -l

Dotan Cohen escribió:
> I'd really like a keyboard shortcut to open the Open Notebook dialog
> when there are no Zim windows open but Zim is running in the system
> tray. Is this currently possible, or should I file a feature request?
>
> Thanks.
>
>   

___
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] dump notes to mediawiki, or trac

2009-02-08 Thread Pablo Angulo
Jaap Karssenberg escribió:
> In fact the python port already has a fairly decent parser for the zim
> wiki format that can be used as a base for this kind of work. Your
> code will at least be very useful a example on how to format the trac
> output (btw. from your subject line I assume trac uses the mediawiki
> format - is that correct ?).
>
I think trac wiki format is similar to mediawiki, but there are
differences.
> I will add this piece of code to the python dev tree, so it can be
> used as a basis later.
>
The code is based in observation, I didn't try to read the full
specification of trac. If you have a parser, the whole approach is
doomed. I don't know if it's a good idea to add this code to the tree.
>>  The following python code is a hack, and it might fail on some syntax.
>> I took a choice regarding links with categories: I decided to flatten
>> zim links like [[:Software:note taking:zim|zim]] to wiki entries like
>> [Software_note_taking_zim zim].
>
> I don't know what characters are allowed in page names in trac - is
> there another character that can be used to make the hierarchy more
> obvious ? Or maybe flatten using a double "_" ?
You're right, a double "_"  is better. For mediawiki, it would be
important to take care of "mediawiki categories" too. Trac has a plugin
implemeting "tags", but it's not a standard plugin.

In a few months I'll have time to read and think about zim. I'm looking
forward to reading the python port.
Regards

___
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] dump notes to mediawiki, or trac

2009-02-05 Thread Pablo Angulo
  Hello:
 I was finally able to change the notes from zim wiki format to trac
wiki format. Just in case other people is interested, I'll post my
solution, despite its defects.

 The following python code is a hack, and it might fail on some syntax.
I took a choice regarding links with categories: I decided to flatten
zim links like [[:Software:note taking:zim|zim]] to wiki entries like
[Software_note_taking_zim zim].

  To use it, call

python trac2zim.py notebook output_folder prefix

  where prefix is a string you put before each wiki page name. It will
fill output_folder with plain text files ready to be loaded with trac-admin:

trac-admin /path/to/project wiki load output_folder

 I'll wait for the python port, read Jaap's code, and rewrite in the
future as an additional export format, if no one does it before. But, on
the meantime, I'll use this hack and solve problems manually.

 Regards

#

# -*- coding: utf-8 -*-
import re
import sys
import os

#buscaCabeceras=re.compile('(={1:5})([^=]*)(={1:5})')
def flatten(linkName):
'''Changes a zim link, possibly with categories, to a trac link

it also removes accents and other spanish special characters
'''
#remove final ':' character and
name=linkName[:-1] if linkName[-1]==':' else linkName
return removeSpecialChars(name.replace(':','_').replace(' ','_'))

def removeSpecialChars(s):
'''certain trac installation reported problems with special chars

other trac systems loaded all files without problem

the problem is only for file names and wiki pages names, not for content
'''
return
s.replace('á','a').replace('é','e').replace('í','i').replace('ó','o').replace('ú','u').replace('ñ','n').replace('Á','A').replace('É','E').replace('Í','I').replace('Ó','O').replace('Ú','U').replace('Ñ','ñ')

cabecera=re.compile("(={1,6})([^=\/]+?)(={1,6})")
inlineVerbatim=re.compile("''([^']+?)''")
#~ multilineVerbatim=re.compile("\n[\t](.+?)\n")
negrita=re.compile('\*\*([^\*]+?)\*\*')
italic=re.compile('\/\/([^\/\n\]]+?)\/\/')
bracketedURL=re.compile('\[\[(http:\/\/[^\|]+)\|([^\|]+?)\]\]')
#TODO: separar links relativos y absolutos
simpleRelLink=re.compile('\[\[([^:][^\|]+?)\]\]')
namedRelLink=re.compile('\[\[([^:][^\|]+?)\|([^\|]+?)\]\]')
simpleAbsLink=re.compile('\[\[:([^\|]+?)\]\]')
namedAbsLink=re.compile('\[\[:([^\|]+?)\|([^\|]+?)\]\]')
images=re.compile('([^\{])\{\{\/(.+?)\}\}')
def translate(nota,prefix1,prefix2):
'''Takes a note in zim format and returns a note in trac format
'''
#duplicate all line breaks
nota=nota.replace('\n','\n\n')
# Headings
mm=cabecera.search(nota)
lista=[]
lastIndex=0
while mm:
lista.append(nota[lastIndex:mm.start()])
gg=mm.groups()
iguales=len(gg[0])
lista.append("="*(7-iguales)+gg[1]+"="*(7-iguales))
lastIndex=mm.end()
mm=cabecera.search(nota,lastIndex)
lista.append(nota[lastIndex:])
nota=''.join(lista)
 
#inlineVerbatim
nota=inlineVerbatim.sub("{{{\\1}}}",nota)
#multiline verbatim
#TODO
#bold
nota=negrita.sub("'''\\1'''",nota)
#italic
nota=italic.sub("''\\1''",nota)

#bracketedURL
nota = bracketedURL.sub("[\\1 \\2]",nota)
#~ #simple links
#~ nota=simpleLink.sub("[wiki:\\1]",nota)
#~ #named links
#~ nota=namedLink.sub("[wiki:\\1 \\2]",nota)
#simple relative links
mm=simpleRelLink.search(nota)
lista=[]
lastIndex=0
while mm:
lista.append(nota[lastIndex:mm.start()])
gg0=mm.groups()[0]
lista.append("[wiki:"+prefix1+prefix2+flatten(gg0)+" "+gg0+"]")
lastIndex=mm.end()
mm=simpleRelLink.search(nota,lastIndex)
lista.append(nota[lastIndex:])
nota=''.join(lista)

mm=simpleAbsLink.search(nota)
lista=[]
lastIndex=0
while mm:
lista.append(nota[lastIndex:mm.start()])
gg0=mm.groups()[0]
lista.append("[wiki:"+prefix1+flatten(gg0)+" "+gg0+"]")
lastIndex=mm.end()
mm=simpleAbsLink.search(nota,lastIndex)
lista.append(nota[lastIndex:])
nota=''.join(lista)

#named relativelinks
mm=namedRelLink.search(nota)
lista=[]
lastIndex=0
while mm:
lista.append(nota[lastIndex:mm.start()])
gg=mm.groups()
lista.append("[wiki:"+prefix1+prefix2+flatten(gg[0])+" "+gg[1]+"]")
lastIndex=mm.end()
mm=namedRelLink.search(nota,lastIndex)
lista.append(nota[lastIndex:])
nota=''.join(lista)

#named absolute links
mm=namedAbsLink.search(nota)
lista=[]
lastIndex=0
while mm:
lista.append(nota[lastIndex:mm.start()])
gg=mm.groups()
lista.append("[wiki:"+prefix1+flatten(gg[0])+" "+gg[1]+"]")
lastIndex=mm.end()
mm=namedAbsLink.search(nota,lastIndex)
lista.append(nota[lastIndex:])
nota=''.join(lista)

#lists
nota=nota.replace('\n* ','\n * ')

#images
nota=images.sub("\\1[[I

[Zim-wiki] dump notes to mediawiki, or trac

2009-02-02 Thread Pablo Angulo
  Hello,
  Before I put my brains to the task: has anyone any experience in
dumping a whole notebook into a web based wiki like mediawiki, or trac?
  Both of them use sql databases, and a syntax similar to that of zim.
trac has a command line tool called trac-admin which might make it
trivial. I don't know of any such tool for mediawiki.
  Regards
Pablo

___
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] Document folder and document root - difference

2009-01-26 Thread Pablo Angulo
Hello, Dotan:
I'd like to disagree, but not too much:

Dotan Cohen wrote:
> ...what other application can read the wiki-style code anyway...
Well, I like about zim that it's just text files I can hack using very
simple string manipulation in python, and edit with any editor just in case.
Another example: zim doesn't have the "replace in all open files"
capabilities of a text editor like geany, and I've used geany to do the
job for zim (nothing important, just to clean my own mess).

> there is no need for it to be anywhere other than a hidden .zim directory.
>
>   
on the other hand, I can also mess with the files if they are in the
.zim folder.

Regards
Pablo


___
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] Tagging - idea and what I'm missing

2009-01-26 Thread Pablo Angulo
I second that: it's an excellent idea
Pablo

Vlastimil Ott wrote:
>
> That's idea - tagging the content. The way the TODO feature goes, is
> perfect and great. And very useful for me.

___
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