Re: Help with script.

2018-02-10 Thread Chris George
The @button saved the .leo file, triggering the save of the text file as well. Fossil picked up both changes. Is it possible to write the @clean node to disk without saving the .leo file? That would let me give unique commit messages for each @clean file and also for the .leo file at the end

Re: Help with script.

2018-02-10 Thread Chris George
To be clear, I switched to fossil a day or two ago from git, so there may well be things I don't quite get about it yet. Chris On Saturday, February 10, 2018 at 6:30:39 PM UTC-8, Edward K. Ream wrote: > > On Sat, Feb 10, 2018 at 3:09 PM, Chris George > wrote: > > I use

Re: Help with script.

2018-02-10 Thread Chris George
It worked great. Interestingly, firing the commit found ALL the changes in the entire repository, including the Leo files, irrespective of file path. So I dug a bit more. Adding the commit to the end of the batch file I use to run Leo also picks up ALL changes from ALL folders and commits

Re: Help with script.

2018-02-10 Thread Terry Brown
I think the key issue is getting the command to execute with the right current directory. I wonder, would c.selectPosition() on the @file node do that? I have a script fragment (not on my phone :) I use for that, but it always seems it should just be p.cd_for_node() or something, and that

Re: Help with script.

2018-02-10 Thread Edward K. Ream
On Sat, Feb 10, 2018 at 3:09 PM, Chris George wrote: I use Leo to write my weekly column using @clean nodes created using an > abbreviation. > > [I want an @button script to do the following]: > > 1) Save the @clean file to disk. > ​c.save() will do this. ​ > 2) Run a

Help with script.

2018-02-10 Thread Chris George
I started by looking at run_nodes.py but couldn't make it work for me. What I am trying to do is automate versioning in my writing repository using fossil. I use Leo to write my weekly column using @clean nodes created using an abbreviation. What I would like to be able to do is to click a

Leo 5.7b2 coming this week

2018-02-10 Thread Edward K. Ream
I expect to release Leo 5.7b2 in a day or two, or by Friday, February 16 at the very latest. The master branch is still open, but please hold all but essential commits. Edward -- You received this message because you are subscribed to the Google Groups "leo-editor" group. To unsubscribe from

Re: @file repo for leo4sqlite

2018-02-10 Thread Edward K. Ream
On Sat, Feb 10, 2018 at 12:46 PM, tscv11 wrote: > I've created a new repository for the @file version of leo4sqlite because > I prefer it to @auto when developing (so far). > > https://github.com/tscv11/leo4sqlite-file > ​Thanks for this work. Edward -- You received this

Re: ENB: Completing the default spell checker

2018-02-10 Thread Edward K. Ream
On Saturday, February 10, 2018 at 5:03:54 AM UTC-6, Edward K. Ream wrote: > What, and when, to tell the user when the main spelling dict does not exit? Rev 0d17787 shows the Spell Tab only if a main dict exists in ~/.leo/main_spelling_dict.txt. The main dict always exists (in a different

@file repo for leo4sqlite

2018-02-10 Thread tscv11
I've created a new repository for the @file version of leo4sqlite because I prefer it to @auto when developing (so far). https://github.com/tscv11/leo4sqlite-file tscv11 -- You received this message because you are subscribed to the Google Groups "leo-editor" group. To unsubscribe from this

Re: Rev 713d565ba: c.backup_helper

2018-02-10 Thread Edward K. Ream
On Saturday, February 10, 2018 at 10:50:29 AM UTC-6, Edward K. Ream wrote: The signature of c.backup_helper is: > > def backup_helper(self, base_dir=None, env_key='LEO_BACKUP', sub_dir=None > ): > > c.backup_helper uses the LEO_BACKUP environment variable as the base of > the save if it exists.

Rev 713d565ba: c.backup_helper

2018-02-10 Thread Edward K. Ream
The signature of c.backup_helper is: def backup_helper(self, base_dir=None, env_key='LEO_BACKUP', sub_dir=None): c.backup_helper uses the LEO_BACKUP environment variable as the base of the save if it exists. Otherwise it uses the given base_dir directory. It does careful error checking and

Re: Electron, not for web apps.?

2018-02-10 Thread vitalije
Also, for building clojurescript version one must have installed java and leiningen. Command for building development version is (IIRC) lein figwheel For the coffeescript version one must have installed node version 8 + and yarn package manager. Command for installing dependencies is yarn And

Re: Electron, not for web apps.?

2018-02-10 Thread vitalije
> > > Leo in Clojurescript: > https://repo.computingart.net/leocljs/vinfo?name=284258273ec5c6a5 > > Leo in Coffeescript: > https://leoelvue.computingart.net//vinfo?name=961ffef69d171c52 > > Edward > The other alternative would be to use fossil executable. It is a single file, just put it in

Re: Electron, not for web apps.?

2018-02-10 Thread Edward K. Ream
On Sat, Feb 10, 2018 at 6:26 AM, vitalije wrote: > Here are two versions: > >- Leo in ClojureScript (using >Electron, and Om/React) >- Leo in CoffeScript (using >Electron,

Re: Electron, not for web apps.?

2018-02-10 Thread Edward K. Ream
On Sat, Feb 10, 2018 at 6:26 AM, vitalije wrote: ​>> ​ Of course it is of interest! It would also give a boost to #574: Create clojurescript importer ​. ​​ > Here are two versions: > >- Leo in ClojureScript

Re: Electron, not for web apps.?

2018-02-10 Thread vitalije
Looking in the timelines of both projects, I am surprised how little time it took to develop both implementations (5 days for the first and 3 days for the second). However, publishing those two projects took two days. Vitalije -- You received this message because you are subscribed to the

Re: Electron, not for web apps.?

2018-02-10 Thread vitalije
> > > ​Of course it is of interest! It would also give a boost to #574: Create > clojurescript importer > ​. > > Edward > Here are two versions: - Leo in ClojureScript (using Electron, and

ENB: Completing the default spell checker

2018-02-10 Thread Edward K. Ream
Several tricky issues remain. I am also fixing some bugs as I write ;-) This will be pre-writing for documentation for the default spell checker. *User interface* What, and when, to tell the user when the main spelling dict does not exit? Imo, the spell checker should not pollute the startup

Re: mark/unmark-first-parents

2018-02-10 Thread Edward K. Ream
On Sat, Feb 10, 2018 at 4:23 AM, Edward K. Ream wrote: This is on the list of things before Leo 5.7b2. > ​I've just created #714 for this, with a milestone of 5.7. This will ensure it remains on my radar for 5.7b2,

Re: mark/unmark-first-parents

2018-02-10 Thread Edward K. Ream
On Sun, Feb 4, 2018 at 4:46 PM, tscv11 wrote: > After consulting Edward and Terry, the finished (I think) > 'unmark-first-parents' command now works as intended. > ​Excellent. Thanks for this work. This is on the list of things before Leo 5.7b2. Edward -- You received