Hi - I typically use Intellij IDEA when writing java or scala code. I'm currently wrapping up a project with about 400 java files and a handful of html/bash/python. As a test, I tried importing this project into leo, as follows:
(see http://comments.gmane.org/gmane.comp.python.leo.general/20173) 1. open leo, use the default workbook project or create a new one 2. copy the 'recursive auto create' script from scripts.leo to my leo project 3. edit it to reflect what i'm doing: here's mine below: #outline scripts/@path [some path, say '/home/user/projects']/@path [this project 'foo'] #node import os @others types = ('.py', '.java', '.scala', '.sh', '.build', '.gradle', '.html', '.js') theDir = r'.' if g.os_path_exists(theDir): importFiles(theDir,types,recursive=True) g.es("done",color="blue") else: g.es("directory does not exist: " + theDir) 4. ok, so this imports my project...note that on a six core machine, this takes 10 minutes or so. At this point, I have a few questions: Q: How could I have referenced the @Path from within the script? I opted for the cheap and easy route by simply using '.', and hey, it worked! Is that idiomatic? Q: The real issue I'm having is that when I press Ctrl-S to save, I am asked if I want to modify the file...um, for each file. The only way out of this is to kill the process. What am I doing wrong? And, this, btw - seems at least partly like a bug. Q: Supposing that I can successfully import a project, how do I make it a shadow project? Suggestions: 1. I first started looking into leo a year or so ago. I thought it was amazing, but then dropped it b/c other projects took precedence. Personally, I think the 'killer' feature is the ability to embed diagrams and notes within the context of code. I'm sure it's possible to open an external editor based on the file type...but typically, one is going to edit a diagram and that product will spit out it's custom file format. At some point you'll use the diagram editor to spit out an image file that something like leo could display. It would be so cool if that sort of integration could be made smoother. Either do all the editing within leo (probably not possible) or have leo invoke the target editor and somehow display the image as appropriate. 2. I'm a developer, and I happen to really enjoy programming in python. However, even for me, the documentation is a bit daunting. This tool does so much, it's a bit overwhelming. In the back of my head, I hear, 'screw this, let's get some work done in VIM, iPython, IDEA, etc.". One thing I keep wondering is whether I really need to have clone nodes in the type of coding I do... I only ever define a function once. However, the ability to force my focus onto just a single function is really nice... really isolates things. 3. On the flip side, it took me just a few minutes to add my own key bindings to switch between tabs. And the view-rendered for rest, markdown, html, etc. is really killer. I'm going to play around with this and erlang/rebar/cowboy and see how it fits that programming model. All I can ask for are more tutorials that just show you doing your normal work routine, and more videos with the same sort of focus. Thanks, -Todd -- You received this message because you are subscribed to the Google Groups "leo-editor" group. To view this discussion on the web visit https://groups.google.com/d/msg/leo-editor/-/o6vwu19PsMEJ. 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.
