terminitor 0.0.1 → 0.0.2

Sign up to get free protection for your applications and to get access to all the features.
data/README.md CHANGED
@@ -36,7 +36,7 @@ This will open your default editor (set by the $EDITOR variable in BASH) and you
36
36
  - autotest
37
37
 
38
38
  Simply define the tabs and declare each command. Note that the session of each tab is maintained, so you just declare actions here as
39
- you would manually type in the terminal.
39
+ you would manually type in the terminal. Note that the title for each tab(namely tab1, tab2) are arbitrary, and can be named whatever you want. They are simply placeholders
40
40
 
41
41
  Once the project file has been declared to your satisfaction, simply execute any project defined in the @.terminit@ directory with:
42
42
 
@@ -51,6 +51,11 @@ Limitations
51
51
  This only works on OS X because of the dependency on applescript. It would presumably not be impossible to port this to Linux or Windows, and
52
52
  of course patches and suggestions are welcome.
53
53
 
54
+ Authors
55
+ -------
56
+
57
+ The core code was adapted before by Nathan Esquenazi and Thomas Shafer. In September 2010, Arthur Chiu and Nathan Esquenazi gemified and released this to gemcutter.
58
+
54
59
  Acknowledgements
55
60
  -----------------
56
61
 
@@ -47,12 +47,11 @@ module Terminitor
47
47
  # One more hack: if we're getting the first tab, we return
48
48
  # the term window's only current tab, else we send a CMD+T
49
49
  def open_tab(terminal)
50
- window = has_visor? ? 2 : 1
51
50
  if @got_first_tab_already
52
51
  app("System Events").application_processes["Terminal.app"].keystroke("t", :using => :command_down)
53
52
  end
54
53
  @got_first_tab_already = true
55
- local_window = terminal.windows[window]
54
+ local_window = terminal.windows[terminal.windows.count - 1]
56
55
  local_tabs = local_window.tabs if local_window
57
56
  local_tabs.last.get if local_tabs
58
57
  end
@@ -1,3 +1,3 @@
1
1
  module Terminitor
2
- VERSION = "0.0.1"
2
+ VERSION = "0.0.2"
3
3
  end
@@ -1,9 +1,18 @@
1
1
  # you can make as many tabs as you wish...
2
2
  # tab names are actually arbitrary at this point too.
3
3
  ---
4
- - tab1:
5
- - cd /foo/bar
6
- - gitx
7
- - tab2:
8
- - ls
9
- - mate .
4
+
5
+ - workflow:
6
+ - default:
7
+ - cd /path/to/
8
+ - gitx
9
+ - padrino:
10
+ - cd /padrino/app
11
+ - padrino start
12
+ - project:
13
+ - tab1:
14
+ - cd /foo/bar
15
+ - gitx
16
+ - tab2:
17
+ - ls
18
+ - mate .
metadata CHANGED
@@ -1,13 +1,13 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: terminitor
3
3
  version: !ruby/object:Gem::Version
4
- hash: 29
4
+ hash: 27
5
5
  prerelease: false
6
6
  segments:
7
7
  - 0
8
8
  - 0
9
- - 1
10
- version: 0.0.1
9
+ - 2
10
+ version: 0.0.2
11
11
  platform: ruby
12
12
  authors:
13
13
  - Arthur Chiu
@@ -16,7 +16,7 @@ autorequire:
16
16
  bindir: bin
17
17
  cert_chain: []
18
18
 
19
- date: 2010-09-13 00:00:00 -07:00
19
+ date: 2010-09-14 00:00:00 -07:00
20
20
  default_executable:
21
21
  dependencies:
22
22
  - !ruby/object:Gem::Dependency