I'll be adding this to the manual, but I thought I'd share here first. I'm studying the code of an active project using @shadow. A recent "git pull" changed the names of some of the files I'd outlined. To recover the outlining work I'd done for, e.g., "main.rb" renamed to "apply.rb", I
- went to the .leo_shadow directory and copied xmain.rb to xapply.rb - opened the leo file, observing many complaints about failure to update @shadow nodes - created an empty "@shadow apply.rb" node - ran read-at-shadow-nodes (success!) - removed the old "@shadow main.rb" (in case some future file named main.rb appears) - removed the old .leo_shadow/xmain.rb file I hope that if the @shadow mechanism gets revised in the future that this capability won't be somehow eliminated. I may attempt to create a Leo function "rename-at-shadow-node" that automates the process, but I anticipate lots of complications to making such a function robust (e.g., properly interpreting relevant @path directives. -- You received this message because you are subscribed to the Google Groups "leo-editor" group. To post to this group, send email to [email protected]. To unsubscribe from this group, send email to [email protected]. For more options, visit this group at http://groups.google.com/group/leo-editor?hl=en.
