<?xml version="1.0" encoding="utf-8"?>
<rss version="2.0" xml:base="http://community.activestate.com" xmlns:dc="http://purl.org/dc/elements/1.1/">
<channel>
 <title>ActiveState Community Site - Feature Request: Always Collapse Folds - Comments</title>
 <link>http://community.activestate.com/forum-topic/feature-request-always-collapse-folds</link>
 <description>Comments for &quot;Feature Request: Always Collapse Folds&quot;</description>
 <language>en</language>
<item>
 <title>api not in Komodo 4.1</title>
 <link>http://community.activestate.com/forum-topic/feature-request-always-collapse-folds#comment-2683</link>
 <description>&lt;p&gt;Yes, sorry about that. For Komodo 4.1 and earlier you&#039;ll need to use this macro:&lt;/p&gt;
&lt;div class=&quot;geshi-block&quot;&gt;
&lt;div class=&quot;geshifilter javascript&quot; style=&quot;font-family: monospace;&quot;&gt;&lt;span style=&quot;color: #009900; font-style: italic;&quot;&gt;// Focus is to ensure we are performing the command on the editor window!&lt;/span&gt;&lt;br /&gt;
gViewMgr.&lt;span style=&quot;color: #006600;&quot;&gt;currentView&lt;/span&gt;.&lt;span style=&quot;color: #006600;&quot;&gt;scintilla&lt;/span&gt;.&lt;span style=&quot;color: #000066;&quot;&gt;focus&lt;/span&gt;&lt;span style=&quot;color: #66cc66;&quot;&gt;&amp;#40;&lt;/span&gt;&lt;span style=&quot;color: #66cc66;&quot;&gt;&amp;#41;&lt;/span&gt;;&lt;br /&gt;
&lt;span style=&quot;color: #009900; font-style: italic;&quot;&gt;// Collapse all the folding.&lt;/span&gt;&lt;br /&gt;
ko.&lt;span style=&quot;color: #006600;&quot;&gt;commands&lt;/span&gt;.&lt;span style=&quot;color: #006600;&quot;&gt;doCommand&lt;/span&gt;&lt;span style=&quot;color: #66cc66;&quot;&gt;&amp;#40;&lt;/span&gt;&lt;span style=&quot;color: #3366CC;&quot;&gt;&amp;quot;cmd_foldCollapseAll&amp;quot;&lt;/span&gt;&lt;span style=&quot;color: #66cc66;&quot;&gt;&amp;#41;&lt;/span&gt;;&lt;/div&gt;
&lt;pre class=&quot;geshi-plain&quot;&gt;// Focus is to ensure we are performing the command on the editor window!
gViewMgr.currentView.scintilla.focus();
// Collapse all the folding.
ko.commands.doCommand(&amp;quot;cmd_foldCollapseAll&amp;quot;);&lt;/pre&gt;&lt;/div&gt;
&lt;p&gt;Cheers,&lt;br /&gt;
Todd&lt;/p&gt;
</description>
 <pubDate>Tue, 21 Aug 2007 15:54:14 -0700</pubDate>
 <dc:creator>ToddW</dc:creator>
 <guid isPermaLink="false">comment 2683 at http://community.activestate.com</guid>
</item>
<item>
 <title>Error</title>
 <link>http://community.activestate.com/forum-topic/feature-request-always-collapse-folds#comment-2682</link>
 <description>&lt;p&gt;I am getting the following error when I run the above.&lt;/p&gt;
&lt;pre class=&quot;geshifilter&quot;&gt;Error while running in macro collapse all folds:

TypeError: ko.views.manager has no properties

exception[message] = ko.views.manager has no properties
exception[fileName] = chrome://komodo/content/project/peMacro.js
exception[lineNumber] = 426
exception[stack] = ()@chrome://komodo/content/project/peMacro.js:426
macro_evalAsJavascript(&quot;// Focus is to ensure we are performing the command on the editor window!\nko.views.manager.currentView.scintilla.focus();\n// Collapse all the folding.\nko.commands.doCommand(\&quot;cmd_foldCollapseAll\&quot;);&quot;,[object XPCWrappedNative_NoHelper])@chrome://komodo/content/project/peMacro.js:426
_executeMacro([object XPCWrappedNative_NoHelper],true)@chrome://komodo/content/project/peMacro.js:180
macro_executeMacroById(&quot;8f841c5b-4448-4a1a-b104-6cb5f9083cfd&quot;,true)@chrome://komodo/content/project/peMacro.js:154
@chrome://komodo/content/project/peMacro.js:138

exception[name] = TypeError&lt;/pre&gt;</description>
 <pubDate>Tue, 21 Aug 2007 15:49:59 -0700</pubDate>
 <dc:creator>xian</dc:creator>
 <guid isPermaLink="false">comment 2682 at http://community.activestate.com</guid>
</item>
<item>
 <title>Not a likely addition</title>
 <link>http://community.activestate.com/forum-topic/feature-request-always-collapse-folds#comment-2681</link>
 <description>&lt;p&gt;Given that most people will not have a need for this and the fact that people can do this with a macro, it will not likely make it as a Komodo preference option.&lt;/p&gt;
&lt;p&gt;You can do this currently by:&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;In your Komodo toolbox, create a JavaScript macro named &quot;collapse all folds&quot; with the following contents:&lt;br /&gt;
&lt;div class=&quot;geshi-block&quot;&gt;
&lt;div class=&quot;geshifilter javascript&quot; style=&quot;font-family: monospace;&quot;&gt;&lt;span style=&quot;color: #009900; font-style: italic;&quot;&gt;// Focus is to ensure we are performing the command on the editor window!&lt;/span&gt;&lt;br /&gt;
ko.&lt;span style=&quot;color: #006600;&quot;&gt;views&lt;/span&gt;.&lt;span style=&quot;color: #006600;&quot;&gt;manager&lt;/span&gt;.&lt;span style=&quot;color: #006600;&quot;&gt;currentView&lt;/span&gt;.&lt;span style=&quot;color: #006600;&quot;&gt;scintilla&lt;/span&gt;.&lt;span style=&quot;color: #000066;&quot;&gt;focus&lt;/span&gt;&lt;span style=&quot;color: #66cc66;&quot;&gt;&amp;#40;&lt;/span&gt;&lt;span style=&quot;color: #66cc66;&quot;&gt;&amp;#41;&lt;/span&gt;;&lt;br /&gt;
&lt;span style=&quot;color: #009900; font-style: italic;&quot;&gt;// Collapse all the folding.&lt;/span&gt;&lt;br /&gt;
ko.&lt;span style=&quot;color: #006600;&quot;&gt;commands&lt;/span&gt;.&lt;span style=&quot;color: #006600;&quot;&gt;doCommand&lt;/span&gt;&lt;span style=&quot;color: #66cc66;&quot;&gt;&amp;#40;&lt;/span&gt;&lt;span style=&quot;color: #3366CC;&quot;&gt;&amp;quot;cmd_foldCollapseAll&amp;quot;&lt;/span&gt;&lt;span style=&quot;color: #66cc66;&quot;&gt;&amp;#41;&lt;/span&gt;;&lt;/div&gt;
&lt;pre class=&quot;geshi-plain&quot;&gt;// Focus is to ensure we are performing the command on the editor window!
ko.views.manager.currentView.scintilla.focus();
// Collapse all the folding.
ko.commands.doCommand(&amp;quot;cmd_foldCollapseAll&amp;quot;);&lt;/pre&gt;&lt;/div&gt;
&lt;/li&gt;
&lt;li&gt;In the macro &quot;Triggers&quot; tab section, make the macro trigger on the &quot;after file open&quot; event.&lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;Now, everytime you open a Komodo file your macro will fire, collapsing all the fold marks.&lt;/p&gt;
&lt;p&gt;Cheers,&lt;br /&gt;
Todd&lt;/p&gt;
</description>
 <pubDate>Tue, 21 Aug 2007 15:46:10 -0700</pubDate>
 <dc:creator>ToddW</dc:creator>
 <guid isPermaLink="false">comment 2681 at http://community.activestate.com</guid>
</item>
<item>
 <title>Feature Request: Always Collapse Folds</title>
 <link>http://community.activestate.com/forum-topic/feature-request-always-collapse-folds</link>
 <description>&lt;p&gt;Would be great to have an option to always Collapse All Folds when opening files. Make working with larger files much easier.&lt;/p&gt;
&lt;p&gt;Thanks.&lt;/p&gt;
</description>
 <comments>http://community.activestate.com/forum-topic/feature-request-always-collapse-folds#comments</comments>
 <category domain="http://community.activestate.com/forums/komodo-beta-0">Komodo Beta</category>
 <category domain="http://community.activestate.com/os/all-any">All / Any</category>
 <pubDate>Tue, 21 Aug 2007 15:17:25 -0700</pubDate>
 <dc:creator>xian</dc:creator>
 <guid isPermaLink="false">1316 at http://community.activestate.com</guid>
</item>
</channel>
</rss>
