I added g.guessExternalEditor(), to avoid the (slightly complex imo)
@settings stuff. I'm still of the opinion that if something won't work
without @settings, it's broken and should be fixed, but that's another
rant...
The code explains the guessing logic clearly enough:
http://pastebin.com/f4a7b4460
and screenshot explains the rest.
--
Ville M. Vainio
http://tinyurl.com/vainio
Now the "open with" stuff is easy enough for a child to use (once we
enable contextmenu.py by default, hint hint ;-).
>> Now the "open with" stuff is easy enough for a child to use (once we
>> enable contextmenu.py by default, hint hint ;-).
>
> Feel free.
Done. I also disabled open_with.py in the default @enabled-plugins
Done. I also disabled open_with.py in the default @enabled-plugins
On Wed, Jul 1, 2009 at 4:49 PM, Edward K. Ream<edre...@gmail.com> wrote:
>> Now the "open with" stuff is easy enough for a child to use (once we
>> enable contextmenu.py by default, hint hint ;-).
>
> Feel free.
>> > >> Now the "open with" stuff is easy enough for a child to use (once we
>> > >> enable contextmenu.py by default, hint hint ;-).
>>
>> > > Feel free.
>
> On my machine, the context menu contains "open with scite". Totally
> awesome.
Also try it on @thin nodes. After editing and saving, you need to do
"refresh from disk" from the same menu, but that's the "safe" option
anyway I think.
> I don't see the contextmenu plugin in leoPluginsRef.leo or
> leoGuiPluginsRef.leo. I think it belongs in leoGuiPluginsRef.leo.
>
> I'll add it if there are no objections.
Yeah, I rarely push the .leo files. It belongs in leoPluginsRef.leo
(where rclick & friends are anyway).
Yeah, I rarely push the .leo files. It belongs in leoPluginsRef.leo
> I don't see the contextmenu plugin in leoPluginsRef.leo or
> leoGuiPluginsRef.leo. I think it belongs in leoGuiPluginsRef.leo.
>
> I'll add it if there are no objections.
(where rclick & friends are anyway).
> Ville, thank you so much! *That* was easy! You won't here me
No problem. I always found "open_with" too complicated to set up for
myself as well, and it made for a good demo for contextmenu. Though
not as good as todo.py currently ;-).
Keyboard shortcut shall come in shortly.
Ville, thank you so much! *That* was easy! You won't here me
complaining about the external editor thing anymore... (unless the
feature breaks somehow in the future :) ) It works flawlessly in my
Mac with the Qt interface.
> Keyboard shortcut shall come in shortly.
Pushed to trunk. It's alt-v, easy to remember for vi users ;-)
> Any chance documentation on the new contextmenu.py plugin can be added
> to the Users Guide before the rc1?
It's in trunk now.