Re: New Install

2015-01-28 Thread Jacob Peck
That would be kind of hard without PyQT!  I suppose a fallback into 
tkinter could be used for this.


--Jake

On 1/28/2015 7:24 AM, Fidel N wrote:
I also had troubles back in the time when installing, and it also was 
because of unproperly / not installed pyqt.
Perhaps a warning message/GUI should appear to tell the user to check 
if he did install pyqt properly?
I think this could be a frequent bummer for new users who just don't 
spend more time on trying to find out.


--
You received this message because you are subscribed to the Google 
Groups leo-editor group.
To unsubscribe from this group and stop receiving emails from it, send 
an email to leo-editor+unsubscr...@googlegroups.com 
mailto:leo-editor+unsubscr...@googlegroups.com.
To post to this group, send email to leo-editor@googlegroups.com 
mailto:leo-editor@googlegroups.com.

Visit this group at http://groups.google.com/group/leo-editor.
For more options, visit https://groups.google.com/d/optout.


--
You received this message because you are subscribed to the Google Groups 
leo-editor group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to leo-editor+unsubscr...@googlegroups.com.
To post to this group, send email to leo-editor@googlegroups.com.
Visit this group at http://groups.google.com/group/leo-editor.
For more options, visit https://groups.google.com/d/optout.


Re: File management potential in Leo

2015-01-28 Thread Edward K. Ream
On Wed, Jan 28, 2015 at 1:10 AM, karho...@gmail.com wrote:


 Briefly, the idea is about using two tree panes, side-by-side, to perform
 basic file management operations
 ​...
 I guess the crucial question here is: can Leo support two tree panes at
 the same time?


​Leo's tree pane is, in essence, a view on a commander.  To do what you
want, a plugin would presumably create two hidden commanders that create
trees of nodes corresponding to files or folders.  This would not be a
small project, but it's certainly possible.

Given that Emacs has been adapted to do everything, and Leo is following
 pretty much the same path, why not to adapt Leo to serve as a basic file
 manager too?


​How important is something like this? A working plugin would answer that
question ;-)

Edward

-- 
You received this message because you are subscribed to the Google Groups 
leo-editor group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to leo-editor+unsubscr...@googlegroups.com.
To post to this group, send email to leo-editor@googlegroups.com.
Visit this group at http://groups.google.com/group/leo-editor.
For more options, visit https://groups.google.com/d/optout.


Re: New Install

2015-01-28 Thread Edward K. Ream
On Wed, Jan 28, 2015 at 6:24 AM, Fidel N fidelpe...@gmail.com wrote:


 Perhaps a warning message/GUI should appear to tell the user to check if
 he did install pyqt properly?


​In future, whenever you have problems installing Leo, or really, any other
program, the first thing to try is to run the program from a (Windows)
console.  That way you will be sure to get as many error messages as
possible.

Leo does have an emergency dialog that uses Tk.  See the node:

LM.isValidPython  emergency (Tk) dialog class​


​At present, app.createQtGui simply prints an error message (to the
console) if the requested Qt fails to load.  I suppose putting up a Tk
dialog would be possible...

Edward

-- 
You received this message because you are subscribed to the Google Groups 
leo-editor group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to leo-editor+unsubscr...@googlegroups.com.
To post to this group, send email to leo-editor@googlegroups.com.
Visit this group at http://groups.google.com/group/leo-editor.
For more options, visit https://groups.google.com/d/optout.


Re: Support for formatted text

2015-01-28 Thread Edward K. Ream
On Mon, Jan 26, 2015 at 9:17 PM, sergei karhof karho...@gmail.com wrote:

 If I paste formatted text copied from a webpage into a node, will the
 formatting be preserved?


​Not usually, but it may be possible using the richtext plugin.

Also, if you can get the actual html from the web page, you should be able
to view the html using the viewrendered plugin.  Just paste the text into
the body text of any node, then do Alt-0, vr-toggle, to show the
viewrendered pane.​



 Is WYSIWYG supported in this case?


​The richtext plugin supports wysiwyg.
​


 Can I later modify the contents of the formatted text from the WYSIWYG
 environment? (without having to edit HTML tags manually)


I think the answer is yes.  With the richtext plugin.

Edward

-- 
You received this message because you are subscribed to the Google Groups 
leo-editor group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to leo-editor+unsubscr...@googlegroups.com.
To post to this group, send email to leo-editor@googlegroups.com.
Visit this group at http://groups.google.com/group/leo-editor.
For more options, visit https://groups.google.com/d/optout.


Re: New Install

2015-01-28 Thread Todd Mars
thanks,
it's funny once you get it up and running (in my case 64 bit with PyQt4)
you just want to go on and use it
rather than figuring out what the issues were that made me stumble on the 
installation.

-- 
You received this message because you are subscribed to the Google Groups 
leo-editor group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to leo-editor+unsubscr...@googlegroups.com.
To post to this group, send email to leo-editor@googlegroups.com.
Visit this group at http://groups.google.com/group/leo-editor.
For more options, visit https://groups.google.com/d/optout.


Re: New Install

2015-01-28 Thread Fidel N
I also had troubles back in the time when installing, and it also was 
because of unproperly / not installed pyqt.
Perhaps a warning message/GUI should appear to tell the user to check if he 
did install pyqt properly?
I think this could be a frequent bummer for new users who just don't spend 
more time on trying to find out.

-- 
You received this message because you are subscribed to the Google Groups 
leo-editor group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to leo-editor+unsubscr...@googlegroups.com.
To post to this group, send email to leo-editor@googlegroups.com.
Visit this group at http://groups.google.com/group/leo-editor.
For more options, visit https://groups.google.com/d/optout.


Re: Support for formatted text

2015-01-28 Thread Edward K. Ream
On Wed, Jan 28, 2015 at 10:24 AM, karho...@gmail.com wrote:

​ ​
Does the solution that you suggest require raw HTML code?

​Yes.  I just did an experiment, and you must cut/paste real html.

​ ​
Do the richedit and the viewrendered plugins mentioned by you allow me to
edit the imported webpage in a WYSIWYG environment? This point is crucial.

​Yes, you can do that, as an experiment has just verified.

Edward

-- 
You received this message because you are subscribed to the Google Groups 
leo-editor group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to leo-editor+unsubscr...@googlegroups.com.
To post to this group, send email to leo-editor@googlegroups.com.
Visit this group at http://groups.google.com/group/leo-editor.
For more options, visit https://groups.google.com/d/optout.


Re: Support for formatted text

2015-01-28 Thread karhof21
On Wednesday, January 28, 2015 at 5:37:13 PM UTC, Edward K. Ream wrote:



 On Wed, Jan 28, 2015 at 10:24 AM, karh...@gmail.com javascript: wrote:

 ​ ​
 Does the solution that you suggest require raw HTML code?

 ​Yes.  I just did an experiment, and you must cut/paste real html.


That's very cumbersome. For most users, it defeats the purpose. The casual 
user wants to be able to simply copy and paste a text from a webpage to a 
Leo's node. When copying data from a webpage, nobody goes to the source 
first and selects the text from the source (also because you would have to 
find the relevant paragraph within the source, which sometimes is like 
finding a needle in a haystack). In short, having to deal with HTML code is 
very, very cumbersome.

What would it take for Leo to accept a text selection directly from a 
webpage (as in simple copy and paste)? This feature is essential if you 
want Leo to become popular as a data storage system. 

 
 ​ ​
 Do the richedit and the viewrendered plugins mentioned by you allow me to 
 edit the imported webpage in a WYSIWYG environment? This point is crucial.

 ​Yes, you can do that, as an experiment has just verified.


Which of the two plugins (richtext or viewrendered) supports the WYSIWYG 
environment through which you can edit the imported text? (again, 
without bothering for the source code)


-- 
You received this message because you are subscribed to the Google Groups 
leo-editor group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to leo-editor+unsubscr...@googlegroups.com.
To post to this group, send email to leo-editor@googlegroups.com.
Visit this group at http://groups.google.com/group/leo-editor.
For more options, visit https://groups.google.com/d/optout.


Re: Leo *for* web apps vs. Leo *as* a web app

2015-01-28 Thread Matt Wilkie
 ​The biggest win-win that I can see would be to insinuate Leo somehow
 into IPython.


Count me for one that would love this!

Matt

-- 
You received this message because you are subscribed to the Google Groups 
leo-editor group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to leo-editor+unsubscr...@googlegroups.com.
To post to this group, send email to leo-editor@googlegroups.com.
Visit this group at http://groups.google.com/group/leo-editor.
For more options, visit https://groups.google.com/d/optout.


Re: Leo *for* web apps vs. Leo *as* a web app

2015-01-28 Thread Matt Wilkie
On Wed, Jan 14, 2015 at 5:35 AM, Jacob Peck gatesph...@gmail.com wrote:

 This means that *one single codebase* will run on Windows, Linux, Mac OS
 X, Android, iOS, Blackberry OS, Windows Phone, Tizen, Mozilla/Firefox OS,
 etc, with no complicated user installation.



dunno if it's relevant here, but Docker is on my list of things to
investigate:
https://www.docker.com/, Build, Ship and Run Any App, Anywhere

matt

-- 
You received this message because you are subscribed to the Google Groups 
leo-editor group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to leo-editor+unsubscr...@googlegroups.com.
To post to this group, send email to leo-editor@googlegroups.com.
Visit this group at http://groups.google.com/group/leo-editor.
For more options, visit https://groups.google.com/d/optout.


Re: Support for formatted text

2015-01-28 Thread 'Terry Brown' via leo-editor
On Wed, 28 Jan 2015 08:26:27 -0600
Edward K. Ream edream...@gmail.com wrote:

 On Mon, Jan 26, 2015 at 9:17 PM, sergei karhof karho...@gmail.com
 wrote:
 
  If I paste formatted text copied from a webpage into a node, will
  the formatting be preserved?

I just this moment pasted an order confirmation webpage into a Leo node.

I created a new node and changed its name to '@rich', the '@rich' can
appear anywhere in the headline, or, I think, the body.  There is a
toggle command I could have used, but I just changed the headline and
moved out of and back into the node to make it change to HTML editing
mode.  Then I pasted the webpage (select all / copy in the browser),
and now whenever I enter that node I see the web page as it appeared in
the browser.

This requires the richtext.py plugin, as Edward said.

Cheers -Terry

-- 
You received this message because you are subscribed to the Google Groups 
leo-editor group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to leo-editor+unsubscr...@googlegroups.com.
To post to this group, send email to leo-editor@googlegroups.com.
Visit this group at http://groups.google.com/group/leo-editor.
For more options, visit https://groups.google.com/d/optout.


Re: Support for formatted text

2015-01-28 Thread karhof21
Thank you, Edward and Terry.
Does the solution that you suggest require raw HTML code? Is what I select, 
copy and paste HTML code (as such) or is it the webpage itself as it 
appears in the browser? I am asking because if I have to work with HTML 
code, it's too much fuss.

Do the richedit and the viewrendered plugins mentioned by you allow me to 
edit the imported webpage in a WYSIWYG environment? This point is crucial.

Thanks again,

Sergei


-- 
You received this message because you are subscribed to the Google Groups 
leo-editor group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to leo-editor+unsubscr...@googlegroups.com.
To post to this group, send email to leo-editor@googlegroups.com.
Visit this group at http://groups.google.com/group/leo-editor.
For more options, visit https://groups.google.com/d/optout.


Possible sprint: making Leo an IPython notebook

2015-01-28 Thread Edward K. Ream
For the last several days I have been studying the IPython 2.3.1 sources. 
Naturally, I used Leo to import the sources.  You may find them at: 
https://github.com/leo-editor/leo-editor-contrib

The file is leo-editor-contrib/StudyOutlines/IPython.leo

I have been studying these sources with the idea of creating an 
execute-script-in-ipython command. This command would do the following:

A.  Handle @others and section references, just like Leo's execute-script 
does.

B.  Pass the resulting script to an IPython kernel.

If necessary, the execute-script-in-ipython command would start an IPython 
kernel in a separate process, much like Leo's existing --ipython 
command-line option does.  This kernel *might* be connected to a visible qt 
terminal, but this is optional, and possibly not desirable.

C. Get IPython results (output cells) from the kernel and pass them to the 
viewrendered pane.

This can probably be done by hooking IPython's display methods.  Iirc, 
these methods can produce html output, so the viewrendered pane should have 
no trouble dealing with them.

In essence, this scheme would make each Leo body text an IPython cell 
(equivalently, an IPython notebook cell).  The viewrendered pane would show 
the results of the last cell.  It would be easy to cache the corresponding 
output html in a uA, so that switching nodes would show the corresponding 
output in the vr pane.

Imo, this would result in an IPython notebook with of all Leo's features.  
It would be a serious competitor to the IPython's own web-based notebook.

My general impression is that somebody truly fluent in the IPython 
sources could implement this scheme in Leo in 20-50 lines of code.  All 
that might be required would be to create a short IPython wrapper kernel: 
http://ipython.org/ipython-doc/dev/development/wrapperkernels.html

However, the wrapper code does not appear to work with IPython 2.x: it 
might, however, work with IPython 3.x.  Furthermore, the code is difficult 
for me to understand.  Otoh it might be relatively straightforward for 
somebody with stronger client/server background than I have.

In short, I think making Leo a true IPython notebook might make a great 
sprint.  The payoff will be huge, and it might take the right team of 
people just a few hours to get a prototype working.

This would not have to be a physical sprint: conceivably we could do the 
work here, on leo-editor.  And it doesn't have to much of a sprint: it 
could take months and still be worthwhile.

Your comments, please, Amigos.

Edward

P.S.  Although important parts of the sources are mysterious to me, I do 
understand them in enough detail to be able to act as a guide to what they 
do and how they do it.  I'm willing to answer any questions you may have.  
Conversely, if there is interest here, I start asking questions here about 
the mysterious bits of code.

EKR

-- 
You received this message because you are subscribed to the Google Groups 
leo-editor group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to leo-editor+unsubscr...@googlegroups.com.
To post to this group, send email to leo-editor@googlegroups.com.
Visit this group at http://groups.google.com/group/leo-editor.
For more options, visit https://groups.google.com/d/optout.


Re: File management potential in Leo

2015-01-28 Thread 'Terry Brown' via leo-editor

 On Wed, Jan 28, 2015 at 1:10 AM, karho...@gmail.com wrote:
 
 
  Briefly, the idea is about using two tree panes, side-by-side, to
  perform basic file management operations
  ​...
  I guess the crucial question here is: can Leo support two tree
  panes at the same time?

The simplest thing to do to assess such a system is to load two
outlines and then detach one, assuming the tabbed interface (right
click on the tab to detach).  You can use the free_layout system to
arrange the two windows so the trees are side by side, or just squash
the log and body panes in one window to make it tree only.

It should also be possible for the free layout system to steal a tree
from one tab and move it on to another tab, which has all sorts of
interesting possibilities.

BUT: https://github.com/leo-editor/leo-editor/issues/135

I just discovered inter-tree drag and drop broke on Friday the 13th,
Sep., 2013 :-/

Cheers -Terry

-- 
You received this message because you are subscribed to the Google Groups 
leo-editor group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to leo-editor+unsubscr...@googlegroups.com.
To post to this group, send email to leo-editor@googlegroups.com.
Visit this group at http://groups.google.com/group/leo-editor.
For more options, visit https://groups.google.com/d/optout.