Re: [Zim-wiki] mime type of zim notes

2011-12-05 Thread Jaap Karssenberg
All, We have had this discussion before. I'm not against changing the extension for zim notes, but only on the condition that we have a clear file extension. The .note suggested above is something I would consider as it is human readable - but not sure if we can use that if it is already in use

Re: [Zim-wiki] mime type of zim notes

2011-12-05 Thread Svenn Are Bjerkem
On 5 December 2011 15:43, Jaap Karssenberg jaap.karssenb...@gmail.com wrote: All, We have had this discussion before. I'm not against changing the extension for zim notes, but only on the condition that we have a clear file extension. The .note suggested above is something I would consider as

Re: [Zim-wiki] mime type of zim notes

2011-12-05 Thread Brendan Kidwell
My personal opinion is that this would be a good change, for the reasons currently on the table. I would use the file extension .zimpage or .zimnote. Also, what happens if you shell-launch a Zim page file from the desktop file manager or search tool using the executable zim? Does it explore up

Re: [Zim-wiki] mime type of zim notes

2011-12-05 Thread Jaap Karssenberg
On Mon, Dec 5, 2011 at 5:27 PM, Brendan Kidwell sn...@glump.net wrote: Also, what happens if you shell-launch a Zim page file from the desktop file manager or search tool using the executable zim? Does it explore up the tree to find a notebook.zim file, open the whole notebook and navigate to

Re: [Zim-wiki] mime type of zim notes

2011-12-04 Thread Michael Mulqueen
Hi Marcel, I can confirm this on Arch Linux with gvfs 1.10.1-1. I suppose it's to be somewhat expected considering it actually is a plain text file and this was a design goal of zim (to have human readable raw files). I've had a quick look over /usr/share/mime/packages/zim.xml and everything

Re: [Zim-wiki] mime type of zim notes

2011-12-04 Thread Marcel Stimberg
Hi Michael, thanks for the confirmation. I looked a bit more into the subject and found the reason for the observed behaviour -- in fact, a quite simple reason: For determining the file type, it is recommended (and implemented by xdg-open etc.) to first look at the glob pattern (i.e. normally the

Re: [Zim-wiki] mime type of zim notes

2011-12-04 Thread Svenn Are Bjerkem
On 4 December 2011 22:49, Marcel Stimberg stimb...@users.sourceforge.net wrote: Hi Michael, I think there are two solutions to this problem: * Register the .txt extension for the text/x-zim-wiki mime type -- this has the small disadvantage that for all .txt files, a time-costly (relatively

Re: [Zim-wiki] mime type of zim notes

2011-12-04 Thread Michael Mulqueen
Hi Marcel and Svenn, Obviously Jaap will have to decide as it's his project. But I'd be very much in favour of using a different file extension for zim's files. I see only benefits. We gain the ability to do a fast mimetype determination and with it the ability to integrate into things like