Is it safe to have @file and @edit node for the same file?

2014-07-29 Thread Zoltan Benedek
Hi, Sometimes I want to see the code entirely as is in the file. Should I have a separate leo file or can I define @file and @edit node for the same file? Thanks -- You received this message because you are subscribed to the Google Groups leo-editor group. To unsubscribe from this group and

Re: Is it safe to have @file and @edit node for the same file?

2014-07-29 Thread Edward K. Ream
On Tue, Jul 29, 2014 at 3:46 AM, Zoltan Benedek benzol...@gmail.com wrote: Hi, Sometimes I want to see the code entirely as is in the file. Should I have a separate leo file or can I define @file and @edit node for the same file? I do that sometimes. Just make sure you only change the @file

Re: Problem DnD of a file to Node

2014-07-29 Thread Edward K. Ream
On Thu, Jul 24, 2014 at 6:20 AM, Indrajith indrajit...@gmail.com wrote: There seems to be a problem with Leo 4.11 Windows 8. DnD of file from Desktop to the node, only puts the name of the file. But, if the file is DnD from any other folder through explorer then file:// is appearing. Thanks

Re: Suppor for yaml (in syntax highlighting and hopefully as a persistance format) (was Re: How to enable syntax highlight of @language yaml?)

2014-07-29 Thread Juraj
Thanks very much, it works now! On Tuesday, July 29, 2014 3:37:15 AM UTC+2, Edward K. Ream wrote: On Mon, Jul 28, 2014 at 3:31 PM, Edward K. Ream edre...@gmail.com javascript: wrote: So I suspect there's some yaml-specific bug in syntax highlighter. I looked at the alternative

Re: Duplicated effort - two identical markdown colorizers

2014-07-29 Thread Edward K. Ream
On Tue, Jul 29, 2014 at 7:13 AM, Jacob Peck gatesph...@gmail.com wrote: Edward, one of [the markdown colorizers] should probably be removed. Done. We'll stay with @language md. At present there is no way to alias @language markdown to be @language md, and it's not really worth doing. EKR --

Re: Representing Leo outlines in git

2014-07-29 Thread Fidel N
You were right, I was asking about paste-node. The thing is, in the described scenario (the node gnx's that we are going to paste have disappeared from the outline, IE, been cut), the paste-retaining-clones *would behave exactly as paste-node* with the addition that the nodes would have kept

Re: New writer plugins in leo/plugins/writers

2014-07-29 Thread Edward K. Ream
On Tue, Jul 29, 2014 at 9:37 AM, 'Terry Brown' via leo-editor leo-editor@googlegroups.com wrote: Whoops, true of course. So now my importer is: Ok. I'll have a look. Edward -- You received this message because you are subscribed to the Google Groups leo-editor group. To unsubscribe from

Re: Fixing regex-related bugs in markdown moin colorizers

2014-07-29 Thread Edward K. Ream
On Tuesday, July 29, 2014 9:04:26 AM UTC-5, Edward K. Ream wrote: Here is the list rules with a backslash as a leadin character when another character would (probably!) be correct: Oops, I think I was looking at markdown.py (now deleted, rather than md.py). md.py is simpler, and has only a

Re: New writer plugins in leo/plugins/writers

2014-07-29 Thread 'Terry Brown' via leo-editor
On Tue, 29 Jul 2014 09:29:44 -0500 Edward K. Ream edream...@gmail.com wrote: On Tue, Jul 29, 2014 at 9:13 AM, Edward K. Ream edream...@gmail.com wrote: You must not return a value from a ctor. leoPluginsRef.leo contains the sources for all importers writers. Following those patterns

custom background color for 'selected/highlighted text'

2014-07-29 Thread Zoltan Benedek
Hi, Could someone explain to me, how I can customize the background color of highlighted text? (result text of find(Ctrl + F) command) I have already myLeoSettings.leo with other custom setting: @settings-@bool enable-abbreviations = True Thanks -- You received this message because you are

Re: custom background color for 'selected/highlighted text'

2014-07-29 Thread Fidel N
Hi Zoltan: If you are using Qt, could you check if changing the following does the trick? Go to the node: myLeoSettings.leo#@settings--Qt Gui (appearance)--@data qt-gui-plugin-style-sheet Then replace your color in this text: QTextEdit#richTextEdit { background-color: white; /* #fdf5f5;

Re: Fixing regex-related bugs in markdown moin colorizers

2014-07-29 Thread Edward K. Ream
On Tuesday, July 29, 2014 9:04:26 AM UTC-5, Edward K. Ream wrote: I just wrote a script that searches for 'regexp=\\' in all leo\modes files. In most cases, the backslash that starts the regex is a real backslash, but there are problems in two colorizer files: modes/md.py (markdown) and

Re: New writer plugins in leo/plugins/writers

2014-07-29 Thread Edward K. Ream
On Tue, Jul 29, 2014 at 2:32 PM, Edward K. Ream edream...@gmail.com wrote: It looks like the problem is that the list of @auto nodes is too static. In fact, it is located inside at.anyAtFileNodeName. Naturally, @auto-test is not part of the list. The solution is to make the list visible and

Re: New writer plugins in leo/plugins/writers

2014-07-29 Thread 'Terry Brown' via leo-editor
On Tue, 29 Jul 2014 14:58:50 -0500 Edward K. Ream edream...@gmail.com wrote: This shows, I think that the only remaining problem is the recognition of @auto-test nodes. Sounds good. Could the signature of BaseScanner.__init__ go from def __init__

Re: New writer plugins in leo/plugins/writers

2014-07-29 Thread Edward K. Ream
On Tue, Jul 29, 2014 at 3:05 PM, 'Terry Brown' via leo-editor leo-editor@googlegroups.com wrote: On Tue, 29 Jul 2014 14:58:50 -0500 Edward K. Ream edream...@gmail.com wrote: This shows, I think that the only remaining problem is the recognition of @auto-test nodes. Sounds good. Could the

Re: New writer plugins in leo/plugins/writers

2014-07-29 Thread Edward K. Ream
On Tuesday, July 29, 2014 7:53:29 PM UTC-5, Edward K. Ream wrote: Oh drat. The writers/test.py is being call by @auto-test, but something recent is preventing importers/test.py from being called. It used to work, I swear. Hehe. I'll make it work again asap. Actually, there wasn't any

Re: Problem DnD of a file to Node

2014-07-29 Thread 'Terry Brown' via leo-editor
Terry, do you have a Windows 8 machine? No, sorry, only occasionally use Win 7 virtual, all Ubuntu otherwise. 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

Re: New writer plugins in leo/plugins/writers

2014-07-29 Thread 'Terry Brown' via leo-editor
On Tue, 29 Jul 2014 18:20:16 -0700 (PDT) Edward K. Ream edream...@gmail.com wrote: In short, afaik, importers and writers can create their own kinds of @auto nodes, as long as they have unique spellings. Yep, just overriding run() and write() makes it very easy to do whatever you want when