Hello world, Here is handy little button for windows users. Create node with the headline "@button CMD here", save and reopen Leo.
QQQ @ Open a windows cmd.exe prompt in the path of the currently selected node. A mapped drive letter will be created for a UNC path. Adapted from: http://webpages.charter.net/edreamleo/scripting.html#working-with-directives-and-paths http://www.mail-archive.com/leo-editor@googlegroups.com/msg12177.html @c d = c.scanAllDirectives(p) # g.es(g.dictToString(d)) #uncomment to show results of above in log pane path = d.get('path') name = p.anyAtFileNodeName() if name: name = g.os_path_finalize_join(path,name) g.es(name) from subprocess import Popen Popen(r'cmd.exe /k pushd %s' % path) QQQ enjoy :) -matt -- You received this message because you are subscribed to the Google Groups "leo-editor" group. To post to this group, send email to leo-edi...@googlegroups.com. To unsubscribe from this group, send email to leo-editor+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/leo-editor?hl=en.