topinambour 1.0.12 → 1.0.13
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/README.md +6 -1
- data/lib/application.rb +11 -3
- data/lib/notebook.rb +6 -1
- data/lib/window.rb +9 -7
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: f39664ed80b51cfc2df2f4210e4ee36e4ce8b2d4
|
4
|
+
data.tar.gz: 649ba523bd608e16392ac95f920ce614e46401b1
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 84f94e1173d5fd2b5f2e4b5c1745dda97c845d90cf2b02786c2f83013812c4f51d53e9e1bacb26e1db32e7ea2da7bf4317bce25551e8103bd5fa18e9db3e142a
|
7
|
+
data.tar.gz: 7d67ab78fd8d2e64176d510342688b385979a6a86ff77d93be18b546543ebaf21a7c588efffdaa0241284d5bc2c7211ecb6bb128d63fc7e1f72328e11ad9e785
|
data/README.md
CHANGED
@@ -8,9 +8,15 @@
|
|
8
8
|
## Introduction
|
9
9
|
Topinambour is a Terminal written with the **Gtk3** and **Vte3** ruby bindings from the project [Ruby-GNOME2](https://github.com/ruby-gnome2/ruby-gnome2).
|
10
10
|
|
11
|
+
### Install
|
11
12
|
|
12
13
|
gem install topinambour
|
13
14
|
|
15
|
+
### Launch
|
16
|
+
|
17
|
+
topinambour
|
18
|
+
topinambour -e "/usr/bin/htop,/usr/bin/glances"
|
19
|
+
|
14
20
|
## Features
|
15
21
|
|
16
22
|
<a href="https://raw.github.com/cedlemo/topinambour/master/screenshot_color_scheme.png"><img src="https://raw.github.com/cedlemo/topinambour/master/screenshot_color_scheme.png" alt="Topinambour Preview"></a>
|
@@ -22,7 +28,6 @@ Topinambour is a Terminal written with the **Gtk3** and **Vte3** ruby bindings f
|
|
22
28
|
* terminal colors can be changed on the fly and saved.
|
23
29
|
* terminal font can be changed on the fly and saved.
|
24
30
|
* in the terminals, some patterns can be clicked (urls, emails, color names ...) in order to launch the appropriate application or a related dialog window.
|
25
|
-
* Topinambour allows users to modify existing modules. For example if a user copy the css_editor.rb in the directory *~/.config/topinambour/lib/css_editor.rb*, he should be able to modify it in order to fit its needs.
|
26
31
|
|
27
32
|
## Shortcuts
|
28
33
|
|
data/lib/application.rb
CHANGED
@@ -37,7 +37,15 @@ class TopinambourApplication < Gtk::Application
|
|
37
37
|
signal_connect "activate" do |application|
|
38
38
|
window = TopinambourWindow.new(application)
|
39
39
|
window.present
|
40
|
-
|
40
|
+
if @options[:execute]
|
41
|
+
@options[:execute].each do |cmd|
|
42
|
+
window.add_terminal(cmd)
|
43
|
+
window.notebook.current.term.custom_title = cmd
|
44
|
+
window.current_label.text = cmd
|
45
|
+
end
|
46
|
+
else
|
47
|
+
window.add_terminal
|
48
|
+
end
|
41
49
|
end
|
42
50
|
|
43
51
|
|
@@ -105,8 +113,8 @@ class TopinambourApplication < Gtk::Application
|
|
105
113
|
|
106
114
|
def parse_command_line(arguments)
|
107
115
|
parser = OptionParser.new
|
108
|
-
parser.on("-e", "--execute
|
109
|
-
@options[:execute] =
|
116
|
+
parser.on("-e", "--execute COMMAND1,COMMAND2,COMMAND3", Array, "Run a command") do |cmds|
|
117
|
+
@options[:execute] = cmds
|
110
118
|
end
|
111
119
|
parser.parse(arguments)
|
112
120
|
end
|
data/lib/notebook.rb
CHANGED
@@ -64,7 +64,12 @@ class TopinambourNotebook < Gtk::Notebook
|
|
64
64
|
|
65
65
|
def remove_current_page
|
66
66
|
if n_pages == 1
|
67
|
-
|
67
|
+
if @hidden.empty?
|
68
|
+
toplevel.quit_gracefully
|
69
|
+
else
|
70
|
+
append_page(@hidden.pop)
|
71
|
+
remove_current_page
|
72
|
+
end
|
68
73
|
else
|
69
74
|
remove(current)
|
70
75
|
current.term.grab_focus
|
data/lib/window.rb
CHANGED
@@ -37,13 +37,15 @@ class TopinambourWindow < Gtk::ApplicationWindow
|
|
37
37
|
working_dir = nil
|
38
38
|
working_dir = @notebook.current.term.pid_dir if @notebook.current
|
39
39
|
terminal = TopinambourTabTerm.new(cmd, working_dir)
|
40
|
-
terminal.
|
40
|
+
if terminal.term.pid
|
41
|
+
terminal.show_all
|
41
42
|
|
42
|
-
|
43
|
-
|
44
|
-
|
45
|
-
|
46
|
-
|
43
|
+
@notebook.append_page(terminal)
|
44
|
+
terminal.term.load_settings
|
45
|
+
@notebook.set_tab_reorderable(terminal, true)
|
46
|
+
@notebook.set_page(@notebook.n_pages - 1)
|
47
|
+
@notebook.current.term.grab_focus
|
48
|
+
end
|
47
49
|
end
|
48
50
|
|
49
51
|
def quit_gracefully
|
@@ -88,7 +90,7 @@ class TopinambourWindow < Gtk::ApplicationWindow
|
|
88
90
|
"license" => "This program is licenced under the licence GPL-3.0 and later.",
|
89
91
|
"logo_icon_name" => "utilities-terminal-symbolic",
|
90
92
|
"program_name" => "Topinambour",
|
91
|
-
"version" => "1.0.
|
93
|
+
"version" => "1.0.13",
|
92
94
|
"website" => "https://github.com/cedlemo/topinambour",
|
93
95
|
"website_label" => "Topinambour github repository"
|
94
96
|
)
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: topinambour
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.0.
|
4
|
+
version: 1.0.13
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Cedric LE MOIGNE
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2017-
|
11
|
+
date: 2017-06-17 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: vte3
|