Re: Representing Leo outlines in git

2014-07-29 Thread Fidel N
in my scripts (its very quick and easy) and I could forget about unl's that way. Well, guess I'll have to put it in my @commands tree :) Thanks Edward. On Tue, Jul 29, 2014 at 12:28 PM, Edward K. Ream wrote: > On Thu, Jul 24, 2014 at 8:33 AM, Fidel N wrote: > > > Shoul

Re: Standarized file importing, and keeping Leo updated

2014-07-24 Thread Fidel N
Hehe yes, thanks :) On Thu, Jul 24, 2014 at 3:31 PM, 'Terry Brown' via leo-editor < leo-editor@googlegroups.com> wrote: > On Thu, 24 Jul 2014 02:31:34 -0700 (PDT) > Fidel N wrote: > > > #Replacement of your method: > > c.fr

Re: Representing Leo outlines in git

2014-07-24 Thread Fidel N
> > > When you cut an outline, then paste it otherwhere (same or other file), > you > > loose the gnx of every node in that outline. > > The Paste Node As Clone (paste-retaining-clones) command preserves > gnx's, and hence clone links. > > Edward > Shouldn't paste-clone do a paste-retaining

Re: @url not working?

2014-07-24 Thread Fidel N
I think so, the only way a URL can be detected within a string is through the http// in the beginning. The fact is that common URL detection is being used for opening the url's, meaning, the "common" url detection script doesnt take the advantage of knowing that the node is a @url node to "gues

Re: Standarized file importing, and keeping Leo updated

2014-07-24 Thread Fidel N
Thank you both again. Here is the code I ended up using, for future reference. I went for Terry's solution because its very clean, and I need to create nothing else but a @script node in each outline I want this working like that: ''' How to replace a method in Leo (Make Leo behave differently

Re: @url not working?

2014-07-24 Thread Fidel N
Hey: Did you try control + click the headline? On Thu, Jul 24, 2014 at 6:25 AM, Indrajith wrote: > I am returning to Leo after a very long time. The last time I was using it > was in 2008 or so, when it was still developed using Tk. I used to use @url > quite a lot, and is one of the reason, I

Re: Scripts for importing your mindmaps from MindJet and Freemind

2014-07-13 Thread Fidel N
y before > the month ends. > > Cheers and thanks again, > > Offray > > > On 06/23/2014 04:45 PM, Fidel N wrote: > >> Updated. I didn't end up going for that change, because it was a bit >> straightforward. >> An easy correction script can be made in

Re: Abridged summary of leo-e...@googlegroups.com - 4 updates in 3 topics

2014-07-11 Thread Fidel N
If I understand correctly, you are asking us to remove you from some configuration you set up when you joined the google group you are in. If that's the case, I think only you can do that. -- You received this message because you are subscribed to the Google Groups "leo-editor" group. To unsubs

Re: Representing Leo outlines in git

2014-07-09 Thread Fidel N
Wow, wasnt aware of that feature, thanks Edward! On Wed, Jul 9, 2014 at 12:50 PM, Edward K. Ream wrote: > On Tue, Jul 8, 2014 at 4:47 PM, Fidel N wrote: > > > When you cut an outline, then paste it otherwhere (same or other file), > you > > loose the gnx of every node in

Re: Representing Leo outlines in git

2014-07-08 Thread Fidel N
Hehe yes, we had that conversation before, I wanted to point that out because I felt it is relevant towards recent discussions. There are two answers to the cut/paste solution you suggest. First, i think your solution perfectly makes clear that any node you create will always have its gnx!! Th

Re: Representing Leo outlines in git

2014-07-08 Thread Fidel N
About the gnx, I wanted to say something Edward didnt. Not a complaint or anything, but from my point of view, the only feature they are missing: When you cut an outline, then paste it otherwhere (same or other file), you loose the gnx of every node in that outline. That prevents you from using gn

Re: Representing Leo outlines in git

2014-07-08 Thread Fidel N
could that become some short of collaborative outline editing for Leo maybe? On Tue, Jul 8, 2014 at 2:46 PM, Edward K. Ream wrote: > I've been studying the pro git book: http://git-scm.com/book and am now > closely studying the internals chapter: > http://git-scm.com/book/en/Git-Internals > > S

Re: spatial versioning

2014-07-08 Thread Fidel N
In my short experience with the backslashes thing, I often got to fix those problems by either: import re re.escape("string_to_escape") or string = r"string" I don't often really understand what's happening, but this stops being a problem. -- You received this message because you are subscrib

Re: Standarized file importing, and keeping Leo updated

2014-07-06 Thread Fidel N
Thank you both. Already tried both ways; And failed but already very close. Edward, how is Leo supposed to know that my "leopyref.leo" file now will be leopy.leo? Where do I have to tell Leo to search for leopy instead of leopyref? Terry, I like your solution very much, but my lack of python k

Re: ENB: Thoughts on a new Leo (was: spatial versioning)

2014-07-06 Thread Fidel N
> > Oh good. Great minds thinking alike :-) Could you tell me the link > to that conversation? I only vaguely remember it. > Hehehe, here is the link; Finding a node by the tail of the UNL. Current Leo working code has that loging working. https://github.com/leo-editor/leo-editor/pull/13#i

Standarized file importing, and keeping Leo updated

2014-07-06 Thread Fidel N
Hi all: Im having trouble to keep Leo updated because of this, and wanted to ask if someone can think of a way around. I like Leo to import any file I drop to it as h = "@url File_or_last_folder_name" // b = "path_to_the_item" Then my scripts will identify the kind of file it is, and offer me o

Re: ENB: Thoughts on a new Leo (was: spatial versioning)

2014-07-05 Thread Fidel N
Hey Eward! That seems very similar to what Terry and I did in our last update for unl's and recursiveunlfind function. On the way we also added repeated names security (second node with same name would store its number in the UNL) as you know. I really want to comment on this issue, I have been

Re: issues/bugs from launchpad to github - volunteers?

2014-07-02 Thread Fidel N
Hi Terry, I also remember that was talked a while ago. You guys probably knew about this, but just in case, I found a batch exporter from Launchpad into excel (half of the work): https://answers.launchpad.net/launchpad/+question/216825 -- You received this message because you are subscribed to

Re: unit testing increases number of registered handlers

2014-06-30 Thread Fidel N
Big thanks both. The doc I was refereing to is the main article "scripting with Leo" in the website, you can click the link to go there: Enabling idle time event handlers Two metho

Re: unit testing increases number of registered handlers

2014-06-30 Thread Fidel N
Well after checking some more, I realized I was wrong in the hooks being persistent (which made no sense, g is refreshed each time Leo restarts...) But still the hooks wont respect the time, and several hooks are firing instead of only one (the message appears 2 or 3 times even if I just run the

Re: unit testing increases number of registered handlers

2014-06-30 Thread Fidel N
Hi Edward, im having this issue again: Following the directions on Leo tutorials, I run this script in a node: def on_idle(tag, keywords): g.es("iddle timer") g.registerHandler("idle", on_idle) g.enableIdleTimeHook(idleTimeDelay=5000) Then, not only the iddle timer will run more often than

Re: Run script: Use different language depending on @language

2014-06-27 Thread Fidel N
Thanks Edward. Actually its not something I would actively be using, but I thought if someone comes from another programming language into Leo, and drops/imports his scripts into Leo, it would be far more intuitive and quick for him to use the execute command, before he needs to learn any other

Run script: Use different language depending on @language

2014-06-26 Thread Fidel N
Hey. I was wondering, shouldn't the "run script" command make a different script depending on the language at effect in the selected node?? For instance, if we are using ahk, and the language at effect is @language ahk in the selected node, instead of generating a .py file and running it, sho

Re: Calling a leo class function from the minibuffer

2014-06-26 Thread Fidel N
Thanks jkn. Actually, I really wanted to find a python solution, so I spent a few months studying all that I could find. I have been making scripts in all the ones you suggest, plus "sikuli" and a few others. After my research and all the time spent, I went back to AHK for its simplicity and re

Re: Calling a leo class function from the minibuffer

2014-06-26 Thread Fidel N
Yes, I am currently very happy with my solution. I made this Leo command, which I put in myleosettings.leo file: from Tkinter import Tk r = Tk() script = r.clipboard_get() exec(script) c.gui.replaceClipboardWith(result) Then I made an AHK function that calls that command, and since Leo ru

Re: current commander

2014-06-26 Thread Fidel N
Wow, your solution is FAR better than what I was going to do. You saved me a few headaches again, thanks 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 le

Re: current commander

2014-06-26 Thread Fidel N
well found out I can solve it by using "c" as an argument in the functions defined in the other Leo window. Then I can call those functions from other leo windows using their 'c' as argument. -- You received this message because you are subscribed to the Google Groups "leo-editor" group. To u

Re: current commander

2014-06-25 Thread Fidel N
Terry, do you have around the script that solved your problem? I seem to be facing the same issue after solving what we discussed today. Although im reaching Leo through clipboard interactions between AHK and Leo, im finding that the global class that I defined in Leo will use the "c" of the wi

Re: Calling a leo class function from the minibuffer

2014-06-25 Thread Fidel N
Haha thanks for the suggestion Terry. Yes, AHK stands for AutoHotkey, a windows automation system. And the main thing is its the other way around. AHK sniffs around my actions, then points to Leo commands to complete them. So if I want to add my selected text (outside Leo) as a child of currentl

Calling a leo class function from the minibuffer

2014-06-25 Thread Fidel N
Hello: Im starting to use AHK to send commands to Leo. So far I create a @command in the outline, then call it from AHK, using the minibuffer. But there are beginning to be to many commands, so it would be more convenient to create a class in Leo and call directly the class functions. So, to s

Re: Scripts for importing your mindmaps from MindJet and Freemind

2014-06-23 Thread Fidel N
Updated. I didn't end up going for that change, because it was a bit straightforward. An easy correction script can be made in case the user wants to. The idea would be to replace node bodies for the body of the child when both they only have one child and the child body was too long to be displaye

Re: Scripts for importing your mindmaps from MindJet and Freemind

2014-06-21 Thread Fidel N
Im updating the scripts, I will upload a final version soon. Just saying in case someone was going to use them, better wait for tomorrow. Now nodes with long bodies go to new nodes, and a header "@node_with_long_text". But when the nodes are the last node in the outline, it would be great for th

LEO: A Learning Environment Organizer

2014-06-18 Thread Fidel N
Hi all. I found yet another "LEO" software, this time is a Machine learning software. I will call the other one LEO, and ours is 'Leo editor' I wanted to post it here because I found it very interesting. LEO is a mind-map-like structure that learns from data and transforms it into concept maps.

Re: Leo settings revamp (was Re: Why Leo is not yet ready for prime time (for most users))

2014-06-09 Thread Fidel N
Im also very grateful. This has been my main concern about newbies eversince I joined Leo. Everyone is used to edit the basic config from a menu-like structure, only programmers can directly do that from an outline :) -- You received this message because you are subscribed to the Google Groups

Re: Context-sensitive key bindings?

2014-05-20 Thread Fidel N
Sorry for that, didn't know about the bindings yet =O This saved me too a lot of trouble for when I decide to change them. On Tue, May 20, 2014 at 3:29 PM, Edward K. Ream wrote: > On Thu, May 8, 2014 at 6:20 PM, Fidel N wrote: > > Hi, I think its a bit tricky but its defin

Re: Context-sensitive key bindings?

2014-05-09 Thread Fidel N
That's one of the beauties of Leo. Even though the feature you requested is not built in, you can make it real without having to edit the source code, just by editing your config file. This means whenever Leo is updated you keep your editions. But since much of Leo power comes from a properly [e

Re: Context-sensitive key bindings?

2014-05-08 Thread Fidel N
Hi, I think its a bit tricky but its definitely possible. You have to bind ESC to one custom made command, lets say you call it "press-escape". press-escape must contain the following script: if 'leoQtBody' in str(c.frame.getFocus()): #Here, commands to do when the body has focus, IE,when y

Re: Using leoBridge from within Leo, or using several outlines from a "main" one

2014-05-06 Thread Fidel N
Yep, that did it. So, with this script, and using c.bringToFront() after opening the file in case its not already open, leo files can be called and used within the currently open one. Thanks! -- You received this message because you are subscribed to the Google Groups "leo-editor" group. To un

Re: Using leoBridge from within Leo, or using several outlines from a "main" one

2014-05-06 Thread Fidel N
This script would be complete if there was a way to switch back to the original commander. When you call this script, the "g.es" commands you issue afterwards will happen in the newly open Leo file window if it was not already open. If it was, Leo stays where you are, so it happens in your curr

Re: Using leoBridge from within Leo, or using several outlines from a "main" one

2014-05-05 Thread Fidel N
Ok, after the discussion on the chat, here is the solution (thanks for your help everyone): This script opens a Leo file, and traverses its nodes. exists=0 for com in g.app.commanders(): if 'I_Programming.leo' in com.fileName(): dc = com exists=1 break if not ex

Re: Using leoBridge from within Leo, or using several outlines from a "main" one

2014-05-05 Thread Fidel N
Hey Jake, as said on the chat, big thanks. After playing with this I am facing a problem that looks like a bug to me: The new commander cant handle 'dc.all_unique_positions():' or any other position generator function whatsoever. Am I doing something wrong? Here is the code: for com in g.app.co

Using leoBridge from within Leo, or using several outlines from a "main" one

2014-05-05 Thread Fidel N
Hi: Im trying to use another outline from within the current outline. Basically,the objective is to have another outline nodes and tree loaded as "virtual nodes" so I can work with them from within the currently open outline. The thing is that several outlines use and edit those nodes, so ideal

Re: node UNL

2014-04-28 Thread Fidel N
Hi Eric, try this: c.p.get_UNL() -- 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

Re: New ideas re sentinels and sharing

2014-04-26 Thread Fidel N
Hi Edward: As I told you over the chat (don't know if reached you), very glad to have you back! I totally agree with Terry here, I think the visual aspect of Leo should have more priority. As you know, I'm often thinking of the 'reach to the most users' concept, so I believe that thinking out o

Re: Nightly snapshots not up to date?

2014-04-06 Thread Fidel N
If they are not required perhaphs we should remove them from here: http://leoeditor.com/download.html -- 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+un

Re: Error when dropping files into Leo (Qt)

2014-03-31 Thread Fidel N
Wow really sorry. Yes, its where you say. I seemed to copy paste directly from my archives, and the link was to another place :\ You only have to do the replacement on the node you pointed out, with header: "urlDrop & helpers" And it will work as defined. Sorry again! -- You received this mess

Re: Error when dropping files into Leo (Qt)

2014-03-31 Thread Fidel N
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 convenience. The main advantage of this is that you can use a "standarize

Re: Colorize head lines - easy ad hoc hack

2014-03-31 Thread Fidel N
Thanks for this Reinhard, I find it _very_ interesting to play with and learn about the 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.

Re: Using g.SherlockTracer to study other tools.

2014-03-24 Thread Fidel N
Edward, given you have your test code inside a node body, how would you run it with SherlockTracing and show the outcome in leo log pane? Is that possible? -- You received this message because you are subscribed to the Google Groups "leo-editor" group. To unsubscribe from this group and stop re

Re: De-select a position

2014-03-21 Thread Fidel N
And if instead of calling the function through "control+b", you make it a button and run it, it will not work, the selection will remain being the parent node. This different behaviour was relevant to our conversation, but I couldn't show this that day. -- You received this message because yo

De-select a position

2014-03-21 Thread Fidel N
Edward, we recently had a conversation about selecting nodes in an outline, and I mentioned I had a script to de-select nodes, but didn't find it. Just did. If you have a node with 3 children named [a,a,b], and select that node, copy/paste this script inside it, and run with control+b, the sele

Error when dropping files into Leo (Qt)

2014-03-21 Thread Fidel N
Hi: Im getting this error when I drop files to Leo. This used to create a new node with the path to the file. With folders it works and creates an @path node. I will try to find more details on this. -- You received this message because you are subscribed to th

Re: Search

2014-03-10 Thread Fidel N
go to the "nav" pane Insert your text, press enter :) -- 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...@goo

Re: Interactively selecting nodes, how to show that?

2014-03-07 Thread Fidel N
Finished editing, here is the pull request, and I think I found a solution for the issue you are commenting. https://github.com/leo-editor/leo-editor/pull/11 I just made it so every part of unls always get their [int], even if its zero. That way, when reconstructing, if the user named a node [0

Store and find exact UNL, even if there are repeated node names

2014-03-06 Thread Fidel N
Is there a reason why UNL's don't keep the number of nodes with the same node inside its string? Same way as xPath does? "Node name [number]->> Node name[Number]-->" -- You received this message because you are subscribed to the Google Groups "leo-editor" group. To unsubscribe from this gro

Re: How is the move to git going for you?

2014-03-05 Thread Fidel N
Edward, you can filter and see only the pull requests by clicking this button on the right part of the screen: -- You received this message because you are subscribed to the Google Groups "leo-editor" group. To unsubscribe from this group and stop receiving ema

Re: Interactively selecting nodes, how to show that?

2014-03-05 Thread Fidel N
Just updated the github issueon this topic, I think there is a common pattern among the mentioned problems and some more with c.redraw() c.redraw() moves the current Tree view to the selected node, and that behaviour is (I think) not desirable

Re: Interactively selecting nodes, how to show that?

2014-03-04 Thread Fidel N
Thanks Terry. Yes, I will probably point towards there, and as you say, it seems unlikely it will conflict with other thing since they are intended for short term use. But as said earlier, c.redraw() can be an issue when mixed with interactive marking. -- You received this message because

Interactively selecting nodes, how to show that?

2014-03-03 Thread Fidel N
Hey, I keep working on the dynamic Leo helper: And after making it show different menus depending on where the user is (hook fixed), now It would be very interesting to be able to interactively allow the user to select nodes and

Re: Bug: Infinite loop when launching new Leo with iPython

2014-03-03 Thread Fidel N
Thanks Edward, just did: https://github.com/leo-editor/leo-editor/issues/7 -- 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

Re: FAQ for Leo - where to find?

2014-03-03 Thread Fidel N
There is indeed a FAQ , but I would recommend to start with the cheatsheet if you are begining. Also have a look at the table of contents or come visit the IRC where we can help you if you nee

Re: More on hooks

2014-03-02 Thread Fidel N
Finally found where to add the hook. Forked Leo, added the line of code, and did a pull request: https://github.com/leo-editor/leo-editor/pull/6 I rather do pull requests than edit the code directly in the master until I know what I am doing hehe. -- You received this message because you are

More on hooks

2014-03-01 Thread Fidel N
Hi: I want to first apologize for insisting so much on the hooks, but the bodyclick1 and 2 hooks are not working. Before posting this, I have tried the following solutions, each more desperate, since I am aware I already asked too much help for this issue. *Adding g.doHook("bodyclick1",c=c) in

Re: viewrendered2 plugin

2014-02-28 Thread Fidel N
Wow I think that should be written somewhere near the plugins activation node in leosettings. Someone could think that viewrendered is actually necesary for being able to use Viwrendered2. Or an auto-ignore vr activation if vr2 is active. -- You received this message because you are subscribed

Re: viewrendered2 plugin

2014-02-26 Thread Fidel N
Hey Peter, I recently started with git too, I would recomend this tuto first, its like a 2 minute thing, but gives you a clear view for starters,then you can study further into what you want: http://rogerdudler.github.io/git-guide/ Then, you can actually make a clone of Leo repository, edit wha

Re: Introduction and teaser

2014-02-25 Thread Fidel N
I think it can be made so it "auto-clicks" whenever the only contains of the node are 1 link, and perhaphs we should add a "no children" test before: c.p.b.splitlines[0].startswith("httml") and len( c.p.b.splitlines[0].startswith("httml"))==1: This is probably personal preference, since I'm curr

Re: Introduction and teaser

2014-02-25 Thread Fidel N
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 direct html exporting, along with the whole subtree rendering hehehe...im cu

Re: Introduction and teaser

2014-02-25 Thread Fidel N
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 selectedText : const QString When

Re: Introduction and teaser

2014-02-25 Thread Fidel N
Wow sounds awesome! Cant wait to be using it! The redirection of the files can be done with ease, for instance, having each "master html" node under a @path node. Then, with a script, you loop through all the nodes under @path nodes, render, get the generated file from local folder, and rename/

Bug: Infinite loop when launching new Leo with iPython

2014-02-25 Thread Fidel N
Hi: Im trying to open the most recent Leo version with iPython, but Leo fails to open. The DOS command im using for launching Leo with ipython is: c:\python27\python launchleo.py --ipython And the message text in the console that loops continuously is: http://i.imgur.com/Zw1g5Rl.png (Cant

Re: Introduction and teaser

2014-02-24 Thread Fidel N
Peter, thanks for this, it looks very appealing. I have a question, can the rendered result be exported as some short of html? So, for instance, we could be editing different head nodes, each of them being different htmls pages from a website we would be managing and globally editing from Leo?

Re: Hooks not working (again)

2014-02-21 Thread Fidel N
Thank you Edward, after your latest bugfix it works perfectly. -- 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

Re: Hooks not working (again)

2014-02-21 Thread Fidel N
Great,thanks for the confirmation, I will file the bug report. -- 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

Re: Hooks not working (again)

2014-02-20 Thread Fidel N
Could anyone please confirm if that code works for you in your Leo installation? I have tried it in several Leo versions and still nothing. So it would be really helpful to know if its a Leo problem or my problem. Thanks -- You received this message because you are subscribed to the Google Grou

Re: Leo program fails to show content of a certain Leo outline ...

2014-02-19 Thread Fidel N
The way to do it with dropbox is just install, then drop the files in its folder. Then, they automatically backup any time the file changes. But Im interested on that, how would you do that with git? -- You received this message because you are subscribed to the Google Groups "leo-editor" grou

Re: Leo program fails to show content of a certain Leo outline ...

2014-02-19 Thread Fidel N
I know for this time its probably too late, but I would suggest you to keep all your leo files in dropbox or alike. This way, all the previous versions up to 1 month are automatically stored (for free), so you can always roll back if something unexpected happens. -- You received this message be

Re: Redo default binding should be control+y

2014-02-18 Thread Fidel N
Mhm... when I press control+shift+y, Leo doesn't redo, it just pastes this string (which by the way doesn't let to be copied/pasted here to the group): When I write redo in the minibuffer, this completion appears: "Ctrl+Shift+Z redo" The redo command works well

Re: Redo default binding should be control+y

2014-02-18 Thread Fidel N
Hehe yes, as you say, that is my experience. Wanted to share it in case it was useful,but to be honest I didn't know at all that other editors use control+shift+y Now that I know im ok with it, but IMO this should be decided upon the expected sources of new users. If most of the new users are e

Redo default binding should be control+y

2014-02-18 Thread Fidel N
Hey: Until now, I thought redo command for Leo just didn't work. I was writing a post on how it doesn't work, then I realized control+y is not the default binding for redo. Its been one year without redo, because my feeling was it was 'broken in Leo' I know the fault is absolutely mine (for no

Re: g.getScript no longer adds a Python encoding line

2014-02-18 Thread Fidel N
After this fix my scripts work again, as commented here . -- 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 em

Re: unadorned node body

2014-02-18 Thread Fidel N
Hi Edward, thanks for this. While we are on it, how about a p.something that returns all the stripped bodies, including the subtree? similar to g.getScript but already clean? I dont intend to use that yet, but maybe that can be useful for someone. -- You received this message because you are sub

Re: SyntaxError: encoding declaration in Unicode string

2014-02-16 Thread Fidel N
python 2.7 And I changed nothing in my scripts, just updated from leo 2 months old to the recent one. Actually, to be able to keep working, Im using the older one, until I can run the scripts on the new one, so I can try/test anything and give feedback. -- You received this message because yo

Re: How is the move to git going for you?

2014-02-14 Thread Fidel N
My feeling is that I will be able to +1 that as soon as I learn the meaning of the git terms being used. On Friday, February 14, 2014 5:52:10 PM UTC+1, Matt Wilkie wrote: > > I place myself in the same boat as Kent. I have core team write access, > but I'm more comfortable with issuing a pull re

Bookmarks plugin slowing down the outline

2014-02-14 Thread Fidel N
Hey: Recently updated to latest Leo version, and noticed that bookmarks plugin makes the outline work very slow, it takes about 1 second from the moment I click a node until Leo reacts. I know its the plugin because I disabled / enabled it and slowness goes away when disabled. Also, its loadi

Re: SyntaxError: encoding declaration in Unicode string

2014-02-14 Thread Fidel N
Hey Jake, thanks for your answer. No, not using p.script at all, just migrated to new Leo from an old version (a few months old) so my scripts didn't have that possibility yet. I wouldn't mind to adapt my scripts to the new way, if only I had a clue towards what to look for =) -- You receiv

Re: SyntaxError: encoding declaration in Unicode string

2014-02-14 Thread Fidel N
Just tested the same script in the previous version of Leo I was using, and there it works. Leo 4.11 final, build 6240, 2013-11-06 So the problem is related to that code change for sure. Would you recommend me to remove all the "u" before all the strings I use in my scripts for them to work aga

SyntaxError: encoding declaration in Unicode string

2014-02-14 Thread Fidel N
Hi: Just after updating, Im getting the following error in Leo log, and cant run my scripts: line 1: # -*- coding: utf-8 -*- line 2: #@+leo-ver=5 exception executing script File "", line 0 SyntaxError: encoding declaration in Unicode string The code recently changed towards encoding,

Re: Hooks not working (again)

2014-02-14 Thread Fidel N
The code is properly indented, it got broken when pasting it to the text: def Headclick(tag, keywords): g.es("Header clicked") g.registerHandler('headclick1', Headclick) -- You received this message because you are subscribed to the Google Groups "leo-editor" group. To unsubscribe from this

Hooks not working (again)

2014-02-14 Thread Fidel N
Hi: This is a follow up to this previous post. At that time, I couldn't make the hooks work, and then Terry's code worked for me (I stored it, so I am using exactly that same code that worked). But

How to call leo functions easily

2014-02-12 Thread Fidel N
Hi: Long ago we discussed in the group if there was a way to call a function inside Leo's code, but without knowing how to get there (the c.something.somethingelse.somemore part) I remember there was no clear easy way to reach a desired function directly. But I was wondering, would it be possi

Re: More small convenient scripts: g.es wrapping and unwrapping selected line

2014-02-11 Thread Fidel N
wow sounds very interesting easy to learn and convenient! Amazing, I wish I knew long ago hehe... Thanks, definitely going to incorporate that to my everyday coding! -- You received this message because you are subscribed to the Google Groups "leo-editor" group. To unsubscribe from this group a

More small convenient scripts: g.es wrapping and unwrapping selected line

2014-02-10 Thread Fidel N
Hey: I would like to make some more convenient scripts, such as the commented in the previous post (auto-commenting) and I thought about this one. I often find myself wrapping parts of scripts with "g.es" to check what it outputs, and soon ago I read Edward also does use g.es a lot, but its ofte

Re: Script enhancement wish: control+shift+parenthesis to be focus-sensitive

2014-02-10 Thread Fidel N
: > > if this tree-comment behaviour is implemented (and it sounds like a good > idea to me) I think it should use the Leo comment `@`, `@doc` instead of > commenting each line of the of body (though p.script() would...) > > > On Sun, Feb 9, 2014 at 9:58 PM, Fidel N &

Re: Script enhancement wish: control+shift+parenthesis to be focus-sensitive

2014-02-09 Thread Fidel N
In my Leo installation, it was automatically binded to shift+ ) and shift+( In fact, the behaviour is very close to what I suggest. Now, when used and the focus is in the Tree, it comments the last line of the body. It should comment all =) -- You received this message because you are subscribed

Script enhancement wish: control+shift+parenthesis to be focus-sensitive

2014-02-09 Thread Fidel N
Hey: What if when you use the hotkey for commenting a node, if the focus is in the body, it will comment the selected line (same as always) but if the focus is in the Tree, then it comments all the body! This way when you want to remove whole nodes from your script/text (but still have them ther

Re: Big problems with @auto

2014-02-08 Thread Fidel N
Not sure I fully understood the problem, but maybe there is another way. What if every definition were to be included as a new node, using @others for the code beneath. Then, since that would generate more nodes than the user would want, we could use a "full view" pane or mode, that would show

Re: Impossible to use alt-codes in body editor?

2014-02-04 Thread Fidel N
Hehe ye it can start the 'insert-alt-code' command, but I dont see how this would be more work: While you are typing in a leo body, you just write for instance: 233 Then do shift-left-left-left And then you use the given command. So that text transforms itself into your character. Thats less wo

Re: Impossible to use alt-codes in body editor?

2014-02-04 Thread Fidel N
Hi Jake: I think a walk around could be to just make a small script to transform your selected body text into the desired key. First you write your code normally in the text. Then you select it, and then you run the following script: MyCode=c.frame.body.bodyCtrl.getSelectedText() i,j = c.frame.

Re: [Solved] Bug: Images not rendering when text is added to a node's body other than the path or a directive

2014-02-04 Thread Fidel N
And the source code where to do that change is here: leoPluginsRef.leo#Plugins--> Qt only plugins-->@file viewrendered.py-->class ViewRenderedController (QWidget)-->update & helpers -- You received this message because you are subscribed to the Google Groups "leo-editor" group. To unsubscribe f

[Solved] Bug: Images not rendering when text is added to a node's body other than the path or a directive

2014-02-04 Thread Fidel N
Hi: Forgive me for double posting this, Im already posting it as a bug, but I needed to post the image showing how this works. When we have an @image node, if our body is just the path, it will render. But if we add some extra information, it wi

<    1   2   3   4   5   >