Komodo Edit: How to do some of these basic Macro and Snippet operations?

I am wondering how to do this (or find documentation) on these basic macros and snippets in Komodo Edit.

  • 1) FILE / IO: write line to temp file from komodo javascript macro

  • 2) FILE / IO: read text file content in line in komodo javascript macro

  • 3) INCLUDES: local javascript cross-references "include" libraries in the macro, or something equivalent # script src = "~ / mylocal_javascript_addons.js" So I can consolidate the macro.

  • 4) SNIPPET_OUTPUT: Create a snippet interpolation placeholder that returns the output of a custom javascript function or macro.

    For example:

    [[% (myscript: SayHelloWorld ())]]

    [[% (foomacro-MyAgeInMilliseconds)]]

  • 5) MACRO_OUTPUT: a macro that takes a multi-line selection in the current buffer and passes it to a local script or batch file, then replaces the selection with the output. (Need a way to do this on MSFT Windows, not just Linux).

If you can answer one or more of these using Python instead of Javascript, that's great, but please provide a sample code or link to it, because the Python documentation seems extremely TODO.

+1


source to share


1 answer


You don't have the answers, but you might be in better luck:



http://community.activestate.com/forums/komodo-extensions

+3


source







All Articles