tmuxinator 0.7.1 → 0.7.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/bin/mux +1 -0
- data/completion/mux.fish +1 -0
- data/lib/tmuxinator/assets/template.erb +3 -2
- data/lib/tmuxinator/version.rb +1 -1
- data/lib/tmuxinator/window.rb +4 -0
- data/spec/lib/tmuxinator/project_spec.rb +8 -0
- data/spec/spec_helper.rb +2 -1
- metadata +3 -3
- data/bin/mux +0 -16
- data/completion/mux.fish +0 -22
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 69776676073ac64ed73dd6f12141c6c3d7b3d9bc
|
4
|
+
data.tar.gz: a8fbc49a81682d255042d28c9c73ccc5303147d7
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: a22f37e133c2bea7f2b3b2b3c62d1291ed364bc7eb1b302fb8814cc86bd29269c132e3eb30bdbb0bc34c7e5b3ef023eb355b20112233dccd6a31d1a8060466b1
|
7
|
+
data.tar.gz: 1f83b909c1539eb9b8c1d40b78836a1e4a1b9b269130ed8379be287e4e791166f5425ed5ae5fb6b2f2d92631e4a898b80cf487c16a30efa7f43cbe066ac86f59
|
data/bin/mux
ADDED
@@ -0,0 +1 @@
|
|
1
|
+
tmuxinator
|
data/completion/mux.fish
ADDED
@@ -0,0 +1 @@
|
|
1
|
+
tmuxinator.fish
|
@@ -4,7 +4,7 @@
|
|
4
4
|
unset RBENV_VERSION
|
5
5
|
unset RBENV_DIR
|
6
6
|
|
7
|
-
<%= tmux %> start-server\; has-session
|
7
|
+
<%= tmux %> start-server\; has-session = <%= name %> 2>/dev/null
|
8
8
|
|
9
9
|
if [ "$?" -eq 1 ]; then
|
10
10
|
cd <%= root || "." %>
|
@@ -60,9 +60,10 @@ if [ "$?" -eq 1 ]; then
|
|
60
60
|
<% unless pane.last? %>
|
61
61
|
<%= pane.tmux_split_command %>
|
62
62
|
<% end %>
|
63
|
-
<%= window.
|
63
|
+
<%= window.tmux_tiled_layout_command %>
|
64
64
|
<% end %>
|
65
65
|
|
66
|
+
<%= window.tmux_layout_command %>
|
66
67
|
<%= window.tmux_select_first_pane %>
|
67
68
|
<% end %>
|
68
69
|
<% end %>
|
data/lib/tmuxinator/version.rb
CHANGED
data/lib/tmuxinator/window.rb
CHANGED
@@ -95,6 +95,10 @@ module Tmuxinator
|
|
95
95
|
"#{project.tmux} new-window #{path} -t #{tmux_window_target} #{tmux_window_name_option}"
|
96
96
|
end
|
97
97
|
|
98
|
+
def tmux_tiled_layout_command
|
99
|
+
"#{project.tmux} select-layout -t #{tmux_window_target} tiled"
|
100
|
+
end
|
101
|
+
|
98
102
|
def tmux_layout_command
|
99
103
|
"#{project.tmux} select-layout -t #{tmux_window_target} #{layout}"
|
100
104
|
end
|
@@ -51,6 +51,14 @@ describe Tmuxinator::Project do
|
|
51
51
|
expect(rendered).to_not include("sample")
|
52
52
|
end
|
53
53
|
end
|
54
|
+
|
55
|
+
# Please see: https://github.com/tmuxinator/tmuxinator/issues/347
|
56
|
+
context "open sessions" do
|
57
|
+
it "uses 'has-session =' to avoid matching open session name prefixes" do
|
58
|
+
output = project.render
|
59
|
+
expect(output).to match %r{has-session =}
|
60
|
+
end
|
61
|
+
end
|
54
62
|
end
|
55
63
|
|
56
64
|
describe "#windows" do
|
data/spec/spec_helper.rb
CHANGED
@@ -2,10 +2,11 @@ require "coveralls"
|
|
2
2
|
require "simplecov"
|
3
3
|
require "pry"
|
4
4
|
|
5
|
-
|
5
|
+
formatters = [
|
6
6
|
SimpleCov::Formatter::HTMLFormatter,
|
7
7
|
Coveralls::SimpleCov::Formatter
|
8
8
|
]
|
9
|
+
SimpleCov.formatter = SimpleCov::Formatter::MultiFormatter.new(formatters)
|
9
10
|
SimpleCov.start do
|
10
11
|
add_filter "vendor/cache"
|
11
12
|
end
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: tmuxinator
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.7.
|
4
|
+
version: 0.7.2
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Allen Bargi
|
@@ -9,7 +9,7 @@ authors:
|
|
9
9
|
autorequire:
|
10
10
|
bindir: bin
|
11
11
|
cert_chain: []
|
12
|
-
date:
|
12
|
+
date: 2016-04-01 00:00:00.000000000 Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: thor
|
@@ -130,7 +130,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
130
130
|
version: 1.8.23
|
131
131
|
requirements: []
|
132
132
|
rubyforge_project:
|
133
|
-
rubygems_version: 2.
|
133
|
+
rubygems_version: 2.5.1
|
134
134
|
signing_key:
|
135
135
|
specification_version: 4
|
136
136
|
summary: Create and manage complex tmux sessions easily.
|
data/bin/mux
DELETED
@@ -1,16 +0,0 @@
|
|
1
|
-
#!/usr/bin/env ruby
|
2
|
-
$: << File.expand_path("../../lib/", __FILE__)
|
3
|
-
|
4
|
-
require "thor"
|
5
|
-
require "tmuxinator"
|
6
|
-
|
7
|
-
name = ARGV[0] || nil
|
8
|
-
|
9
|
-
if ARGV.length == 0 && Tmuxinator::Config.local?
|
10
|
-
Tmuxinator::Cli.new.local
|
11
|
-
elsif name && !Tmuxinator::Cli::COMMANDS.keys.include?(name.to_sym) &&
|
12
|
-
Tmuxinator::Config.exists?(name)
|
13
|
-
Tmuxinator::Cli.new.start(name, *ARGV.drop(1))
|
14
|
-
else
|
15
|
-
Tmuxinator::Cli.start
|
16
|
-
end
|
data/completion/mux.fish
DELETED
@@ -1,22 +0,0 @@
|
|
1
|
-
function __fish_tmuxinator_using_command
|
2
|
-
set cmd (commandline -opc)
|
3
|
-
if [ (count $cmd) -gt 1 ]
|
4
|
-
if [ $argv[1] = $cmd[2] ]
|
5
|
-
return 0
|
6
|
-
end
|
7
|
-
end
|
8
|
-
return 1
|
9
|
-
end
|
10
|
-
|
11
|
-
set __fish_tmuxinator_program_cmd (commandline -o)[1]
|
12
|
-
|
13
|
-
function __fish_tmuxinator_program
|
14
|
-
eval "$__fish_tmuxinator_program_cmd $argv"
|
15
|
-
end
|
16
|
-
|
17
|
-
complete -f -c $__fish_tmuxinator_program_cmd -a '(__fish_tmuxinator_program completions start)'
|
18
|
-
complete -f -c $__fish_tmuxinator_program_cmd -n '__fish_use_subcommand' -x -a "(__fish_tmuxinator_program commands)"
|
19
|
-
complete -f -c $__fish_tmuxinator_program_cmd -n '__fish_tmuxinator_using_command start' -a "(__fish_tmuxinator_program completions start)"
|
20
|
-
complete -f -c $__fish_tmuxinator_program_cmd -n '__fish_tmuxinator_using_command open' -a "(__fish_tmuxinator_program completions open)"
|
21
|
-
complete -f -c $__fish_tmuxinator_program_cmd -n '__fish_tmuxinator_using_command copy' -a "(__fish_tmuxinator_program completions copy)"
|
22
|
-
complete -f -c $__fish_tmuxinator_program_cmd -n '__fish_tmuxinator_using_command delete' -a "(__fish_tmuxinator_program completions delete)"
|