Unable to Apply Certain Commands Globally

41 views
Skip to first unread message

Thomas Passin

unread,
Aug 16, 2020, 11:06:51 PM8/16/20
to leo-editor
I want to do a search-and-replace of text in a number of nodes (or all of them), but the replace-all command doesn't seem to do anything.  I can do Find (<F3>), and <CTRL- MINUS> time after time to replace each occurrence, but not all at once.  What am I not knowing to do?

Similarly, if I create a path node for a directory, then double click on it, Leo (I suppose it's the active path plugin, right?) will populate the subtree with @auto nodes without content for each file in that directory.  But I can't work out how to get each node to populate with the contents of the file that's already there.  I've tried using just about all the menu commands in the right click menu as well as the menu bar menu, but again I don't see anything happening.  What should I do to populate all the files at once instead of one-by-one by double-clicking?

My system:

Leo 6.3-devel, devel branch, build d08c1888db
2020-08-16 22:31:49 -0400
Python 3.8.2, PyQt version 5.14.2
Windows 10 AMD64 (build 10.0.18362) SP0

vitalije

unread,
Aug 17, 2020, 1:00:37 AM8/17/20
to leo-editor


On Monday, August 17, 2020 at 5:06:51 AM UTC+2, Thomas Passin wrote:

Similarly, if I create a path node for a directory, then double click on it, Leo (I suppose it's the active path plugin, right?) will populate the subtree with @auto nodes without content for each file in that directory.  But I can't work out how to get each node to populate with the contents of the file that's already there.  I've tried using just about all the menu commands in the right click menu as well as the menu bar menu, but again I don't see anything happening.  What should I do to populate all the files at once instead of one-by-one by double-clicking?

Have you tried File -> Read/Write files -> read @auto nodes? On my machine it is bound to "Alt-/" key. This command should read all @auto files in the selected subtree.
 
Vitalije

Edward K. Ream

unread,
Aug 17, 2020, 6:36:02 AM8/17/20
to leo-editor


On Sun, Aug 16, 2020 at 10:06 PM Thomas Passin <tbp1...@gmail.com> wrote:

> I can't work out how to get each node to populate with the contents of the file that's already there.

Try refresh-from-disk.

Edward

Thomas Passin

unread,
Aug 17, 2020, 9:01:04 AM8/17/20
to leo-editor
Neither of these worked.  But I begin to see why.

When I created an @path node and then double-clicked it, the Leo added a child node for each file in the directory.  But these new nodes were not @auto or @file nodes.  Their headlines were only the bare file names.  When I clicked any one of those new nodes, its headline was converted to @auto <filename> and the node was populated with the file contents.  Neither refresh-from-disk nor Read @auto Files work when the headline does not start with @auto (no surprise, I guess).

This still leaves me unable to populate all the child nodes with a single command.
Reply all
Reply to author
Forward
0 new messages