[Zim-wiki] test mail zim-wiki

2013-11-05 Thread Sylvain Viart

Hi,

Do you receive this mail?

Regards
Sylvain.
___
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] Using bash scripts as custom tools

2013-11-05 Thread Sylvain Viart

Hi,

Le 30/10/2013 08:52, Jaap Karssenberg a écrit :

bash -c 'for i in %d/*.JPG; do echo {{./$i?width=700}}  %s; done


Could you put, some lines of what output you expect?

%d and %s and, even %letter, is not a bash feature…

What does this %% means to you?

A small script (read: save the commands into a text file) will do the 
trick easily, hopefully. :-)


Of course you can use any other programming language to accomplish the 
job, are you under GNU/linux or windows?


As a teaser, here's the command which list all the jpg of the current dir:

for f in `ls | grep -i JPG`; do echo {{./$f?width=700}}; done

it ouputs:

{{./planche-photo.jpg?width=700}}

Note that:

ls | grep -i JPG


is a sub command which actually lists the jpg file with case 
insensitive, under GNU/Linux it's matter.


Regards,
Sylvain.

___
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] screen capture toolbar button (feature request)

2013-12-22 Thread Sylvain Viart

Hi,

On 23/12/2013 01:28, Qiang Fang wrote:


I used to use my note keeper in windows, the screen capture button is 
very handy. Eg. if you want to capture a picture in pdf files, you can 
open the file in the background, click the button, zim minimise then 
let you select the screen area, once a rectangular are is selected, it 
is inserted in the cursor position.




Under Linux, with xfce I can see the way to do it:

 * with zim's custom script
 *   + screenshoter
 * + a script converting it to pdf or what ever...

It could do the trick.

I already setup a script for the screenshoter linked on the « open with 
» action which:


1. name the screen capture my way
2. upload the picture on a FTP sever
3. convert into a URL
4. and push the URL into the clipboard for easy pasting as an image on
   a forum for example.


Under windows, could be achieved the same way but tools may be harder to 
setup to work together.


I currently use screenshoter to copy the area in the clipboard and paste 
it into zim.

Could you give a reason to do it in pdf instead?

I remember GreenShot http://getgreenshot.org/ under windows for screen 
capture...

May be a good start.

Regards,
Sylvain.

___
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] Multiple Locations

2014-01-09 Thread Sylvain Viart

Le 09/01/2014 17:31, Johannes Ernst a écrit :
You could use Owncloud's WebDAV functionality to mount a directory on 
all machines you want to use Zim on, and have Zim store its files 
there. Downside: only works when you have network access. Upside: no 
third party in the loop, open-source.


Alternatively, you could use something like BitTorrent Sync to 
synchronize Zim's data directories across machines. This works 
off-line as well. Downside: not open-source. Upside: no third party in 
the loop (like in case of Dropbox etc.)


Couldn't git (control version system) also achieves this?

Could computing, can raise privacy difficulties...

Just a hint,
Regards,
Sylvain.
___
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] screen capture toolbar button (feature request)

2014-01-12 Thread Sylvain Viart

Hi Eric,

Did you manage to produce some nice hack to share?

Any idea about « hand drawing » with some apps and a tablet?

Regards,
Sylvain.

On 23/12/2013 01:28, Qiang Fang wrote:


I used to use my note keeper in windows, the screen capture button 
is very handy. Eg. if you want to capture a picture in pdf files, 
you can open the file in the background, click the button, zim 
minimise then let you select the screen area, once a rectangular are 
is selected, it is inserted in the cursor position.




Under Linux, with xfce I can see the way to do it:

  * with zim's custom script
  *  + screenshoter
  * + a script converting it to pdf or what ever...

It could do the trick.

I already setup a script for the screenshoter linked on the « open 
with » action which:


 1. name the screen capture my way
 2. upload the picture on a FTP sever
 3. convert into a URL
 4. and push the URL into the clipboard for easy pasting as an image
on a forum for example.


Under windows, could be achieved the same way but tools may be harder 
to setup to work together.


I currently use screenshoter to copy the area in the clipboard and 
paste it into zim.

Could you give a reason to do it in pdf instead?

I remember GreenShot http://getgreenshot.org/ under windows for 
screen capture...

May be a good start.


___
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] detection of repetitions highlighter?

2014-04-10 Thread Sylvain Viart

Thank you,

Le 09/04/2014 08:49, Jaap Karssenberg a écrit :
Well, you would have to implement the detection algorithm itself. 
Probably not too hard as long as you look for literal matches.


I'll also look at LanguageTool Development 
https://languagetool.org/development/


Could it be interesting to implement it as a web-service?
I didn't find open-source repetition detector snippet for now, if 
someone have seen one?

Or I will write some...

I'm using Zim to write a novel, it's really a great tool for that, in fact!

French doesn't support repetition well. It's a common exercise to remove 
them. ;-)



Would it be easy to highlight  repetitive words?

http://www.repetition-detector.com/?p=online


I would suggest with first implementing the algorithm and make it 
report matches based on a text file, wrapping in a zim plugin and do 
the highlighting is then step two.


Could you give me what filename is involved in this highlighting process?
Or a keyword to grep.

Regards,
Sylvain.

___
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] insert a comment or an annotation about the content of a page

2014-04-22 Thread Sylvain Viart

Hi,

I there a trick to insert a comment or an annotation about the content 
of a page?


Or a way to make a margin or a column may be.
It could also be a new tab on the left, but one for each page...

Regards,
Sylvain.

___
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] insert a comment or an annotation about the content of a page

2014-04-29 Thread Sylvain Viart

Hi,

Le 29/04/2014 22:34, Jaap Karssenberg a écrit :
Have a look at this bug report for a similar request: 
https://bugs.launchpad.net/zim/+bug/1108760



On Tue, Apr 22, 2014 at 8:43 AM, Sylvain Viart launch...@ledragon.net 
mailto:launch...@ledragon.net wrote:


I there a trick to insert a comment or an annotation about the
content of a page?




Great, I gonna test it. :-)

I may have missed it, but which version of zim is necessary for this 
code to work?


Regards,
Sylvain.
___
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] Zim dokuwiki syntax, pandoc converting latex and pdf with line number!

2014-05-04 Thread Sylvain Viart

Hi,

Do you know the amazing pandoc? A multi text format converter.

http://johnmacfarlane.net/pandoc/

But it doesn't support dokuwiki yet...
Zim's manual said: Most of this syntax is inspired by the dokuwiki syntax

I'm playing to auto build a PDF passing a filter with Latex's magic 
inside. (numbering lines!) :-D


I first tested pandoc directly on the .txt.

simple PDF export (does require heavy package install under xubuntu ~ 
350MB or more)

sudo apt-get install texlive-fonts-recommended pandoc texlive-latex-extra

$ sed '1,7 d' 01.chapter.txt | pandoc -S -o out.pdf

Works great even with special characters « » - ...

The .tex export from zim in Article template doesn't compile with such char.

zim --export --output=o.tex --format=latex --template=Article 
~/Notebook/Novel :Novel:01.chapter 1


My first tests used almost no zim formating. This is for novel writing.

I tested my formater against zim documentation.

This formater use a modified .tex output and a \usepackage{eledmac} 
(many more MB of deb packages required to make it work) which counts 
line number in the generated pdf!


Really cool...


the part of the code which adds the latex macro for numbering lines 
looks like:


# remove Zim's header, convert speaker part too
sed -e '1,4 d' $source_page -e '/^--- / a\\n' \
| pandoc -s -o ${basepage}.tex
# edit inplace -i
sed -i -e '/^\\usepackage{fixltx2e}/ a\\\usepackage{eledmac}' \
-e '/^\\begin{document}/ 
a\\\begingroup\n\\beginnumbering\n\\autopar '\

-e '/^\\end{document}/ i\\\endnumbering\n\\endgroup' \
${basepage}.tex

latex ${basepage}.tex
dvipdf ${basepage}.dvi


See this generated pdf for an example. As you can see the format is broken.

30 days link: http://dl.free.fr/fniKVY1ou

So, I've a question. Which Latex converter should I use?

Hacking the Zim's export template? or filter the txt file to some more 
pandoc friendly syntax?


Regards,
Sylvain.



___
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] sharing: custom tools to stat word count in novel writing with zim

2014-05-05 Thread Sylvain Viart

On 03/05/2014 16:41, Sylvain Viart wrote:

I will probably share it on some website...

Some times ago I written a small shell script which performs some 
stats useful for novel writer...


I put it here: 
https://github.com/Sylvain303/zim-wiki/tree/master/custom_tools/count_words


Sylvain.
___
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] way slow on Ubuntu

2014-05-09 Thread Sylvain Viart

Hi Hans,

I guess…

Le 09/05/2014 16:03, hans...@gmail.com a écrit :

Just created a new notebook and WOW is that nice and snappy.

Confirmed it wasn't the fact it was on an encfs filesystem, nor that
dropbox is sync'ing while things are unencrypted

I guess I just let my main tree get too large?


could you give use a idea of your notebook size?

# all files:
$ find ~/Notebooks/Notes/ | wc -l
404
# folders:
$ find ~/Notebooks/Notes/ -type d | wc -l
79
# pasted images
$ find ~/Notebooks/Notes/ -name pasted_image\* | wc -l
43
# stats of all .txt files (lines words character)
$ find ~/Notebooks/Notes/ -name \*.txt -print0 | wc --files0-from=- | 
grep 'total$'

12162 65938 523762 total

You can prefix command with time:

time find ~/Notebooks/Notes/ -name \*.txt -print0 | wc --files0-from=- | 
grep 'total$'

12162 65938 523762 total

real0m0.081s
user0m0.060s
sys0m0.024s


Regards,
Sylvain.




___
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 template

2014-06-06 Thread Sylvain Viart

Hi Paulo,

Le 06/06/2014 20:46, Paulo van Breugel a écrit :
I created an export template for Zim that creates pages with a 
responsive design


Looks good.

If you want to give it a try, check out this blogpost: 
http://pvanb.wordpress.com/2014/06/06/a-zim-wiki-export-template-for-a-adaptive-website/.


May the doc how to install it in Zim.

Here is a doc draft:

The doc (Help - Content) about templating in Zim said:

templatecan be found:
|~/.local/share/zim/|

$ ls ~/.local/share/zim/
symbols.list templates
$ ls ~/.local/share/zim/templates/
html latex

cd ~/.local/share/zim/templates/html
$ git clone https://github.com/ecodiv/Zim-export-template-responsive.git
Clonage dans 'Zim-export-template-responsive'...
$ ln -s Zim-export-template-responsive/ecodiv.html .

The Template Editor Dialog can be accessed with the menu item /Edit/ 
- /Templates/. It will show a list of templates

that are available, and allows you to view and edit them.

Exporting:

File - Export
Select Format HTML / Template ecodiv

Finish...

I don't know how to take care about ecodiv folder (not tryed very hard...)

I could write a program that is an upload custom script of the export to 
the web site...

1 click publish button.

Regards,
Sylvain.
___
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 template

2014-06-08 Thread Sylvain Viart

Hi,

Le 07/06/2014 12:12, Paulo van Breugel a écrit :


Why don't you pull the files to a temporary folder, and copy the 
ecodiv.html and ecodiv folder to the ~/.local/share/zim/templates/html?



If you want to give it a try, check out this blogpost: 
http://pvanb.wordpress.com/2014/06/06/a-zim-wiki-export-template-for-a-adaptive-website/.


May the doc how to install it in Zim. […]


I've made a pull request on github, for the doc based on our exchange. 
Could be useful for interested user.

Let me know.

Regards,
Sylvain.

___
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] page path in clipboard?

2014-06-12 Thread Sylvain Viart

Hi

Is it possible to have the current page fullpath in the clipboard?
Is there any keyboard shortcut ?

Could be a right click trick like rename or something.

The doc said:

So the name Foo:Bar refers to a page names Bar that is nested below 
a page Foo.


+ Foo
`--- Bar


I would like to get the string Foo:Bar...

Regards,
Sylvain.

___
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] page path in clipboard?

2014-06-13 Thread Sylvain Viart

Le 12/06/2014 22:53, hans...@gmail.com a écrit :

Right-click on the left outline nav, select copy


Great… I missed that, Thanks a lot.

Sylvain.

___
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] change default unchecked option insert link on move selected text

2014-06-13 Thread Sylvain Viart

Hi,

I'm trying to use Zim for GTD (Geting Things Done)

The right click move selected text is quite a good tool, moving a task 
to some other page.
But the popup have a default option selected. Leave link to new page. 
Could be useful, but for my own usage I'd rather prefer to have this 
option unselected by default.


Is it possible?

If not could you point me the code, and I'm gonna try to make a patch.

screenshot zim

Regards,
Sylvain.
___
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 default unchecked option insert link on move selected text

2014-06-13 Thread Sylvain Viart

On 13/06/2014 11:10, Sylvain Viart wrote:
The right click move selected text is quite a good tool, moving a 
task to some other page.
But the popup have a default option selected. Leave link to new page. 

[...]

If not could you point me the code, and I'm gonna try to make a patch.

Seems hard coded.

Tried to change, with no success...


 class MoveTextDialog(Dialog)

/usr/share/pyshared/zim/gui/pageview.py
/usr/lib/python2.7/dist-packages/zim/gui/pageview.py = same symlink...

seeking for Leave link to new page
self.uistate.setdefault('link', True) = self.uistate.setdefault('link', 
False)


lrwxrwxrwx 1 root root 49 mai 3 2013 
/usr/lib/python2.7/dist-packages/zim/gui/pageview.py - 
../../../../../share/pyshared/zim/gui/pageview.py






___
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 default unchecked option insert link on move selected text

2014-06-16 Thread Sylvain Viart
Le 13/06/2014 21:38, Jaap Karssenberg a écrit :
 It is not hard-coded. THe code you refer is the default value, but
 after you use it, the dialog *should* remember your last choice.

The first choice I would guess… So the default, may be is this case.
I unchecked many dozen of times.

 Have a look at the config file NOTEBOOK/.zim/state.conf - there
 should be a section [MoveTextDialog] with a parameter link=False.

It simply works!
Thanks. :)

A keyboard shortcut… is it too much to ask?

Regards,
Sylvain.

___
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] Modifying selected text bbcode…

2014-06-18 Thread Sylvain Viart
Le 18/06/2014 05:07, Jaap Karssenberg a écrit :
 sort lines plugin can be an example how to do[…]
[start hacking to perform our own custom modification on selected text]

 Another option is to patch the code calling custom tools and allow a
 custom tool to filter the selected text from stdin to stdout and have
 zim replace the selection when you call it.

Sounds pretty cool. Could you point me some entry point in the code so I
can start hacking may be.
Is there a wish list tickets around or something?

Regards,
Sylvain.

___
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] Modifying selected text bbcode…

2014-06-18 Thread Sylvain Viart
Le 18/06/2014 09:00, Jaap Karssenberg a écrit :
 The quick hack would be to modify _exec_custom_tool() in
 zim/gui/__init__.py
 If this works, also the custom tool dialog (defined in
 zim/gui/customtools.py) should be updated to add that key as a checkbox.

 I can also imagine a similar key to insert output text at the cursor.
 Please try it out and let me know if you get it to work.


Some bugs… in editing the custom tools back to set in non read only.
No more time to debug it more. Would be also nice to make the debug
popup resizable.


Tools  Custom Tools

It may be as dummy as lovely indentation errors…

I checkouted a bazaar version:
$ bzr branch lp:zim

I also guess I must make a backup copy of my existing zim notebooks /
config.

This is zim 0.60
Platform: posix
Locale: fr_FR UTF-8
FS encoding: UTF-8
Python: (2, 7, 6, 'final', 0)
Gtk: (2, 24, 23)
Pygtk: (2, 24, 0)
No bzr version-info found

=== Traceback ===
  File /home/sylvain/code/zim/zim/gui/__init__.py, line 882, in
_action_handler
method(*arg)
  File /home/sylvain/code/zim/zim/gui/__init__.py, line 2097, in
manage_custom_tools
CustomToolManagerDialog(self).run()
  File /home/sylvain/code/zim/zim/gui/customtools.py, line 36, in __init__
self.listview = CustomToolList(self.manager)
  File /home/sylvain/code/zim/zim/gui/customtools.py, line 111, in
__init__
self.refresh()
  File /home/sylvain/code/zim/zim/gui/customtools.py, line 130, in refresh
text = 'b%s/b\n%s' % (encode_markup_text(tool.name),
encode_markup_text(tool.comment))
  File /home/sylvain/code/zim/zim/gui/widgets.py, line 119, in
encode_markup_text
return text.replace('', 'amp;').replace('', 'gt;').replace('',
'lt;')
AttributeError: 'NoneType' object has no attribute 'replace'


___
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] Modifying custom tool to handle selected text

2014-06-18 Thread Sylvain Viart
Dev post with a lot of code.


Bug during  Tools  Custom Tools

If the tool entry as no comment it fails…
Not with the Zim packaged.

Here is a basic stdin custom tool:

$ cat  ~/bin/zim-stdin
#!/bin/bash

tee -a ~/tmp/zim-custom.log | cat -n


nothing happen for now.
the if branch of the don't go to the pipe part.

def _exec_custom_tool(self, action):
manager = CustomToolManager()
tool = manager.get_tool(action.get_name())
logger.info('Execute custom tool %s', tool.name)
args = (self.notebook, self.page, self.mainwindow.pageview)
try:
*logger.info('custom tool %s', tool['Desktop
Entry'].get('X-Zim-ReplaceSelection'))*
if tool.isreadonly:
tool.spawn(args)
elif tool['Desktop Entry'].get('X-Zim-ReplaceSelection', False):

outputs:
DEBUG: Loading config from: ConfigFile:
/home/sylvain/.config/zim/customtools/test stdout custom
tool-usercreated.desktop
INFO: Execute custom tool test stdout custom tool
*INFO: custom tool None*
INFO: Running: ['/home/sylvain/bin/zim-stdin'] (cwd: None)
INFO: Open page: FileStorePage: Home:e-Bidouilles:Zim:test
(FileStorePage: Home:e-Bidouilles:Zim:test)
DEBUG: Already selected: (1, 9, 22, 3)


cat ~/.config/zim/customtools/test\ stdout\ custom\
tool-usercreated.desktop
[Desktop Entry]
Type=X-Zim-CustomTool
Version=1.0
GenericName=
Name=test stdout custom tool
Comment=test stdout custom tool
Exec=
TryExec=
Icon=
MimeType=
Terminal=false
NoDisplay=false
X-Zim-ExecTool=/home/sylvain/bin/zim-stdin
X-Zim-ReadOnly=false
X-Zim-ShowInToolBar=false
X-Zim-ShowInContextMenu=None
*X-Zim-ReplaceSelection=true*

I stop here for now.
___
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] Small spreadsheets

2014-08-18 Thread Sylvain Viart
Hi,

On 17/08/2014 19:44, Syv Ritch wrote:
 On Sun, 17 Aug 2014 07:57:40 +0200
 Sylvain Viart wrote:

 Is it possible to include small spreadsheets just like I do for
 images?
 You can do a screenshot, paste it, and link to the local document…
 I was hoping for actual small spreadsheets

 Which OS are you using?
 xUbuntu 14.04

There's no mechanism to embed the spreadsheet like ole on windows, for
zim I think. I dont even think it's the goal for such tool?

But the principle of the picture, I describe, could be automatized under
Linux.

You want the spreadsheet features too, calculation, formula, references,
right?
Not, only a tabular view, rows and columns.

Sylvain.

___
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] zim search speedup

2014-10-05 Thread Sylvain Viart
Hi,

My notebook is becoming a bit slow (may be my laptop is slow too)

find Notes/ -name \*.txt -print0| wc --files0-from=- |tail -1
20516 164033 1200426 total

Could you point me where is the search code of zim, so I can have a look
at which algorithm it uses.

Regards,
Sylvain.
___
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 send text input to Zim editor from outside? (Linux)

2015-02-10 Thread Sylvain Viart
Hi,

Is it not what this zim plugin do?

Name
Quick Note

Description
This plugin adds a dialog to quickly drop some text or clipboard
content into a zim page.

Another way is to do a custom tools, reread the txt buffer.

https://github.com/jaap-karssenberg/zim-wiki/wiki/Custom-tools

Sylvain.
___
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] mime types and link to libre office .ods still open gnumeric?

2016-02-12 Thread Sylvain Viart
Hi,

I've a link in a page

~/somfile.ods

(inserted with ctrl-L)

When I click on in, zim still continue to open gnumeric instead of Calc?

I modified my mine types and it works in Thunar, xfce filemanager under
GNU/Linux.

Zim 0.65

I've both Gnumeric and Clac installed.

How does Zim handle mime types?

Regards,
Sylvain.



___
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] mime types and link to libre office .ods still open gnumeric?

2016-02-12 Thread Sylvain Viart
Jaap,

Le 12/02/2016 13:20, Jaap Karssenberg a écrit :
> On Fri, Feb 12, 2016 at 12:12 PM, Sylvain Viart
> <launch...@ledragon.net <mailto:launch...@ledragon.net>> wrote:
>
> How does Zim handle mime types?
>
>
>
> Zim follows the XDG spec, so behavior should be the same as XFCE. The
> reference application to test is "xdg-open". This is a commandline
> tool to open a file according to mimetype.
>

xdg-open ~/somfile.ods

works

still not from zim. Curious. I logged out/in already…

> However fixing in zim is easy, just right-click on the link and go to
> the "open with" menu. There is a menu item to change the default.

OK, nice.

So both Gnumeric and Calc are listed.
If I follow "Customize" 3rd choice, I effectively have a choice.
Gnumeric as first.
Zim stay on Gnumeric if I choose "System default".

Do we have a bug here?

Selecting Calc works fine, even for other .ods links, thanks!

Regards,
Sylvain.
___
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] mime types and link to libre office .ods still open gnumeric?

2016-02-12 Thread Sylvain Viart
On 12/02/2016 16:25, Jaap Karssenberg wrote:
> Sure, go ahead
>
> On Fri, Feb 12, 2016 at 4:24 PM, Sylvain Viart <launch...@ledragon.net
> <mailto:launch...@ledragon.net>> wrote:
>
> Do you want I create an issue for this on launchpad?
>

https://bugs.launchpad.net/zim/+bug/1545064

Sylvain.
___
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] mime types and link to libre office .ods still open gnumeric?

2016-02-12 Thread Sylvain Viart


On 12/02/2016 15:42, Jaap Karssenberg wrote:
> Not a bug perse, as zim works as intended. However it follows the 2012
> implementation of the xdg tools. In the meantime they seem to have
> adopted another file for storing defaults, so zim could be updated
> accordingly.

Seems like something need to be updated, so.
I may have used the word ticket/issue instead of bug. ;-)

Do you want I create an issue for this on launchpad?

Regards,
Sylvain.

___
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] zim crash Gtk-ERROR **: Char offset 99 is off the end of the line

2016-07-19 Thread Sylvain Viart
Hi,

I updated the bug https://bugs.launchpad.net/zim/+bug/1598138

What about the spellchecker can we have a more verbose error?
Is the bug on the side of the spellchecker?


Regards,
Sylvain.




___
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] zim crash Gtk-ERROR **: Char offset 99 is off the end of the line

2016-07-19 Thread Sylvain Viart
Hi,

I've a permanent crash, on the same page.

(zim:9557): Gtk-ERROR **: Char offset 99 is off the end of the line

What should I look into the page to fix it?

Regards,
Sylvain.


___
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