Re: [Zim-wiki] Change editor for Edit Source

2013-02-08 Thread Svenn Are Bjerkem
On 8 February 2013 19:51, Steve Chadsey schad...@gmail.com wrote:
 Hello,

 I'm running zim 0.59 on Ubuntu 12.04.1.  Starting with the 0.57
 release, the editor that is selected for Tools-Edit Source is not the
 one I want.  Prior to 0.57, there was an Applications tab in the
 preferences dialog, in which I could specify my preferred text editor.
  That is gone now.  Looking at the documentation, I see there is a
 reference to a Configure Applications dialog, but I don't see that
 option in any of the menus.

Isn't that the Custom tools in the Tools menu? But you can't set
the default editor there.


 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'm Using LXDE on Debian/Sid.

check
.config/zim/preferences.conf:

[GtkInterface]
text_editor=xdg-open

xdg-open is controlled by various mime types in
.local/share/applications/mimeapps.list

-- 
Svenn

___
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-08 Thread Steve Chadsey
On Fri, Feb 8, 2013 at 1:16 PM, Svenn Are Bjerkem
svenn.bjer...@googlemail.com wrote:
 On 8 February 2013 19:51, 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'm Using LXDE on Debian/Sid.

 check
 .config/zim/preferences.conf:

 [GtkInterface]
 text_editor=xdg-open

 xdg-open is controlled by various mime types in
 .local/share/applications/mimeapps.list

Mine:

  text_editor=gvim

gvim is the editor I want.  gedit is what I'm getting.

Changing the pref to

  text_editor=xdg-open

(after closing zim) has no effect.  From the command line, using xdg-open
on a .txt file does launch gvim, so the mime setting should be good.

Setting the pref to the full path of vim also does not solve it.

Other ideas?

Thanks,
-- 
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] Fwd: Change editor for Edit Source

2013-02-08 Thread Jaap Karssenberg
On Fri, Feb 8, 2013 at 7:51 PM, Steve Chadsey schad...@gmail.com wrote:
 I'm running zim 0.59 on Ubuntu 12.04.1.  Starting with the 0.57
 release, the editor that is selected for Tools-Edit Source is not the
 one I want.  Prior to 0.57, there was an Applications tab in the
 preferences dialog, in which I could specify my preferred text editor.
  That is gone now.  Looking at the documentation, I see there is a
 reference to a Configure Applications dialog, but I don't see that
 option in any of the menus.

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

Do you have the default text editor set in the file browser ? (I
believe it is Thunar on XFCE)

If that does not help, just edit
~/.local/share/applications/defaults.list and add a line like:

  text/plain=gvim.desktop

That should turn gvim the default text editor for any application
using the XDG standards.

Regards,

Jaap

P.S. the advise Svenn gave applies for older version of zim but is no
longer true for the current version

___
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