hilfer 0.9.4 → 0.9.5
Sign up to get free protection for your applications and to get access to all the features.
- data/ChangeLog +11 -0
- data/History.txt +4 -0
- data/Manifest.txt +1 -0
- data/Rakefile +6 -0
- data/lib/hilfer/version.rb +1 -1
- data/lib/hilfer/xfce_terminal.rb +24 -0
- metadata +2 -1
data/ChangeLog
CHANGED
@@ -1,3 +1,14 @@
|
|
1
|
+
2008-04-11 13:37 panic
|
2
|
+
|
3
|
+
* [r3487] trunk/Manifest.txt, trunk/Rakefile,
|
4
|
+
trunk/lib/hilfer/version.rb:
|
5
|
+
add xfce_terminal to Manifest.txt
|
6
|
+
|
7
|
+
2008-04-11 09:36 panic
|
8
|
+
|
9
|
+
* [r3486] trunk/Rakefile:
|
10
|
+
clean up ChangeLog'
|
11
|
+
|
1
12
|
2008-04-11 09:27 panic
|
2
13
|
|
3
14
|
* [r3485] trunk/README.txt:
|
data/History.txt
CHANGED
data/Manifest.txt
CHANGED
data/Rakefile
CHANGED
data/lib/hilfer/version.rb
CHANGED
@@ -0,0 +1,24 @@
|
|
1
|
+
# check for existence of Terminal
|
2
|
+
unless File.exist?( '/usr/bin/Terminal' )
|
3
|
+
raise 'XFCE Terminal not available at /usr/bin/Terminal'
|
4
|
+
end
|
5
|
+
|
6
|
+
=begin rdoc
|
7
|
+
Knows how to lauch XFCE Terminal with mutiple tabs,
|
8
|
+
each opened on a different directory
|
9
|
+
=end
|
10
|
+
class XfceTerminal
|
11
|
+
def launch( dirs )
|
12
|
+
# construct arguments and launch
|
13
|
+
# Terminal --working-directory ~/projects --tab --working-directory /projects/bin
|
14
|
+
args = [ 'Terminal' ]
|
15
|
+
dirs.uniq.each do |x|
|
16
|
+
# first one will be a window so no arg needed, subsequent ones are tabs
|
17
|
+
args << '--tab' if args.size > 1
|
18
|
+
args << "--working-directory"
|
19
|
+
args << x
|
20
|
+
end
|
21
|
+
puts "args: #{args.inspect}"
|
22
|
+
system( *args )
|
23
|
+
end
|
24
|
+
end
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: hilfer
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.9.
|
4
|
+
version: 0.9.5
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- John Anderson
|
@@ -53,6 +53,7 @@ files:
|
|
53
53
|
- lib/hilfer/tree_viewer_window.rb
|
54
54
|
- lib/hilfer/version.rb
|
55
55
|
- lib/hilfer/xterm.rb
|
56
|
+
- lib/hilfer/xfce_terminal.rb
|
56
57
|
has_rdoc: true
|
57
58
|
homepage: http://www.rubyforge.org/projects/hilfer
|
58
59
|
post_install_message:
|