Re: Leo now displays trailing whitespace.....

2017-07-11 Thread vitalije
would be nice to have it explicitly shown. OTOH, if it is not intentional then user can see and fix that. Vitalije -- 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, se

Should search commands when there is no more hits return to position where search first started

2017-07-12 Thread vitalije
ngs.leo`). What are your preferences? Vitalije See also the discussion on issue #457 <https://github.com/leo-editor/leo-editor/issues/457> -- You received this message because you are subscribed to the Google Groups "leo-editor" group. To unsubscribe from this group and stop recei

Re: Should search commands when there is no more hits return to position where search first started

2017-07-12 Thread vitalije
> > > But let's not add this setting someone wants (or thinks they want) the new > way. And I wouldn't mind getting rid of the new code. > > Edward > I suppose Edward meant to say: But let's not add this setting *unless* someone (really) wants the new way. -- You received this message beca

Re: Should search commands when there is no more hits return to position where search first started

2017-07-12 Thread vitalije
command. If used often, it is easy to add shortcut and everything is fine. Vitalije -- 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-edito

Re: Should search commands when there is no more hits return to position where search first started

2017-07-12 Thread vitalije
ing to disturb anyone. Vitalije -- 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 ema

Re: Should search commands when there is no more hits return to position where search first started

2017-07-12 Thread vitalije
moved to core. Maybe you still use old plugin? What plugins are enabled in your settings? Vitalije -- 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-e

New command in context menu over splitter handle

2017-07-13 Thread vitalije
). It takes two adjacent components and rotates them. If they were left and right of handle, they become above and below handle, and vice versa. This command respects ratios both between two adjacent components and between them and rest of the layout. HTH Vitalije -- You received this message b

Re: New command in context menu over splitter handle

2017-07-13 Thread vitalije
Fixed at cc86d25. > > There were also problem if executed on splitter between tree and body without vr pane. Now it is fixed (I hope). Vitalije -- You received this message because you are subscribed to the Google Groups "leo-editor" group. To unsubscribe from this group an

Re: Should search commands when there is no more hits return to position where search first started

2017-07-13 Thread vitalije
odes and choose any node, then start search for anything. After one or more search commands, press Alt+F3 and you should see the effect of command. If nothing has been found by last search, there will be no effect of this command either. HTH Vitalije -- You received this message because y

Re: After press Alt+G, the cursor sometimes is not at the end of "Goto global line:"

2017-07-13 Thread vitalije
Fixed at 1199b28. This bug was introduced while solving issue #469. I hope this will solve both. Vitalije -- 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 ema

Re: There is a cursor flash in Minibuffer after use it

2017-07-14 Thread vitalije
Fixed at 1843a5a On Friday, July 14, 2017 at 9:54:19 AM UTC+2, zhaohe wang wrote: > > There is a cursor flash in Minibuffer after use it. When I edit text, the > flashing cursor catch my affection, I feel not good. > There is no this phenomenon before Leo 5.5, build 20170713172622, Thu Jul > 13

Re: A road to branch pollution: git stash goes back in time

2017-07-16 Thread vitalije
s true when using Leo with cache enabled, especially if using sqlite-leo version of Leo. I plan to investigate this thoroughly and until (if ever) I really understand what and how can possibly go wrong, I would keep all branches in dedicated folders. Vitalije -- You received this message becau

Re: A road to branch pollution: git stash goes back in time

2017-07-16 Thread vitalije
he record is actually problematic and extracting it for further investigation or use in unit tests. Vitalije -- You received this message because you are subscribed to the Google Groups "leo-editor" group. To unsubscribe from this group and stop receiving emails fr

Re: A road to branch pollution: git stash goes back in time

2017-07-16 Thread vitalije
eShareDB with same public API. So even if someone was using directly PickleShareDB, should not be able to notice any difference. The only noticeable difference will be in file system. SqlitePickleShare will use one file while PickleShareDB was creating and deleting many files in one folder.

New backend for Leo Cacher

2017-07-16 Thread vitalije
seconds And with old PickleSareDB backend: read 150 files in 0.71 seconds read outline in 0.93 seconds As you can see new code is a bit faster. All unit tests pass both with switch on and off. Vitalije -- You received this message because you are subscribed to the Google Groups "leo-e

Re: A road to branch pollution: git stash goes back in time

2017-07-16 Thread vitalije
> > The recovered nodes are *not* a sign of problems (any more). They could > be called a courtesy--a note that code is different in the new branch from > the previous branch. > > The acid test is to save all files (write-at-file-nodes) after switching > branches. Any changed file is a seriou

Re: New backend for Leo Cacher

2017-07-17 Thread vitalije
Fixed at 8d6a7ab. My fault, sorry about that. Recently, I have switched to Python3, and now I am making Python2 crashers. Vitalije -- You received this message because you are subscribed to the Google Groups "leo-editor" group. To unsubscribe from this group and stop receiving emai

Re: ENB: I may reject or defer the v-lines branch

2017-07-18 Thread vitalije
les that use all of Leo's directives that can be used for testing? If we don't have it yet, is anybody willing to make or share such examples files in this forum or on github. Vitalije -- You received this message because you are subscribed to the Google Groups "leo-editor&quo

Re: ENB: I may reject or defer the v-lines branch

2017-07-18 Thread vitalije
Well, it seems while I was writing previous post, almost everything has been already said. -- 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: ENB: I may reject or defer the v-lines branch

2017-07-18 Thread vitalije
> > > But doesn't this negate the supposed benefits of the lines property? It > might even hurt performance. > > Yes it would hurt, but I believe it still can have some minor performance advantage. It will, however, be gain in readability and good step toward incorporating this new property. L

Re: ENB: I may reject or defer the v-lines branch

2017-07-18 Thread vitalije
On Tuesday, July 18, 2017 at 7:29:50 PM UTC+2, vitalije wrote: > > >> But doesn't this negate the supposed benefits of the lines property? It >> might even hurt performance. >> >> Yes it would hurt, but I believe it still can have some minor performance >

Re: ENB: I may reject or defer the v-lines branch

2017-07-18 Thread vitalije
One more idea. Possible places of getting out of sync are when user uses some code outside Leo. If that external code is not aware of lines property it will never mess with it and it will never be broken by the presence of this property. The only way this external code can be hurt by this proper

Re: ENB: I may reject or defer the v-lines branch

2017-07-18 Thread vitalije
> > I suggest close #366 and mark it as "Won't Do". There are much more > important projects we can work on. > > Well, until lines property gets any real case scenario to show if it can give some substantial benefit, I must agree to close #366. Vitalije -- You

Experiments with read/write external files

2017-07-19 Thread vitalije
s old and had proven to work correctly, maybe this experiment can give you some new ideas that can be used somewhere else in Leo code. All comments are welcome. Vitalije PS: this is example of using Edward's receipt for live development inside Leo. I created script-button of this dev node a

Re: Experiments with read/write external files

2017-07-19 Thread vitalije
In first attempt I have attached bad version of .leo file. Now I have re-uploaded correct version. I hope nobody has downloaded it yet. Vitalije -- You received this message because you are subscribed to the Google Groups "leo-editor" group. To unsubscribe from this group and stop

Re: Experiments with read/write external files

2017-07-19 Thread vitalije
On Wednesday, July 19, 2017 at 4:12:34 PM UTC+2, Terry Brown wrote: > > not sure how much of that code is relevant here. > > Perhaps it is not relevant, but think of this thread just as theme for discussing new strategy in parsing lines of text into tree structure. Vitalije --

Re: Experiments with read/write external files

2017-07-19 Thread vitalije
> > > The others_replacer and others_replacer concern me. I don't see how they > handle nested @others properly. > > That is part of writing code. Function all_lines(p, zero_ -- You received this message because you are subscribed to the Google Groups "leo-editor" group. To unsubscribe from

Re: Experiments with read/write external files

2017-07-19 Thread vitalije
mistaken) needs not to be done in every node just the top. I think that it could be used body_lines_of_top_node for all nodes. It may be the case of premature optimization that I separated those two generators. I presume that yours files have the same content as mine. Vitalije -- You received

Re: Experiments with read/write external files

2017-07-19 Thread vitalije
ok = False return ok The difference is after line if v.isAtFileNode, else part has been added. And on my machine it reports that all files has been read ok. Vitalije. -- You received this message because you are subscribed to the Google Groups "leo-editor&qu

Re: Experiments with read/write external files

2017-07-19 Thread vitalije
eal file line numbers displayed in gutter. In many cases running command goto-global-line would not be necessary. I have started this experiment looking for a good use case for lines property. It turned out to be a useful experiment on its own, but I still have a feeling that the combination of the

Re: ENB: What I learned from Vitalije's new read/write code

2017-07-20 Thread vitalije
ay in computing I can mostly because of using Leo. Vitalije -- 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 pos

Re: ENB: What I learned from Vitalije's new read/write code

2017-07-20 Thread vitalije
re is hard coded path and change it to your leo installation. Vitalije -- 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.

Re: ENB: What I learned from Vitalije's new read/write code

2017-07-21 Thread vitalije
er if it would complete code or are there some other exotic features that I am not aware of. Vitalije -- 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

Re: ENB: What I learned from Vitalije's new read/write code

2017-07-21 Thread vitalije
leo-editor/snippets/tree/master/experiments> folder. Vitalije -- 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: ENB: What I learned from Vitalije's new read/write code

2017-07-21 Thread vitalije
It is a windows/linux path separator difference. I'll fix that ASAP. -- 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 po

Re: ENB: What I learned from Vitalije's new read/write code

2017-07-21 Thread vitalije
Done at 680ffe63 <https://github.com/leo-editor/snippets/commit/680ffe6318d3ebd38242033d94050d6cfc65ec5a> On Friday, July 21, 2017 at 6:55:02 PM UTC+2, vitalije wrote: > > It is a windows/linux path separator difference. I'll fix that ASAP. > -- You received this mes

Re: ENB: What I learned from Vitalije's new read/write code

2017-07-21 Thread vitalije
Finally all derived files from Leo installation directory can be successfully read by new Read code. See 6bc0bdba <https://github.com/leo-editor/snippets/commit/6bc0bdba831d84bf1eeb53cd07a0d738a93765f2> . Vitalije -- You received this message because you are subscribed to the Google

Re: ENB: What I learned from Vitalije's new read/write code

2017-07-22 Thread vitalije
ake patterns more universal. Those patterns can be written in different ways and some are more efficient than others, so I wanted to check them in the end and try to profile and optimize them. Though, that might not be necessary at all. Vitalije -- You received this message because you are subscri

Re: ENB: What I learned from Vitalije's new read/write code

2017-07-22 Thread vitalije
That file has some rarely used directives and I expect that new code will fail on this one. Current version is 49d9bd4 in leo-editor/snippets. Vitalije -- You received this message because you are subscribed to the Google Groups "leo-editor" group. To unsubscribe from this group and st

Re: ENB: What I learned from Vitalije's new read/write code

2017-07-22 Thread vitalije
Writing all derived files from Leo installation using new Write code succeeds. Experimental outline is in snippets 91930361 <https://github.com/leo-editor/snippets/commit/91930361d2d3e5dec389693254c30ceeca7255c2> Vitalije > > -- You received this message because you are subsc

Re: ENB: What I learned from Vitalije's new read/write code

2017-07-24 Thread vitalije
Comparing load_derived_file and at.read using file leo/test/activeUnitTests.txt (one of the largest derived files), on my machine gave following results: - at.read takes on average 409.6 ms (10 runs) - load_derived_file takes on average 123.3 ms (10 runs) Vitalije -- You received this mess

New plugin line_numbering

2017-07-27 Thread vitalije
r. The effect of this plugin can be temporarily turned off and on using new command 'line-numbering-toggle'. The plugin also allows to mark a node as fictive root for line numbering purposes using command 'toggle-line-numbering-root'. Vitalije -- You received this message beca

Re: New plugin line_numbering

2017-07-28 Thread vitalije
e can see where is that line, if start of script is marked with '*toggle-line-numbering-root*' command. I hope that this explanation is more clear. Vitalije -- You received this message because you are subscribed to the Google Groups "leo-editor" group. To unsubscribe from t

Re: ENB: What I learned from Vitalije's new read/write code

2017-07-28 Thread vitalije
mentation of vlines is trivial even with caching. The only drawback is that it should be re-implemented in all scripts that use it. Vitalije -- You received this message because you are subscribed to the Google Groups "leo-editor" group. To unsubscribe from this group and stop re

Re: command to move between outlines but keep focus in Body - am I missing something?

2017-07-28 Thread vitalije
I usually use Alt-arrows to start moving through nodes, and Return when I want to enter body focus again. I am not aware of any command that combines the two, but it is just one key stroke. Vitalije -- You received this message because you are subscribed to the Google Groups "leo-e

Re: New backend for Leo Cacher

2017-07-31 Thread vitalije
d few problems that I have noticed so far, I have fixed and pushed corrected version. There maybe some problems that will show up once more people start to use it. I will do my best to fix any problem reported ASAP. So, I am also for setting `SQLITE=True` in master branch. Vitalije -- You rec

Re: New backend for Leo Cacher

2017-07-31 Thread vitalije
> > ​Did you push master? I don't see SQLITE=True in leoCache.py​. And yes, > it's working for me. > > Edward > Done at a1043408d. > -- You received this message because you are subscribed to the Google Groups "leo-editor" group. To unsubscribe from this group and stop receiving emails f

Re: Bookmarks plugin - crashes saving layout

2017-07-31 Thread vitalije
ing None. I couldn't spot bug because on my machine keys for layouts already existed. Just when starting witht empty global cache this bug was visible. Vitalije -- You received this message because you are subscribed to the Google Groups "leo-editor" group. To unsubscribe from thi

Re: Bookmarks plugin - crashes saving layout

2017-07-31 Thread vitalije
> > > > As an aside, Vitalije, I see you don't have the git commit hooks that > > update the build number for Leo - a1043408d36f is more recent than > > 20170721094758. > > > > Cheers -Terry > > > > I am not aware of this hooks. How

Re: Bookmarks plugin - crashes saving layout

2017-07-31 Thread vitalije
Thanks. I have installed hooks now and made first commit/push. I hope it worked now. It changed asctime to localized representation of time. I don't know if it matters. Vitalije -- You received this message because you are subscribed to the Google Groups "leo-editor" group.

Re: Bookmarks plugin - crashes saving layout

2017-07-31 Thread vitalije
I figured it out. It was enough just to insert a line: LC_ALL=en_US.utf-8 in commit-msg hook. The next commit will have English date in asctime field. Vitalije -- You received this message because you are subscribed to the Google Groups "leo-editor" group. To unsubscribe from this

Re: Bookmarks plugin - crashes saving layout

2017-07-31 Thread vitalije
Is it necessary to have TZ set? If it needs to be UTC maybe it would be better to use {date -u}. Vitalije -- 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 ema

Where is jEdit2Py script?

2017-08-05 Thread vitalije
ut I can't find jEdit2Py, neither I know what it was supposed to do. Vitalije -- 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: Where is jEdit2Py script?

2017-08-05 Thread vitalije
Thanks. It seems that jEdit conventions for writing mode files have been changed and that either jEdit2Py or JEditColorizer (or both) need to be changed to use recent versions of jEdit xml modes. I am studying what has changed and will report here later. Vitalije -- You received this message

Re: Where is jEdit2Py script?

2017-08-05 Thread vitalije
r was hard-coded for windows Vitalije -- 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, se

Re: Solving the problem posed by #538

2017-08-08 Thread vitalije
project IDE is/(will be) beneficial? As I stated earlier, this proposal can be implemented as a plugin. I think I am going to write this plugin at least for my own projects. Vitalije -- You received this message because you are subscribed to the Google Groups "leo-editor" group. To un

Re: New plugin line_numbering

2017-08-11 Thread vitalije
> > I would like to eliminate the momentary flash between the calculation of > the initial "local" line numbers and the eventual "global" numbers. > Vitalije, are you willing to look into this? > Sorry for delayed response. The last few days I was not at h

Re: TypeError: unhashable type: 'Position'

2017-08-11 Thread vitalije
New commit f02eb28 <https://github.com/leo-editor/leo-editor/commit/f02eb284d5a06eeeaadda5036e1684a4124b5151> contains some fixes to nodetags.py plugin. Please try it and report if you find any remaining issue. Vitalije -- You received this message because you are subscribed to the

Re: TypeError: unhashable type: 'Position'

2017-08-11 Thread vitalije
On Friday, August 11, 2017 at 3:54:23 PM UTC+2, zhaohe wang wrote: > > run well now,thanks! > Thanks for confirmation. Vitalije -- You received this message because you are subscribed to the Google Groups "leo-editor" group. To unsubscribe from this group and stop recei

Re: New plugin line_numbering

2017-08-12 Thread vitalije
fixed with (for example: three digits in normal font), and when we need more digits to paint them with smaller font or x-scaled to fit within fixed gutter width. Vitalije -- You received this message because you are subscribed to the Google Groups "leo-editor" group. To unsubscrib

Re: New plugin line_numbering

2017-08-12 Thread vitalije
on my machine it doesn't show whole four digits. It reserves less space than is necessary. I see there is setting gutter-w-adjust and I try to tune it. Also I think that in order to have line numbers right aligned with the simple string padding font family must be mono-spaced. Vitalije -

Re: New plugin line_numbering

2017-08-12 Thread vitalije
> > > RuntimeError: generator didn't yield > > Please fix this :-) I don't think Leo's plugin handlers have a chance of > catching exceptions in callbacks. > Fixed at 2e9b9e5 . -- You received this mes

Merged sqlite-leo branch in master

2017-08-12 Thread vitalije
sk me if there is something that needs more explanation. I have been using this branch for more than a month and it served me very well. However, whenever merge is involved there is possibility something won't work as advertised. Please report any problem and I will try to fix it ASAP

Re: Merged sqlite-leo branch in master

2017-08-12 Thread vitalije
On Saturday, August 12, 2017 at 1:52:00 PM UTC+2, Edward K. Ream wrote: > > On Sat, Aug 12, 2017 at 6:19 AM, vitalije > > wrote: > > ​Something is not right. When load my local copy of leoPy.leo, @file > leoAtFile.py does not contain checkExternalFileAgainstDb. > &g

Re: Merged sqlite-leo branch in master

2017-08-12 Thread vitalije
This is very strange. When I put your leoPy.leo in my leo/core/ folder, I can open it without any problem. Writing all files under Code reports all unchanged files, and: git status gives no changed files at all. Vitalije -- You received this message because you are subscribed to the Google

Re: leoPy.leo.db says it's reading all files

2017-08-14 Thread vitalije
hange in external file is detected (if hash don't match), then external file is re-read and outline is updated. Probably message is misleading, but I didn't pay attention to it. I haven't realized that it should be suppressed if external file is not changed. Vitalije -- You r

Re: leoPy.leo.db says it's reading all files

2017-08-14 Thread vitalije
This is log output from revision before merge with sqlite-leo. Leo Log Window Leo 5.5, build 20170810112756, Thu Aug 10 11:27:56 CDT 2017 Not running from a git repo Python 3.4.3, PyQt version 5.2.1 linux isPython3: True caching enabled setting leoID from os.getenv('USER'): 'vit

Re: leoPy.leo.db says it's reading all files

2017-08-15 Thread vitalije
he reason why cache never was valid on Windows. Vitalije -- 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: leoPy.leo.db says it's reading all files

2017-08-15 Thread vitalije
Done at d9f16f2. > s = s.replace('\r\n', '\n') > > TypeError: a bytes-like object is required, not 'str' > Silly of me. Vitalije -- You received this message because you are subscribed to the Google Groups "leo-editor" group. To u

Expect to see delay next time you open your outline

2017-08-18 Thread vitalije
s, but pickler was dumping them as objects. As a consequence, layouts were impossible to unpickle regardless of used pickle protocol. The solution was to use json to dump and load layout values before storing them to cache. Vitalije -- You received this message because you are subscribed

Re: Expect to see delay next time you open your outline

2017-08-18 Thread vitalije
ues (?, ?)', ('__cache_pickle_protocol__', sqlite3.Binary(zlib.compress(pickle.dumps(2, protocol=2) conn.commit() g.es('ok') except sqlite3.Error as e: g.es_exception(e) Vital

Re: .db files: how useful are they?

2017-08-18 Thread vitalije
ting very nice asynchronous code using generators. These days, I am writing a small web project using combination of tornado for serverside and clojurescript for frontend. Relying on new python3.6 stuff it is really pleasant experience. Vitalije -- You received this message because you are su

New commands for synchronizing Leo documents

2017-09-05 Thread vitalije
want something to publish in the reference file, use update-ref-file command, and when you do git pull, use read-ref-file command afterwards. Vitalije -- You received this message because you are subscribed to the Google Groups "leo-editor" group. To unsubscribe from this gr

Re: New commands for synchronizing Leo documents

2017-09-05 Thread vitalije
the actions will be exactly what I intend to do. Like some potentially dangerous scripts offer dry run option just to show what will be executed. Those scripts can be a one time task, but perhaps they may be needed again, so I want to keep them around. That is why I value my copies of reference

Re: Web help wanted: viewing Joe Orr's Leo view page locally

2017-09-12 Thread vitalije
ach expression. To build it one need to install: - node and its npm (package manager) - java (for compiling clojurescript) - leiningen (a clojure build tool) - grunt (node build tool) The rest of the libraries and tools will be automatically downloaded by these build tools. Vitalij

Re: Missing documentation for 5.6, esp. *-ref-file commands

2017-09-13 Thread vitalije
any changes made to the *public* part of this outline. The *public* part of outline consists of all nodes above the special *separator* node. This *separator* node is created by executing `set-reference-file` command.''' Vitalije On Tuesday, Se

Improved 'extract' command

2017-09-16 Thread vitalije
he child's body text. 3. Otherwise, the first line becomes the child's headline, and all selected lines become the child's body text. Vitalije -- You received this message because you are subscribed to the Google Groups "leo-editor" group. To unsubscribe from this gro

Re: Improved 'extract' command

2017-09-16 Thread vitalije
headline. For example regex from above can be written in two lines like so: \s*def\s+(\w+) \s*class\s+(\w+) Vitalije -- 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, sen

Re: Improved 'extract' command

2017-10-06 Thread vitalije
I would not expect multi-line patterns to work (at least without some changes in code). AFAIR function extractDef tries only first line not whole selected region. Perhaps it can be changed to send whole selection to pattern checking. I can't check it until some day next week. Vitalij

Re: Improved 'extract' command

2017-10-06 Thread vitalije
ad your whole message (it sims like I am also in mode of taking only first line in account :-) ) Yes, you are right. I was trying to change as little as possible, but I'd love if extractDef would allow multi-line regex patterns. Vitalije -- You received this message because you are subscri

Re: Improved 'extract' command

2017-10-19 Thread vitalije
k the proper solution would be to find all matches and then to choose one with the lowest indentation. Presumably, it would be the most common thing to do, something that most users would expect, I imagine. Am I wrong in this assumption? Vitalije -- You received this message because you are subsc

Re: Improved 'extract' command

2017-10-19 Thread vitalije
ipt files. That is why I find the extract command so useful to me. If you have never heard of extract command or you have tried it before and weren't satisfied with what it did, now is the time to give it a try. Vitalije -- You received this message because you are subscribed to the Goo

Re: Improved 'extract' command

2017-10-19 Thread vitalije
wouldn't be too complicated to make such feature in Leo, but those short tips are to be written and collected first. Vitalije -- You received this message because you are subscribed to the Google Groups "leo-editor" group. To unsubscribe from this group and stop receiving emails

Re: Web help wanted: viewing Joe Orr's Leo view page locally

2017-10-20 Thread vitalije
`npm run build` must be executed in terminal inside project folder. Project is what you get by git cloning repository https://github.com/kaleguy/leoviewer not leo-examples. I haven't tried it, just guessing. Vitalije On Thursday, October 19, 2017 at 11:29:36 PM UTC+2, Edward K. Ream

Re: ENB: Cracking the Jupyter code

2017-11-06 Thread vitalije
. and wait for the response messages again through zeromq connections. Everything is in formatting messages adequately using data from Leo tree and parsing/unpacking data from responses when they arrive displaying somehow in Leo. HTH Vitalije -- You received this message because you are subscrib

Re: ENB: Cracking the Jupyter code

2017-11-06 Thread vitalije
jupyter_console works, but not instantiate or run any part of it in Leo process. I am totally guessing this, I haven't done anything with jupyter yet. This is what I believe according to the discussion so far. Vitalije -- You received this message because you are subscribed to the Google G

Re: ENB: Cracking the Jupyter code

2017-11-06 Thread vitalije
to re-implement all code from server that is intended to deal with kernels. Terry, please correct me if I misunderstood you. Vitalije -- You received this message because you are subscribed to the Google Groups "leo-editor" group. To unsubscribe from this group and stop receiving emai

Re: ENB: Cracking the Jupyter code

2017-11-06 Thread vitalije
t message from the shell channel. Instead of using every time another kernel enclosed in a python context which will expire when the context is left, perhaps kernel client can be created directly using jupyter_client.KernelClient(**kwargs) and instance stored in c.user_dict. It is non-blocking client. HT

Re: ENB: Cracking the Jupyter code

2017-11-07 Thread vitalije
argument, when sending requests for computation and if it is found, than it waits for the reply and returns it. Look in jupyter_client.blocking.client module. There you can see what is changed in blocking class. Now, I have to run. HTH Vitalije -- You received this message because you are

Re: ENB: Cracking the Jupyter code

2017-11-07 Thread vitalije
https://jupyter-client.readthedocs.io/en/stable/api/manager.html#utility-functions This is where I have found it. I had no prior experience with jupyter at all. Vitalije -- You received this message because you are subscribed to the Google Groups "leo-editor" group. To unsubscribe

Re: ENB: Cracking the Jupyter code

2017-11-07 Thread vitalije
| ​The script does not use getMessagesUntilIdle. Does it do what you are talking about?​ This was remaining of some previous experiment which turned out to be unnecessary, but I have forgoten to delete it. -- You received this message because you are subscribed to the Google Groups "leo-edito

Re: ENB: Prototype for non-blocking jupyter code

2017-11-08 Thread vitalije
waitTo: g.es('timeout') return None g.es('reslult is:', execute_one_cell(code)) I have added in calculation code sleep of 0.5 sec to show that get_shell_msg is not blocking. Vitalije -- You received this message because you are subscribed to the

Re: ENB: Prototype for non-blocking jupyter code

2017-11-08 Thread vitalije
It sims that the only non abstract KernelClient subclass in jupyter_client is BlockingKernelClient. There is also in jupyter_client.threading module ThreadedKernelClient which is also abstract. Vitalije -- You received this message because you are subscribed to the Google Groups "leo-e

Re: ENB: Prototype for non-blocking jupyter code

2017-11-08 Thread vitalije
IMHO can be used in blocking mode, because it is used just once when starting kernel. Vitalije -- 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

Re: saving cloned @clean files in different @path's

2017-11-08 Thread vitalije
#x27;save2' handler which is invoked after outline is saved and in the handler make copies of external files. Vitalije -- You received this message because you are subscribed to the Google Groups "leo-editor" group. To unsubscribe from this group and stop receiving emails fr

Re: saving cloned @clean files in different @path's

2017-11-09 Thread vitalije
On Thursday, November 9, 2017 at 4:59:45 PM UTC+1, Edward K. Ream wrote: > > On Wed, Nov 8, 2017 at 1:03 PM, vitalije > > wrote: > > I am not 100% sure, but I believe that this restriction is dictated with >> the present read or write algorithm. >> >

Re: ENB: Discussion of the fix to #579 re key bindings

2017-11-18 Thread vitalije
or(command_name) doBindSomehow(shortcut, f) # I suppose there is somewhere dictionary mapping from command names to # actual functions (I have named it here commandsDict) # This is totally improvised solution, that I haven't tested. Feel free to ignore. Vitalije -- You received this mes

Re: ENB: Discussion of the fix to #579 re key bindings

2017-11-19 Thread vitalije
uld allow it to complete job in a single pass. Speaking about its proper place in timeline, I am not advocating any precise location in class-space, although I did mention plugins manager, it was not really my intention. I suppose far better location would be in load manager. Vitalije -- Yo

Re: List of all *python* dependencies and why

2017-11-23 Thread vitalije
x27;, onClose) g.registerHandler('scrolledMessage', show_scrolled_message) return ok Vitalije -- 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: Summary of installation discussions

2017-11-28 Thread vitalije
eo tutorials on youtube "How to install on (Windows/Linux/Mac)". This year I have watched several such videos to find out how to install some packages. We must admit that at least for some users, it is easier to watch video than to read docs. Vitalije -- You received this messag

<    1   2   3   4   5   6   7   8   >