Re: indentation (code formatting)
Dave Cottlehuber <[email protected]> Thu, 8 Aug 2013 08:56:12 +0200
| Newsgroups | gmane.comp.ide.komodo.general |
|---|---|
| Message-ID | <CAL+Y1nvTbhZABcNyh64+Bm6KEKMWEJjVG8gdLojFgfTSE=upJA@mail.gmail.com> |
On 8 August 2013 01:02, Todd Whiteman <[email protected]> wrote: > On 13-08-05 03:57 AM, Dave Cottlehuber wrote: >> >> I find vi source code re-indentation very handy (like gg=G for >> redoing the whole file). Is there any way to access this from within >> komodo? > > > Dave logged an enhancement request on this here: > http://bugs.activestate.com/show_bug.cgi?id=99907 > > Re-summarizing comments here: > > I doubt we'll be adding vim parsing to the Komodo core code base (it's > complicated enough already ;) > > However, the Code Formatting tools (in Komodo IDE, or macros in Komodo Edit) > do allow for launching an external command to perform code formatting. > > Personally, I'd create a bash wrapper script for your vim command, which > saves the content to a temporary file, performs the formatting and then > deletes the temporary file, sending the result back on stdout. > > References: > http://community.activestate.com/komodo-50-features#code_formatters > http://community.activestate.com/faq/setting-new-komodo-ide-formatter I'm happy with this as a solution -- and when I have it working, I'll blog something. Currently I'm stuck persuading emacs or vi to read *and* write output to stdin, if possible I'd like to avoid the wrapper. A+ Dave _______________________________________________ Komodo-discuss mailing list [email protected] To unsubscribe: http://listserv.ActiveState.com/mailman/mysubs Other options: http://listserv.ActiveState.com/mailman/listinfo/Komodo-discuss