Re: Extract command

2019-06-14 Thread Edward K. Ream
On Thu, Jun 13, 2019 at 10:55 AM Edward K. Ream wrote: You can discover this using Alt-0 p.insert. > Correction: Alt-1 toggles the autocompleter. Edward -- You received this message because you are subscribed to the Google Groups "leo-editor" group. To unsubscribe from this group and stop

Re: Extract command

2019-06-13 Thread Matt Wilkie
I think I get the same as Rob. Maybe the little window is an undocked vr pane? On Thursday, 13 June 2019 18:43:58 UTC-7, Chris George wrote: > > For me, Alt-o opens the Outline menu. Alt-0 (zero) opens the vr pane with > a render of whatever is in the body. > > Chris > > On Thu, Jun 13, 2019

Re: Extract command

2019-06-13 Thread Chris George
For me, Alt-o opens the Outline menu. Alt-0 (zero) opens the vr pane with a render of whatever is in the body. Chris On Thu, Jun 13, 2019 at 3:45 PM Rob wrote: > Alt-0 opens up a small window with the text of the current node; no option > to add anything else or interact with it in any way

Re: Extract command

2019-06-13 Thread Rob
Alt-0 opens up a small window with the text of the current node; no option to add anything else or interact with it in any way that I can tell. This is in Windows. Rob... On Thursday, June 13, 2019 at 11:55:35 AM UTC-4, Edward K. Ream wrote: > > > > On Thu, Jun 13, 2019 at 10:23 AM Chris

Re: Extract command

2019-06-13 Thread Edward K. Ream
On Thu, Jun 13, 2019 at 10:23 AM Chris George wrote: > Hi Rob, > > I think this is a good place to start: c_ec.extract & helpers. > > > insertAsLastChild() seems to be the operator but there doesn't appear to > be such a thing as insertAsFirstChild() or insertAsNextChild() so I am not > sure

Re: Extract command

2019-06-13 Thread Chris George
ris >> >> >> On Thursday, June 13, 2019 at 7:30:03 AM UTC-7, Rob wrote: >>> >>> I use the Extract command frequently (Ctrl-Shift-D) to create nodes from >>> body text; very useful command. However, I usually prefer the created node >>> to be

Re: Extract command

2019-06-13 Thread Rob
as insertAsFirstChild() or insertAsNextChild() so I am not > sure where to go from here. > > HTH, > > Chris > > > On Thursday, June 13, 2019 at 7:30:03 AM UTC-7, Rob wrote: >> >> I use the Extract command frequently (Ctrl-Shift-D) to create nodes from &g

Re: Extract command

2019-06-13 Thread Chris George
at 7:30:03 AM UTC-7, Rob wrote: > > I use the Extract command frequently (Ctrl-Shift-D) to create nodes from > body text; very useful command. However, I usually prefer the created node > to be be the first child node, not the last, so I end up having to move the > node to

Extract command

2019-06-13 Thread Rob
I use the Extract command frequently (Ctrl-Shift-D) to create nodes from body text; very useful command. However, I usually prefer the created node to be be the first child node, not the last, so I end up having to move the node to the first position. Is there a way to change the default

Re: Improved 'extract' command

2017-10-20 Thread Edward K. Ream
On Thu, Oct 19, 2017 at 9:37 AM, Edward K. Ream wrote: ​I don't see an importer for clojurescript, but it probably would not be > too difficult to create it. > ​Presumably the clojure importer would be a slight modification of plugins/importers/elisp.py.​ Edward -- You

Re: Improved 'extract' command

2017-10-19 Thread Kent Tenney
one for each @file @auto @clean ... one for @path one for @button one for @menu one for ... ... one which says "so many features even Edward can't keep up" On Thu, Oct 19, 2017 at 11:09 AM, Edward K. Ream wrote: > > > On Thu, Oct 19, 2017 at 10:47 AM, vitalije

Re: Improved 'extract' command

2017-10-19 Thread Chris George
Abbreviations, including the ability to collect data via scripts. Chris On Thu, Oct 19, 2017 at 9:09 AM, Edward K. Ream wrote: > > > On Thu, Oct 19, 2017 at 10:47 AM, vitalije wrote: > >> >>> ​Have you tried parse-body? It uses Leo's importer code

Re: Improved 'extract' command

2017-10-19 Thread Edward K. Ream
On Thu, Oct 19, 2017 at 10:47 AM, vitalije wrote: > >> ​Have you tried parse-body? It uses Leo's importer code for the >> @language in effect, if one exists. See the node "ic.parse_body & helper". >> This should save you lots of work for the >> > > I wasn't aware of this

Re: Improved 'extract' command

2017-10-19 Thread vitalije
> > > ​Have you tried parse-body? It uses Leo's importer code for the @language > in effect, if one exists. See the node "ic.parse_body & helper". This > should save you lots of work for the > I wasn't aware of this command. I will definitely try it. It is just another example how many

Re: Improved 'extract' command

2017-10-19 Thread Edward K. Ream
f course, it was designed to work with python definitions, but surely > there are users who use Leo for writing code in other languages as well. My > conclusion was that most probably those users haven't been using extract > command at all. How else could it be possible that nobody ever complaine

Re: Improved 'extract' command

2017-10-19 Thread vitalije
was designed to work with python definitions, but surely there are users who use Leo for writing code in other languages as well. My conclusion was that most probably those users haven't been using extract command at all. How else could it be possible that nobody ever complained about its

Re: Improved 'extract' command

2017-10-19 Thread Edward K. Ream
On Thu, Oct 19, 2017 at 2:02 AM, vitalije wrote: > > > On Friday, October 13, 2017 at 8:53:10 PM UTC+2, Terry Brown wrote: >> >> Hmm, some unforeseen challenges. >> >> I have slightly change algorithm for detecting headline in extractDef > method. Now it checks the first

Re: Improved 'extract' command

2017-10-19 Thread vitalije
On Friday, October 13, 2017 at 8:53:10 PM UTC+2, Terry Brown wrote: > > Hmm, some unforeseen challenges. > > I have slightly change algorithm for detecting headline in extractDef method. Now it checks the first line of selection and only if there is no match, checks the whole selection. As

Re: Improved 'extract' command

2017-10-18 Thread Edward K. Ream
`@data extract-patterns`. >> > > ​Many thanks for this work. Rev 449d675 revises the docstring for the > extract command. As I write this, I see that the docstring should​ mention > the new @data node. > ​Rev 478a7b6 ​adds the following to the docstring (used by the

Re: Improved 'extract' command

2017-10-13 Thread Terry Brown
Hmm, some unforeseen challenges. I have this code: ---cut here--- // Promise wrapper for simple XMLHttpRequest GET export function getData(url) { return new Promise(function(resolve, reject) { var req = new XMLHttpRequest() req.open('GET', url) req.onload = function

Re: Improved 'extract' command

2017-10-13 Thread Terry Brown
et me know, anyone, if the extract command starts acting odd. Ran unit tests ok. 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+

Re: Improved 'extract' command

2017-10-06 Thread vitalije
> > i.e. the name I want to use for the node, `goTo`, is on the *second* >> line. Just glanced and the code and see only the first line of the >> selection is passed to the pattern matching >> >> Looks like (?ms) in a regex will put re into multi-line dot matches all >> mode, I guess

Re: Improved 'extract' command

2017-10-06 Thread vitalije
you need groups in pattern, make them with (?: ) syntax > > so that the headline is captured in group(1). In the example above > > first group that matches 'def' or 'class' keyword is surrounded with > > '(?:' and ')' in order to skip this group from the output groups and

Re: Improved 'extract' command

2017-10-06 Thread Terry Brown
t. > > Note: if you need groups in pattern, make them with (?: ) syntax > so that the headline is captured in group(1). In the example above > first group that matches 'def' or 'class' keyword is surrounded with > '(?:' and ')' in order to skip this group from the output groups and > le

Re: Improved 'extract' command

2017-09-18 Thread Edward K. Ream
On Sat, Sep 16, 2017 at 3:50 AM, vitalije <vitali...@gmail.com> wrote: > Done at 41ebaba <http://41ebaba5cc720beefa752649007a9c409c33a5b1>. > > Added support for `@data extract-patterns`. > ​Many thanks for this work. Rev 449d675 revises the docstring for the extr

Re: Improved 'extract' command

2017-09-16 Thread vitalije
group to be captured at index 1. 'extract` command relies on this convention that headline should be captured in group at index 1. It is also possible to write several regex patterns and avoid all other groups except the one that captures headline. For example regex from above can be written

Improved 'extract' command

2017-09-16 Thread vitalije
Revision 0b4223f1d <http://0b4223f1deed8f90f5a424eee313f659e4725c7c> contains improved version of extract command. It is very useful command especially when manually importing/organizing source files. I guess it wasn't used very often for other languages than python. It can no