Re: Rev 79ba3d: potential crasher in refresh-from-disk

2017-07-09 Thread vitalije
shouldDelete is part of sqlite-leo branch it somehow escaped. I remember deleting all those lines but it seems that I haven't saved my changes. Sorry about that. Vitalije -- You received this message because you are subscribed to the Google Groups "leo-editor" group. To unsubscribe from this

Re: new commands for editing fonts, shortcuts,...

2017-07-09 Thread vitalije
> > > ​Such choices are yours to make. > O.k. I think warning will do in such cases. 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

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

2017-07-09 Thread Edward K. Ream
On Sun, Jul 9, 2017 at 10:07 AM, Terry Brown wrote: I wouldn't use stash in that case. For me step three would be > > git checkout -b harder_than_i_thought > git commit -a > ​Thanks for this. You can't switch branches with uncommitted work, so I didn't realize this was

Re: How does instant update work in Pharo?

2017-07-09 Thread Offray Vladimir Luna Cárdenas
I really dislike that video. I mean structurally. The speaker goes establishing an authority figure at the beginning that claims "Smalltalk is dead", and after that it goes one hour telling why that happening and how this can happen to other community/language (Ruby), basically using anecdotes. I

Re: How does instant update work in Pharo?

2017-07-09 Thread Edward K. Ream
On Sun, Jul 9, 2017 at 6:42 PM, Edward K. Ream wrote: On Sun, Jul 9, 2017 at 11:43 AM, Offray Vladimir Luna Cárdenas < > off...@riseup.net> wrote: > >> Well my idea is kind of the opposite: Instead of creating a Smalltalk >> environment I try to create a Leo (alike)

Re: Rev 79ba3d: potential crasher in refresh-from-disk

2017-07-09 Thread vitalije
Crasher finally removed at a7798aa. On Sunday, July 9, 2017 at 8:06:01 PM UTC+2, vitalije wrote: > > shouldDelete is part of sqlite-leo branch it somehow escaped. I remember > deleting all those lines but it seems that I haven't saved my changes. > Sorry about that. > Vitalije > -- You

Re: How does instant update work in Pharo?

2017-07-09 Thread Edward K. Ream
On Sun, Jul 9, 2017 at 11:43 AM, Offray Vladimir Luna Cárdenas < off...@riseup.net> wrote: > Well my idea is kind of the opposite: Instead of creating a Smalltalk > environment I try to create a Leo (alike) environment inside Pharo > Smalltalk. > ​I think that would be a worthy goal. I've

Re: new commands for editing fonts, shortcuts,...

2017-07-09 Thread Edward K. Ream
On Sun, Jul 9, 2017 at 1:07 PM, vitalije wrote: > >> ​Such choices are yours to make. >> > O.k. I think warning will do in such cases. > ​Good :-) Edward​ -- You received this message because you are subscribed to the Google Groups "leo-editor" group. To unsubscribe

Re: Rev 79ba3d: potential crasher in refresh-from-disk

2017-07-09 Thread Edward K. Ream
On Sun, Jul 9, 2017 at 1:57 PM, vitalije wrote: Crasher finally removed at a7798aa. > ​Thanks. Glad to hear you are using pyflakes. It's well worth the initial problems.​ ​ For example, it is sometimes useful to assert an import that may not always be used: import

Aha: outline-oriented git diffs are straightforward

2017-07-09 Thread Edward K. Ream
This Aha belongs in #501: create outline-oriented git diff , but I want to talk about this here so that a wider audience will be sure to see it. The Aha: *don't use git to do the diff!* Instead, use git to "deliver" the files to be diffed.

Re: Aha: outline-oriented git diffs are straightforward

2017-07-09 Thread Edward K. Ream
On Sunday, July 9, 2017 at 7:39:14 PM UTC-5, Edward K. Ream wrote: 1. Use git diff --patch to generate a patch, and then *apply the patch* to > generate the *old* file. > > Alternatively, use git show > to copy the old file into a temp file. >

Re: sqlite-format and settings - ideas

2017-07-09 Thread Edward K. Ream
On Sunday, July 9, 2017 at 4:00:53 AM UTC-5, xgid wrote: > > I also made a minimal research of the matter before my posts, with the > following several search terms: > >- sqlite binary git >- sqlite git diff >- sqlite git howto store > > and came across the same links and some

Re: sqlite-format and settings - ideas

2017-07-09 Thread Jose Gonzalez
I'm following this thread and new wave of ideas for leo with great attention. I really like the goal of making leo a more interactive platform for keeping/editing knowledge bases... Great job everybody! Just my 2 cents: Maybe sqllite is just a tool for a greater purpose, a step toward a greater

Re: PHP colorizer mode

2017-07-09 Thread Adrian
Thanks! On Sunday, July 9, 2017 at 10:34:16 AM UTC-5, Edward K. Ream wrote: > > On Sun, Jul 9, 2017 at 10:02 AM, Adrian > wrote: > >> Hello, >> >> I am having some trouble figuring out how the colroizer works. >> > > ​Thanks for this question. I am putting out

The joy and value of dissatisfaction

2017-07-09 Thread Edward K. Ream
Once we see something like Pharo live update, it's natural to wonder how we update our Python programs faster. That is, it's natural to become a bit dissatisfied with what we have. Maybe the most fruitful form of dissatisfaction arises when we don't have a clear notion of the way forward.

Re: sqlite-format and settings - ideas

2017-07-09 Thread vitalije
> > To my surprise, the resulting diff is even worst than I thought it would > be: > https://github.com/xgid/leo.db-vcs-tests/commit/5648c4ea02c9e1f47efe86ec990fc9aff6554c11?diff=unified > Well I am not satisfied with xml diffs either. I believe that it can be done by exporting only those

Re: new commands for editing fonts, shortcuts,...

2017-07-09 Thread Edward K. Ream
On Sun, Jul 9, 2017 at 9:06 AM, vitalije wrote: Well in current implementation if c.p is an `@font node`, command simply > adjust body, there is IMHO no need to alter clipboard. > ​That's fine. ​ > But if it is not `@font node`, if I understand correctly your advise is to

PHP colorizer mode

2017-07-09 Thread Adrian
Hello, I am having some trouble figuring out how the colroizer works. I have successfully mad some changes, but the number one thing that bothers me I do not know how to fix. Namely, multi line strings. For example, I am working on some regex code that works with HTML, so I have this: The

Re: Rev 79ba3d: potential crasher in refresh-from-disk

2017-07-09 Thread vitalije
@Edward, I have installed pyflakes and enabled those settings the first time you suggested me to do so. However, I need to teach myself to pay attention to complains of pyflake. I notice them from time to time. Before committing I always use git dfiftool to review what changes I am about to

Re: new commands for editing fonts, shortcuts,...

2017-07-09 Thread Edward K. Ream
On Sun, Jul 9, 2017 at 7:09 AM, vitalije wrote: In new version > ​[show-fonts]...assumes that currently selected node is in fact `@font` > setting node. If it is, font dialog will show initially font defined by > values in the body of currently selected node. After

Re: sqlite-format and settings - ideas

2017-07-09 Thread Edward K. Ream
On Sun, Jul 9, 2017 at 11:10 AM, Offray Vladimir Luna Cárdenas < off...@riseup.net> wrote: > Some fairly simple changes like sorting siblings can give false impression >> of massive changes when in fact there is no big difference in code. >> > > Yes. This is truly annoying. > > That's why of us

Re: How does instant update work in Pharo?

2017-07-09 Thread Edward K. Ream
On Sun, Jul 9, 2017 at 12:22 PM, Offray Vladimir Luna Cárdenas < off...@riseup.net> wrote: > I really dislike that video. I mean structurally. The speaker goes > establishing an authority figure at the beginning that claims "Smalltalk is > dead" > ​I think we must always ignore unhelpful

new commands for editing fonts, shortcuts,...

2017-07-09 Thread vitalije
Recently I have pushed in master branch on github a few new commands for editing certain kinds of settings in more natural way. Command show-fonts was changed. In earlier versions this command would show font whose family happen to be in clipboard, and after confirming choice Leo used to put

Re: PHP colorizer mode

2017-07-09 Thread Edward K. Ream
On Sun, Jul 9, 2017 at 10:02 AM, Adrian wrote: > Hello, > > I am having some trouble figuring out how the colroizer works. > ​Thanks for this question. I am putting out fires at present. I'll get to this when I can. Perhaps tomorrow. Edward -- You received this

Re: sqlite-format and settings - ideas

2017-07-09 Thread Edward K. Ream
On Sunday, July 9, 2017 at 7:44:06 AM UTC-5, vitalije wrote: > > To my surprise, the resulting diff is even worst than I thought it would >> be: >> https://github.com/xgid/leo.db-vcs-tests/commit/5648c4ea02c9e1f47efe86ec990fc9aff6554c11?diff=unified >> > > Well I am not satisfied with xml diffs

Re: new commands for editing fonts, shortcuts,...

2017-07-09 Thread vitalije
> ​Do this if there is no font def in the clipboard.​ > >> >>- put chosen font definition in clipboard so that it can be pasted >>later >> >> Yes, if c.p is an `@font node`, the pasting to the clipboard makes sense.​ > ​ > Well in current implementation if c.p is an `@font node`,

Re: sqlite-format and settings - ideas

2017-07-09 Thread Offray Vladimir Luna Cárdenas
Ohh I see. I was thinking because XML was so cluttered that the problem laid there and makes not only difficult to read it, but to diff it In the case of STON the serializer enumerates the objects and use pointers to them using ordinal numbers (like @1 or @20), so moving children is mostly

Re: sqlite-format and settings - ideas

2017-07-09 Thread Offray Vladimir Luna Cárdenas
Hi, On 09/07/17 09:06, Edward K. Ream wrote: > On Sunday, July 9, 2017 at 7:44:06 AM UTC-5, vitalije wrote: > > To my surprise, the resulting diff is even worst than I > thought it would be: > >

Re: How does instant update work in Pharo?

2017-07-09 Thread Adrian
Very coolOne of the environments I had evaluated was Pharo, before landing at Leo. My key criterion was having the ability to customize the environment to the max, and Pharo was a key contender. Incorporating some of those ideas within leo is most welcome. Adrian On Friday, July 7, 2017

Re: How does instant update work in Pharo?

2017-07-09 Thread Offray Vladimir Luna Cárdenas
Well my idea is kind of the opposite: Instead of creating a Smalltalk environment I try to create a Leo (alike) environment inside Pharo Smalltalk. The intro page is at [1] and a small subtitled video at [2]. It has preliminary integration with Fossil, where the documentation and issues are

Re: How does instant update work in Pharo?

2017-07-09 Thread Xavier G. Domingo
How does Pharo handle changes in object format or methods? How does Pharo recover from crashes due to changed method signatures, invalid calls, etc? Those are very good questions! From my experience, the greatest answers always come from*the best questions.* ​I'm already noticing the

Re: leo ftp

2017-07-09 Thread zhaohe wang
ValueError: No JSON object could be decoded Would you teach me how to use this plugin? Traceback (most recent call last): File "/home/swot/leo-editor/leo/plugins/qt_frame.py", line 2332, in button_callback val = command() File "/home/swot/leo-editor/leo/plugins/ftp.py", line 62, in

Re: sqlite-format and settings - ideas

2017-07-09 Thread Xavier G. Domingo
On Sat, Jul 8, 2017 at 10:43 AM, Chris George > wrote: Here is one approach to using sqlite with git. https://ongardie.net/blog/sqlite-in-git/ ​Thanks for this. And here is a stack

Re: Leo's run levels

2017-07-09 Thread Edward K. Ream
On Thursday, July 6, 2017 at 2:57:26 AM UTC-5, Edward K. Ream wrote: > > > > On Wed, Jul 5, 2017 at 3:51 PM, Terry Brown wrote: > >> I'm wondering if it would be a useful thought experiment to list a >> series of "run levels" (https://en.wikipedia.org/wiki/Runlevel) or >>

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

2017-07-09 Thread Edward K. Ream
Here's a common scenario. 1. I think a task is going to be easy, so I begin work on it in master. 2. Oops. The task isn't so easy. I better switch to a new branch. 3. No problem, right? Just do git stash, create the branch, and do a git stash pop. *Danger*: *stashing goes back in time in