Permalink
Browse files

yml syntax is now compatible with terminitor

  • Loading branch information...
miros committed Jul 4, 2011
1 parent bdc305a commit d156b3753700124cacb1b6c66fd9539cab3bd8fb
Showing with 83 additions and 21 deletions.
  1. +1 −1 .idea/misc.xml
  2. +1 −0 .idea/vcs.xml
  3. +68 −16 .idea/workspace.xml
  4. +6 −2 .kassets
  5. +7 −2 kassets.rb
View
@@ -264,6 +264,6 @@
<component name="DependencyValidationManager">
<option name="SKIP_IMPORT_STATEMENTS" value="false" />
</component>
- <component name="ProjectRootManager" version="2" project-jdk-name="Ruby SDK 1.9.2 (/usr/local/ruby/bin/ruby)" project-jdk-type="RUBY_SDK" />
+ <component name="ProjectRootManager" version="2" project-jdk-name="Ruby SDK 1.8.7-p330 [appstore]" project-jdk-type="RUBY_SDK" />
</project>
View
@@ -2,6 +2,7 @@
<project version="4">
<component name="VcsDirectoryMappings">
<mapping directory="" vcs="" />
+ <mapping directory="$PROJECT_DIR$" vcs="Git" />
</component>
</project>
View
@@ -1,7 +1,13 @@
<?xml version="1.0" encoding="UTF-8"?>
<project version="4">
<component name="ChangeListManager">
- <list default="true" id="216c3734-1b60-4626-a4c2-15b41161da75" name="Default" comment="" />
+ <list default="true" id="216c3734-1b60-4626-a4c2-15b41161da75" name="Default" comment="">
+ <change type="MODIFICATION" beforePath="$PROJECT_DIR$/.idea/misc.xml" afterPath="$PROJECT_DIR$/.idea/misc.xml" />
+ <change type="MODIFICATION" beforePath="$PROJECT_DIR$/.idea/vcs.xml" afterPath="$PROJECT_DIR$/.idea/vcs.xml" />
+ <change type="MODIFICATION" beforePath="$PROJECT_DIR$/.idea/workspace.xml" afterPath="$PROJECT_DIR$/.idea/workspace.xml" />
+ <change type="MODIFICATION" beforePath="$PROJECT_DIR$/.kassets" afterPath="$PROJECT_DIR$/.kassets" />
+ <change type="MODIFICATION" beforePath="$PROJECT_DIR$/kassets.rb" afterPath="$PROJECT_DIR$/kassets.rb" />
+ </list>
<ignored path="kassets.iws" />
<ignored path=".idea/workspace.xml" />
<option name="TRACKING_ENABLED" value="true" />
@@ -11,6 +17,7 @@
<option name="LAST_RESOLUTION" value="IGNORE" />
</component>
<component name="ChangesViewManager" flattened_view="true" show_ignored="false" />
+ <component name="CoverageDataManager" choice="3" />
<component name="CreatePatchCommitExecutor">
<option name="PATCH_PATH" value="" />
<option name="REVERSE_PATCH" value="false" />
@@ -21,13 +28,12 @@
<component name="FavoritesManager">
<favorites_list name="kassets" />
</component>
- <component name="FileColors" enabled="true" enabledForTabs="true" showNonProject="false" />
<component name="FileEditorManager">
<leaf>
<file leaf-file-name="kassets.rb" pinned="false" current="true" current-in-tab="true">
<entry file="file://$PROJECT_DIR$/kassets.rb">
<provider selected="true" editor-type-id="text-editor">
- <state line="54" column="0" selection-start="931" selection-end="931" vertical-scroll-proportion="0.6561151">
+ <state line="15" column="26" selection-start="316" selection-end="316" vertical-scroll-proportion="0.49912435">
<folding />
</state>
</provider>
@@ -40,6 +46,29 @@
<setting name="OPEN_NEW_TAB" value="false" />
</FindUsagesManager>
</component>
+ <component name="Git.Branch.Configurations">
+ <option name="CURRENT" value="master" />
+ <option name="CONFIGURATIONS">
+ <array>
+ <BranchConfiguration>
+ <option name="IS_AUTO_DETECTED" value="true" />
+ <option name="NAME" value="master" />
+ <option name="BRANCHES">
+ <array>
+ <BranchInfo>
+ <option name="ROOT" value="$PROJECT_DIR$" />
+ <option name="REFERENCE" value="master" />
+ </BranchInfo>
+ </array>
+ </option>
+ </BranchConfiguration>
+ </array>
+ </option>
+ </component>
+ <component name="Git.Settings">
+ <option name="CHECKOUT_INCLUDE_TAGS" value="false" />
+ <option name="UPDATE_CHANGES_POLICY" value="STASH" />
+ </component>
<component name="IdeDocumentHistory">
<option name="changedFiles">
<list>
@@ -48,7 +77,7 @@
</list>
</option>
</component>
- <component name="ProjectLevelVcsManager">
+ <component name="ProjectLevelVcsManager" settingsEditedManually="false">
<OptionsSetting value="true" id="Add" />
<OptionsSetting value="true" id="Remove" />
<OptionsSetting value="true" id="Checkout" />
@@ -74,8 +103,8 @@
<sortByType />
</navigator>
<panes>
- <pane id="Scope" />
<pane id="Favorites" />
+ <pane id="Scope" />
<pane id="ProjectPane">
<subPane>
<PATH>
@@ -130,7 +159,6 @@
<option name="USER" value="" />
<option name="PASSWORD" value="" />
<option name="LAST_MERGED_REVISION" />
- <option name="UPDATE_RUN_STATUS" value="false" />
<option name="MERGE_DRY_RUN" value="false" />
<option name="MERGE_DIFF_USE_ANCESTRY" value="true" />
<option name="UPDATE_LOCK_ON_DEMAND" value="false" />
@@ -139,34 +167,57 @@
<option name="CHECK_NESTED_FOR_QUICK_MERGE" value="false" />
<option name="IGNORE_SPACES_IN_ANNOTATE" value="true" />
<option name="SHOW_MERGE_SOURCES_IN_ANNOTATE" value="true" />
+ <option name="FORCE_UPDATE" value="false" />
+ <configuration useDefault="true">$USER_HOME$/.subversion_IDEA</configuration>
<myIsUseDefaultProxy>false</myIsUseDefaultProxy>
</component>
<component name="TaskManager">
<task active="true" id="Default" summary="Default task">
+ <changelist id="216c3734-1b60-4626-a4c2-15b41161da75" name="Default" comment="" />
<created>1293196904983</created>
<updated>1293196904983</updated>
</task>
<servers />
</component>
+ <component name="TodoView" selected-index="0">
+ <todo-panel id="selected-file">
+ <are-packages-shown value="false" />
+ <are-modules-shown value="false" />
+ <flatten-packages value="false" />
+ <is-autoscroll-to-source value="false" />
+ </todo-panel>
+ <todo-panel id="all">
+ <are-packages-shown value="false" />
+ <are-modules-shown value="false" />
+ <flatten-packages value="false" />
+ <is-autoscroll-to-source value="false" />
+ </todo-panel>
+ <todo-panel id="default-changelist">
+ <are-packages-shown value="false" />
+ <are-modules-shown value="false" />
+ <flatten-packages value="false" />
+ <is-autoscroll-to-source value="false" />
+ </todo-panel>
+ </component>
<component name="ToolWindowManager">
- <frame x="0" y="24" width="1600" height="852" extended-state="0" />
- <editor active="true" />
+ <frame x="0" y="24" width="1920" height="1031" extended-state="2" />
+ <editor active="false" />
<layout>
- <window_info id="Changes" active="false" anchor="bottom" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" weight="0.33" sideWeight="0.5" order="-1" side_tool="false" content_ui="tabs" />
+ <window_info id="Changes" active="true" anchor="bottom" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="true" weight="0.33" sideWeight="0.5" order="7" side_tool="false" content_ui="tabs" />
<window_info id="TODO" active="false" anchor="bottom" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" weight="0.33" sideWeight="0.5" order="6" side_tool="false" content_ui="tabs" />
<window_info id="Structure" active="false" anchor="left" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" weight="0.25" sideWeight="0.5" order="1" side_tool="true" content_ui="tabs" />
- <window_info id="Dependency Viewer" active="false" anchor="bottom" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" weight="0.33" sideWeight="0.5" order="-1" side_tool="false" content_ui="tabs" />
- <window_info id="Project" active="false" anchor="left" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="true" weight="0.18678527" sideWeight="0.5" order="0" side_tool="false" content_ui="tabs" />
+ <window_info id="Dependency Viewer" active="false" anchor="bottom" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" weight="0.33" sideWeight="0.5" order="7" side_tool="false" content_ui="tabs" />
+ <window_info id="Project" active="false" anchor="left" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="true" weight="0.07399577" sideWeight="0.67" order="0" side_tool="false" content_ui="tabs" />
<window_info id="Debug" active="false" anchor="bottom" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" weight="0.4" sideWeight="0.5" order="3" side_tool="false" content_ui="tabs" />
<window_info id="Run" active="false" anchor="bottom" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" weight="0.33" sideWeight="0.5" order="2" side_tool="false" content_ui="tabs" />
- <window_info id="Version Control" active="false" anchor="bottom" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" weight="0.33" sideWeight="0.5" order="-1" side_tool="false" content_ui="tabs" />
+ <window_info id="Version Control" active="false" anchor="bottom" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" weight="0.33" sideWeight="0.5" order="7" side_tool="false" content_ui="tabs" />
<window_info id="Cvs" active="false" anchor="bottom" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" weight="0.25" sideWeight="0.5" order="4" side_tool="false" content_ui="tabs" />
<window_info id="Message" active="false" anchor="bottom" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" weight="0.33" sideWeight="0.5" order="0" side_tool="false" content_ui="tabs" />
- <window_info id="Find" active="false" anchor="bottom" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" weight="0.33" sideWeight="0.5" order="1" side_tool="false" content_ui="tabs" />
<window_info id="Ant Build" active="false" anchor="right" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" weight="0.25" sideWeight="0.5" order="1" side_tool="false" content_ui="tabs" />
+ <window_info id="Find" active="false" anchor="bottom" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" weight="0.33" sideWeight="0.5" order="1" side_tool="false" content_ui="tabs" />
<window_info id="Commander" active="false" anchor="right" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" weight="0.4" sideWeight="0.5" order="0" side_tool="false" content_ui="tabs" />
- <window_info id="Inspection" active="false" anchor="bottom" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" weight="0.4" sideWeight="0.5" order="5" side_tool="false" content_ui="tabs" />
<window_info id="Hierarchy" active="false" anchor="right" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" weight="0.25" sideWeight="0.5" order="2" side_tool="false" content_ui="combo" />
+ <window_info id="Inspection" active="false" anchor="bottom" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" weight="0.4" sideWeight="0.5" order="5" side_tool="false" content_ui="tabs" />
</layout>
</component>
<component name="VcsManagerConfiguration">
@@ -182,6 +233,7 @@
<option name="ENABLE_BACKGROUND_PROCESSES" value="true" />
<option name="CHANGED_ON_SERVER_INTERVAL" value="5" />
<option name="SHOW_ONLY_CHANGED_IN_SELECTION_DIFF" value="true" />
+ <option name="CHECK_COMMIT_MESSAGE_SPELLING" value="true" />
<option name="FORCE_NON_EMPTY_COMMENT" value="false" />
<option name="LAST_COMMIT_MESSAGE" />
<option name="MAKE_NEW_CHANGELIST_ACTIVE" value="true" />
@@ -203,14 +255,14 @@
<component name="editorHistoryManager">
<entry file="file://$PROJECT_DIR$/.kassets">
<provider selected="true" editor-type-id="text-editor">
- <state line="1" column="33" selection-start="23" selection-end="23" vertical-scroll-proportion="0.02733813">
+ <state line="5" column="11" selection-start="53" selection-end="53" vertical-scroll-proportion="0.109447">
<folding />
</state>
</provider>
</entry>
<entry file="file://$PROJECT_DIR$/kassets.rb">
<provider selected="true" editor-type-id="text-editor">
- <state line="54" column="0" selection-start="931" selection-end="931" vertical-scroll-proportion="0.6561151">
+ <state line="15" column="26" selection-start="316" selection-end="316" vertical-scroll-proportion="0.49912435">
<folding />
</state>
</provider>
View
@@ -1,3 +1,7 @@
tabs:
- "first tab": ls
- "second tab": ls
+ - tab1:
+ - ls
+ - pwd
+ - tab2:
+ - ls
+ - pwd
View
@@ -1,3 +1,4 @@
+require 'rubygems'
require 'yaml'
require 'ap'
@@ -12,6 +13,10 @@ def title=(title)
system %{qdbus org.kde.konsole /Sessions/#{@session_id} setTitle 1 "#{title}"}
end
+ def commands(cmds)
+ cmds.each {|cmd| command(cmd)}
+ end
+
def command(cmd)
send_text(cmd, "\n")
end
@@ -31,7 +36,7 @@ class Kassets
CONFIG_FILE = '.kassets'
def run
- tabs.each {|name, cmd| Konsole.new(name).command(cmd) }
+ tabs.each {|hash| Konsole.new(hash.keys.first).commands(hash.values.first) }
open_first_tab
end
@@ -50,7 +55,7 @@ def config
end
def locate_config
- CONFIG_FILE
+ File.join(File.dirname(__FILE__), CONFIG_FILE)
end
end

0 comments on commit d156b37

Please sign in to comment.