Re: Can Leo render math in markdonw node ?

2016-04-14 Thread Peter Mills
Certainly with VR3 math is rendered fine in reStructuredText using the usual syntax built into reST: .. math:: Put latex here without dollar signs You can use the default HTML renderer or choose mathjax for slightly better but slower rendering. However, for markdown, I haven't heard anythin

Re: Peter: VR3 is ready for you

2016-04-02 Thread Peter Mills
On Saturday, April 2, 2016 at 12:33:11 AM UTC+10, Edward K. Ream wrote: > > Peter, I am going to hand over this project to you. You should be the one > to carry on. Only the code in WebViewPlus class should need to change. > Yep, I'll pick this up and see what pops out ;-) That's all for n

Re: Encoded stickynote bug?

2016-04-01 Thread Peter Mills
On Thursday, March 31, 2016 at 12:24:40 AM UTC+10, Terry Brown wrote: > > Should be fixed, should have been g.toUnicode(txt), seeing unicode() > doesn't exist in Python 3. If you can try the latest commit and > confirm, that would be good. > Thanks Terry (including correctly interpreting my i

Encoded stickynote bug?

2016-03-29 Thread Peter Mills
I'm getting tracebacks when I use Leo's "stickynoteenc" command on an encoded node. Immediately after I put in my password, the traceback below occurs. However, it doesn't occur in all my environments and installations. The successes and failures are listed below. Obviously it coincides wit

Re: MD or RST?

2016-03-28 Thread Peter Mills
really like the only difference between the VR and > VR2 plugins to be the value of the html_class ivar. I'm not sure that > makes sense, but it sure doesn't make sense to have two different > almost-but-not-quite-identical ViewRenderedController classes! > > Peter Mills,

Re: Proposal: merge both viewrendered plugins

2015-06-17 Thread Peter Mills
I agree. When I first wrote VR2, it was always intended to be merged with VR later on because of all the common code that remained and the confusion caused by the multiple VR options. Also, when installed, VR2 masquerades as VR anyway, to retain compatibility with the pane management etc. If

Re: Implementing goto-next-N-visible

2015-06-04 Thread Peter Mills
On Friday, May 29, 2015 at 9:02:32 PM UTC+10, john lunzer wrote: > > I had a suspicion that a plugin could be causing the problem. Sure enough the > todo.py plugin causes the significant lack of visual updates. Even with all > plugins disable traversing the list using Up/Down-arrow is still a lit

Re: New plugin: python_terminal.py, adds an interactive python session to your log pane

2015-04-30 Thread Peter Mills
I've done a bit of looking at Spyder myself with similar ideas. However, Spyder's IPython console uses an external IPython kernel, so it would be impossible(?) to access Leo's innards using this technique. In fact, I haven't been able to find a way to have both the GUI of IPython QtConsole an

Re: New plugin: python_terminal.py, adds an interactive python session to your log pane

2015-04-28 Thread Peter Mills
Wow. I'll have to try both these plugins. I too use Spyder and have found it difficult to do without its console or some sort of external console even when working within Leo. These plugins within the Leo GUI should make a huge difference for me. John L, is the IPython console functional a

Re: HOWTO: Display reStructuredText with stylesheets using the Viewrendered2 plugin

2014-04-20 Thread Peter Mills
> > Currently, the MathJax.js gets added, its fonts are downloaded, you need > to be connected to the internet to connect to the MathJax CDN, and in > general page loading is slower. Not everyone will be displaying math so > they shouldn't have to pay these penalties. This is not as big an issu

Re: HOWTO: Display reStructuredText with stylesheets using the Viewrendered2 plugin

2014-04-20 Thread Peter Mills
t. It seems that it won't make any difference to those who don't use math. Thoughts? On Sunday, April 20, 2014 11:31:44 AM UTC+10, T P wrote: > > On Sat, Apr 19, 2014 at 4:20 PM, Peter Mills > > > wrote: > >> @language rest >>> >>> .

Re: HOWTO: Display reStructuredText with stylesheets using the Viewrendered2 plugin

2014-04-19 Thread Peter Mills
> > @language rest > > .. math:: > > α_t(i) = P(O_1, O_2, … O_t, q_t = S_i λ > > This renders beautifully when exported. > Does "when exported" mean it doesn't render at all in VR2 or is it just ugly? I have noticed that within VR2 (and the WebView class) that MathJax renders

Re: HOWTO: Display reStructuredText with stylesheets using the Viewrendered2 plugin

2014-04-19 Thread Peter Mills
> > > getConfig(gc.getString, 'syntax_highlight', 'long') > getConfig(gc.getBool, 'no_compact_lists', False) > getConfig(gc.getBool, 'no_compact_field_lists', False) > > and also specifying in your @settings at least: > > @string vr-syntax-highlight = short > These look like r

Re: HOWTO: Display reStructuredText with stylesheets using the Viewrendered2 plugin

2014-04-18 Thread Peter Mills
> > Ooops. Sorry about that. I, of course, should have linked to the messages > that started it all. My only excuse is that I had to read lots of stuff > written by people who already were very familiar with Leo and often assumed > knowledge I didn't have. I was mainly focused on writing a summ

Re: HOWTO: Display reStructuredText with stylesheets using the Viewrendered2 plugin

2014-04-17 Thread Peter Mills
Hi That's a really useful write-up! Thanks. It is also worth noting, in case you haven't seen it yet, that there is some further information contained in the post: Re: viewrendered2 plugin - Manual and support files https://groups.google.com/d/msg/leo-editor/BDzmytlSegw/xb-G_fk_m6kJ This post

Re: Nightly snapshots not up to date?

2014-04-05 Thread Peter Mills
On Sunday, April 6, 2014 8:26:30 AM UTC+10, Peter Mills wrote: > > Despite the file name of "leo-editor-snapshot-20140405.zip" in the nightly > snapshot page, the files therein appear to to be from 2014-02-13. A fish > around in the files shows that viewrender

Nightly snapshots not up to date?

2014-04-05 Thread Peter Mills
Despite the file name of "leo-editor-snapshot-20140405.zip" in the nightly snapshot page, the files therein appear to to be from 2014-02-13. A fish around in the files shows that viewrendered2.py is not included, confirming the snapshot's age. I'm now getting my updates from git, but a friend

Re: Error when dropping files into Leo (Qt)

2014-03-31 Thread Peter Mills
On Monday, March 31, 2014 11:09:50 PM UTC+10, Fidel N wrote: > > Peter, in case you need @url nodes with paths to the files you are > dropping, I found a workaround that actually is pretty useful for me, since > it makes any dropped file into @url node, and then I can modify given url > at my c

Re: Error when dropping files into Leo (Qt)

2014-03-31 Thread Peter Mills
I can confirm that this is happening with me also. My full traceback follows: Traceback (most recent call last): File "M:\python\user\git\leo-editor\leo\plugins\qtGui.py", line 6031, in dropEvent self.urlDrop(ev,p) File "M:\python\user\git\leo-editor\leo\plugins\qtGui.py", line 6161, in

Re: First bug fix through github pull request

2014-03-30 Thread Peter Mills
I've confirmed that I did NOT have my git workflow figured out properly, so this pull request is redundant. Please ignore it. I think I've figured out git a little more now. Hopefully my next effort will be a little more effective! Peter. On Sunday, March 30, 2014 7:31:21 PM UTC

First bug fix through github pull request

2014-03-30 Thread Peter Mills
My travels are all done, so I'm looking forward to getting rid of a few bugs that have arisen in Viewrendered2. The first one up is the getting the display of plugin help (scrolledTextMessage) working again. I'm new to git, github and pull request so I'm just starting off with this single bug

Re: viewrendered2 plugin - Manual and support files

2014-03-01 Thread Peter Mills
Thanks Edward I think that VR2 should definitely replace VR1, even in name, as it really is an evolution of the same plugin. I would suggest that when we get the basic level of bugs fixed, that this happen, but not before? I know there is a level of confusion created by having two options, bu

Re: Working on the VR2 plugin

2014-02-28 Thread Peter Mills
On Friday, February 28, 2014 3:29:15 AM UTC+10, Edward K. Ream wrote: > > On Thu, Feb 27, 2014 at 10:31 AM, Edward K. Ream > > > wrote: > >> This thread will be for coordination among all those who are modifying >> the viewrendered2.py plugin. >> > > ​Peter, there is one place to take a close

Re: viewrendered2 plugin

2014-02-28 Thread Peter Mills
On Thursday, February 27, 2014 10:18:24 PM UTC+10, Edward K. Ream wrote: > > On Wed, Feb 26, 2014 at 6:00 PM, Peter Mills > > > wrote: > Yes, you should get a GitHub account. Let me know when you have it set up > and I'll give you write access. > Done: pmill

Re: Working on the VR2 plugin

2014-02-28 Thread Peter Mills
On Friday, February 28, 2014 9:46:48 PM UTC+10, Peter Mills wrote: > > > > On Friday, February 28, 2014 3:41:01 AM UTC+10, Edward K. Ream wrote: >> >> On Thursday, February 27, 2014 10:58:52 AM UTC-6, Edward K. Ream wrote: >> >> > There should be no more bi

Re: Working on the VR2 plugin

2014-02-28 Thread Peter Mills
On Friday, February 28, 2014 3:41:01 AM UTC+10, Edward K. Ream wrote: > > On Thursday, February 27, 2014 10:58:52 AM UTC-6, Edward K. Ream wrote: > > > There should be no more big reorgs, so we should be able to merge our > work easily. > > Ach. Rev e98bdb08b6f removes an unwanted clone that ca

Re: viewrendered2 plugin

2014-02-28 Thread Peter Mills
On Friday, February 28, 2014 7:23:27 PM UTC+10, lewis wrote: > > Using vr2, start leo, select F1 key. Here is the traceback: > AssertionError > [end] > > Lewis > Hi Lewis I don't know which version of viewrendered2.py (my original or Edward's git version) you are testing so its hard to pinpoint

Re: viewrendered2 plugin

2014-02-27 Thread Peter Mills
On Friday, February 28, 2014 11:34:31 AM UTC+10, lewis wrote: > > It's a good question :) > I'm running the latest build (ddfc2646f465) and have confirmed that > viewrendered2.py is in the plugins folder > > Is viewrendered2.py intended as a replacement of viewrendered.py or an > additional plu

Re: viewrendered2 plugin

2014-02-26 Thread Peter Mills
On Thursday, February 27, 2014 12:43:57 AM UTC+10, Edward K. Ream wrote: > > On Wed, Feb 26, 2014 at 8:32 AM, Edward K. Ream > > > wrote: > > I am aware of the problem with tooltip text: there is a do-nothing >> adjuster method that will deal with the problem asap. >> > > ​Done. Also update

Re: Introduction and teaser

2014-02-25 Thread Peter Mills
On Tuesday, February 25, 2014 9:12:34 PM UTC+10, Fidel N wrote: > > Hehe yes I already read it twice, but will need some time to digest it, > since it comes with a lot of possibilities. > Its really an amazing plugin, and Im specially impressed by both the > direct wikipedia rendering and the d

Re: Introduction and teaser

2014-02-25 Thread Peter Mills
On Tuesday, February 25, 2014 7:39:00 PM UTC+10, Fidel N wrote: > > Just checked the qt documentation, it could be done like this: > > void QWebView::selectionChanged() [signal] > > This signal is emitted whenever the selection changes -> Link this signal > to the following function > selectedTe

Re: Introduction and teaser

2014-02-25 Thread Peter Mills
On Tuesday, February 25, 2014 5:49:08 PM UTC+10, Fidel N wrote: > > Peter, thanks for this, it looks very appealing. > > I have a question, can the rendered result be exported as some short of > html? > Indeed, it is exported every render as leo.html in the local directory, so grabbing this and

Re: Introduction and teaser

2014-02-24 Thread Peter Mills
On Tuesday, February 25, 2014 8:33:06 AM UTC+10, Edward K. Ream wrote: > > > ​The matlab integration shown in the screenshot looks very cool. I'll be > very interested in how you put it all together. Many thanks for this work. > No, sorry Edward. That isn't matlab. That chart is from matplot