glimmer-cs-gladiator 0.8.3 → 0.9.1

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: b50517d61cc617ff8301fd56053e04c385e75591a9d4adc7ddf02b9ca6bfb785
4
- data.tar.gz: deac989a0cd8086b8c6b3be605606ff96fda4d6ad9a8c8d7fcb4cee6afcde1b5
3
+ metadata.gz: 05d78a9ecf5d67e3aa15255e0c34c0772c07b875a6f6ffc08c30b06961bbda47
4
+ data.tar.gz: 51c0ae819c0623ffced64109236b1ce0f3197745e7c49f084ba5ab63e2784cc7
5
5
  SHA512:
6
- metadata.gz: 79bd7f9c58f721c17168d51b13a58f2f7ac6817110c76e14170cdebae3c22d4adf2b30763ce2cbb04c220300934c30b3dfc8c2e9533520689444c94c537c3e54
7
- data.tar.gz: b04a9bd90fe07bd5c64e947089a017b51925707805d6127866cc10cd789c6ac76f4f40f37669033c8deaf375d98072fbb92e419c37429bcdb368e634ce1e2aa5
6
+ metadata.gz: 02fca47a4008e799265183f2c51e49bab365fc9d42e7a51ea85c70001f26c15ca41c62692b4b90b1f99482c678dc5cf90e883ef561c6e783d9d4b25c6602e3f4
7
+ data.tar.gz: 7da035e31ca27bcaac5ad9fc71638d9e32e502f3cc7ef73e8948becbd5de4f0036d78cd4bde553be264d171a6703cbcaa27b3baba3770c186442c7325cbe6c6e
data/CHANGELOG.md CHANGED
@@ -1,5 +1,17 @@
1
1
  # Change Log
2
2
 
3
+ ## 0.9.1
4
+
5
+ - Upgrade to glimmer-dsl-swt 4.20.15.4
6
+ - Fix issue with keyboard shortcuts not working in first tab (also fix scroll-jittering when performing CMD+] and CMD+[ in first tab)
7
+ - Change Quit Project keyboard shortcut to ALT+F4
8
+ - In app mode (packaged version), show "Open Project..." shell again after closing last open project
9
+
10
+ ## 0.9.0
11
+
12
+ - Upgrade to glimmer-dsl-swt 4.19.0.0
13
+ - Updated quit project accelerator (keyboard shortcut) to ALT+F4
14
+
3
15
  ## 0.8.3
4
16
 
5
17
  - Switch Scratchpad evaling to loading a temporary local file under `project_dir/.gladiator-scratchpad` for a more realistic Ruby running experience
data/README.md CHANGED
@@ -1,4 +1,4 @@
1
- # <img src='https://raw.githubusercontent.com/AndyObtiva/glimmer-cs-gladiator/master/images/glimmer-cs-gladiator-logo.svg' height=85 /> Gladiator 0.8.3 - [Ugliest Text Editor Ever!](https://www.reddit.com/r/ruby/comments/hgve8k/gladiator_glimmer_editor_ugliest_text_editor_ever/)
1
+ # <img src='https://raw.githubusercontent.com/AndyObtiva/glimmer-cs-gladiator/master/images/glimmer-cs-gladiator-logo.svg' height=85 /> Gladiator 0.9.1 - [Ugliest Text Editor Ever!](https://www.reddit.com/r/ruby/comments/hgve8k/gladiator_glimmer_editor_ugliest_text_editor_ever/)
2
2
  ## [<img src="https://raw.githubusercontent.com/AndyObtiva/glimmer/master/images/glimmer-logo-hi-res.png" height=40 /> Glimmer Custom Shell](https://github.com/AndyObtiva/glimmer-dsl-swt#custom-shell-gem)
3
3
  [![Gem Version](https://badge.fury.io/rb/glimmer-cs-gladiator.svg)](http://badge.fury.io/rb/glimmer-cs-gladiator)
4
4
 
@@ -45,7 +45,7 @@ Gladiator currently supports the following text editing features (including keyb
45
45
  ### Navigation Area
46
46
 
47
47
  - Show current text editor file name
48
- - Show file navigation stats (Caret Position / Line Position / Selection Count / Top Pixel)
48
+ 0- Show file navigation stats (Caret Position / Line Position / Selection Count / Top Pixel)
49
49
  - Jump to Line (CMD+L)
50
50
  - Find & Replace (CMD+F)
51
51
 
@@ -54,7 +54,7 @@ Gladiator currently supports the following text editing features (including keyb
54
54
  - File Menu:
55
55
  - Open Scratchpad for running arbitrary Ruby/Glimmer code (saves a temporary file to `project_dir/.gladiator-scratchpad`) (CMD+SHIFT+S)
56
56
  - Open Project (CMD+O)
57
- - Quit Project (CMD+ALT+Q)
57
+ - Quit Project (ALT+F4)
58
58
  - View Menu
59
59
  - Split Pane
60
60
  - Orientation change to Horizontal/Vertical (CMD+SHIFT+O)
@@ -117,7 +117,7 @@ Gladiator currently supports the following text editing features (including keyb
117
117
 
118
118
  ## Download
119
119
 
120
- [Download Gladiator 0.8.3 Mac DMG Installer](https://www.dropbox.com/s/suqvzceqj1fxj8o/Gladiator-0.8.3.dmg?dl=1)
120
+ [Download Gladiator 0.9.1 Mac DMG Installer](https://www.dropbox.com/s/s9yp6qtelh85qko/Gladiator-0.9.1.dmg?dl=1)
121
121
 
122
122
  [Download Gladiator 0.8.3 Windows MSI Installer](https://www.dropbox.com/s/7kcrf7r5p6vxfm7/Gladiator-0.8.3.msi?dl=1)
123
123
 
@@ -192,7 +192,7 @@ To reuse Gladiator as a Glimmer Custom Shell inside another Glimmer application,
192
192
  following to the application's `Gemfile`:
193
193
 
194
194
  ```
195
- gem 'glimmer-cs-gladiator', '>= 0.8.3'
195
+ gem 'glimmer-cs-gladiator', '>= 0.9.1'
196
196
  ```
197
197
 
198
198
  Run:
@@ -239,12 +239,12 @@ The signal TERM is in use by the JVM and will not work correctly on this platfor
239
239
  ### App Is Not Responding
240
240
 
241
241
  If you run the `gladiator` command from the root directory or some parent directory to many projects, it assumes that is
242
- the project directory and attempt to pre-load all files, taking a very long time and not responding for quite a while.
242
+ the project directory and attempts to pre-load all files (just part of Gladiator's architectural design and assumptions for optimizing use per project), taking a very long time and not responding for quite a while.
243
243
 
244
244
  To avoid this problem, always make sure you are running the `gladiator` command from a single project's directory.
245
245
 
246
246
  Also, if you encounter this issue with projects that contain a lot of extra files that you do not need to edit, you
247
- could later open the generate `.gladiator` file at the root of the project directory and add unnecessary subdirectories
247
+ could later open the generated `.gladiator` file at the root of the project directory and add unnecessary subdirectories
248
248
  to the `ignore_paths` array.
249
249
 
250
250
  ## TODO
data/VERSION CHANGED
@@ -1 +1 @@
1
- 0.8.3
1
+ 0.9.1
data/bin/gladiator-setup CHANGED
@@ -70,7 +70,7 @@ end
70
70
 
71
71
  puts <<~OUTPUT
72
72
 
73
- Before using `gladiator`, start a new shell session (open a new terminal tab) or run:
73
+ Before using `gladiator`, start a new shell session in the same directory (open a new terminal tab and go to the same directory) or run:
74
74
 
75
75
  source ~/.gladiator_source
76
76
 
@@ -2,16 +2,16 @@
2
2
  # DO NOT EDIT THIS FILE DIRECTLY
3
3
  # Instead, edit Jeweler::Tasks in Rakefile, and run 'rake gemspec'
4
4
  # -*- encoding: utf-8 -*-
5
- # stub: glimmer-cs-gladiator 0.8.3 ruby lib
5
+ # stub: glimmer-cs-gladiator 0.9.1 ruby lib
6
6
 
7
7
  Gem::Specification.new do |s|
8
8
  s.name = "glimmer-cs-gladiator".freeze
9
- s.version = "0.8.3"
9
+ s.version = "0.9.1"
10
10
 
11
11
  s.required_rubygems_version = Gem::Requirement.new(">= 0".freeze) if s.respond_to? :required_rubygems_version=
12
12
  s.require_paths = ["lib".freeze]
13
13
  s.authors = ["Andy Maleh".freeze]
14
- s.date = "2021-03-04"
14
+ s.date = "2021-09-14"
15
15
  s.description = "Gladiator (short for Glimmer Editor) is a Glimmer sample project under on-going development. It is not intended to be a full-fledged editor by any means, yet mostly a fun educational exercise in using Glimmer to build a text editor. Gladiator is also a personal tool for shaping an editor exactly the way I like. I leave building truly professional text editors to software tooling experts who would hopefully use Glimmer one day.".freeze
16
16
  s.email = "andy.am@gmail.com".freeze
17
17
  s.executables = ["glimmer-cs-gladiator".freeze, "gladiator".freeze, "gladiator-setup".freeze]
@@ -45,31 +45,23 @@ Gem::Specification.new do |s|
45
45
  s.homepage = "http://github.com/AndyObtiva/glimmer-cs-gladiator".freeze
46
46
  s.licenses = ["MIT".freeze]
47
47
  s.post_install_message = "\nTo make the gladiator command available system-wide (especially with RVM), make sure you run this command with jruby in path: gladiator-setup\n\n".freeze
48
- s.rubygems_version = "3.0.6".freeze
48
+ s.rubygems_version = "3.1.6".freeze
49
49
  s.summary = "Gladiator (Glimmer Editor) - Glimmer Custom Shell - Text Editor Built in Ruby".freeze
50
50
 
51
51
  if s.respond_to? :specification_version then
52
52
  s.specification_version = 4
53
+ end
53
54
 
54
- if Gem::Version.new(Gem::VERSION) >= Gem::Version.new('1.2.0') then
55
- s.add_runtime_dependency(%q<glimmer-dsl-swt>.freeze, [">= 4.18.4.3", "< 5.0.0.0"])
56
- s.add_runtime_dependency(%q<filewatcher>.freeze, ["~> 1.1.1"])
57
- s.add_runtime_dependency(%q<clipboard>.freeze, ["~> 1.3.5"])
58
- s.add_development_dependency(%q<rspec>.freeze, ["~> 3.5.0"])
59
- s.add_development_dependency(%q<jeweler>.freeze, ["= 2.3.9"])
60
- s.add_development_dependency(%q<warbler>.freeze, ["= 2.0.5"])
61
- s.add_development_dependency(%q<simplecov>.freeze, [">= 0"])
62
- else
63
- s.add_dependency(%q<glimmer-dsl-swt>.freeze, [">= 4.18.4.3", "< 5.0.0.0"])
64
- s.add_dependency(%q<filewatcher>.freeze, ["~> 1.1.1"])
65
- s.add_dependency(%q<clipboard>.freeze, ["~> 1.3.5"])
66
- s.add_dependency(%q<rspec>.freeze, ["~> 3.5.0"])
67
- s.add_dependency(%q<jeweler>.freeze, ["= 2.3.9"])
68
- s.add_dependency(%q<warbler>.freeze, ["= 2.0.5"])
69
- s.add_dependency(%q<simplecov>.freeze, [">= 0"])
70
- end
55
+ if s.respond_to? :add_runtime_dependency then
56
+ s.add_runtime_dependency(%q<glimmer-dsl-swt>.freeze, ["~> 4.20.15.4"])
57
+ s.add_runtime_dependency(%q<filewatcher>.freeze, ["~> 1.1.1"])
58
+ s.add_runtime_dependency(%q<clipboard>.freeze, ["~> 1.3.5"])
59
+ s.add_development_dependency(%q<rspec>.freeze, ["~> 3.5.0"])
60
+ s.add_development_dependency(%q<jeweler>.freeze, ["= 2.3.9"])
61
+ s.add_development_dependency(%q<warbler>.freeze, ["= 2.0.5"])
62
+ s.add_development_dependency(%q<simplecov>.freeze, [">= 0"])
71
63
  else
72
- s.add_dependency(%q<glimmer-dsl-swt>.freeze, [">= 4.18.4.3", "< 5.0.0.0"])
64
+ s.add_dependency(%q<glimmer-dsl-swt>.freeze, ["~> 4.20.15.4"])
73
65
  s.add_dependency(%q<filewatcher>.freeze, ["~> 1.1.1"])
74
66
  s.add_dependency(%q<clipboard>.freeze, ["~> 1.3.5"])
75
67
  s.add_dependency(%q<rspec>.freeze, ["~> 3.5.0"])
@@ -522,13 +522,13 @@ module Glimmer
522
522
  end
523
523
 
524
524
  def page_up
525
- self.selection_count = 0
526
525
  self.line_number = [(self.line_number - 15), 1].max
526
+ self.selection_count = 0
527
527
  end
528
528
 
529
529
  def page_down
530
- self.selection_count = 0
531
530
  self.line_number = [(self.line_number + 15), lines.size].min
531
+ self.selection_count = 0
532
532
  end
533
533
 
534
534
  def home
@@ -29,7 +29,6 @@ module Glimmer
29
29
  body {
30
30
  list(:border, :h_scroll, :v_scroll) {
31
31
  selection bind(project_dir, :filtered_path)
32
- # visible bind(project_dir, 'filter') {|f| pd swt_widget&.get_shell&.get_data('proxy'); swt_widget&.get_shell&.get_data('proxy')&.pack_same_size; !!f}
33
32
  foreground foreground_color
34
33
  on_mouse_up {
35
34
  project_dir.selected_child_path = swt_widget.getSelection.first
@@ -49,7 +49,7 @@ module Glimmer
49
49
  menu_item(:separator)
50
50
  menu_item {
51
51
  text '&Quit Project'
52
- accelerator COMMAND_KEY, :alt, :q
52
+ accelerator :alt, :f4
53
53
  on_widget_selected {
54
54
  gladiator.save_config
55
55
  project_dir.selected_child&.write_dirty_content
@@ -251,7 +251,7 @@ module Glimmer
251
251
  #
252
252
  body {
253
253
  if app_mode?
254
- shell {
254
+ @@app_mode_shell = shell {
255
255
  text 'Gladiator'
256
256
  minimum_size 250, 250
257
257
  image ICON
@@ -286,6 +286,7 @@ module Glimmer
286
286
 
287
287
  on_shell_closed {
288
288
  project_dir.selected_child&.write_dirty_content
289
+ save_config
289
290
  if @tab_folder2
290
291
  current_tab_folder.swt_widget.getItems.each do |tab_item|
291
292
  tab_item.getData('proxy')&.dispose
@@ -295,10 +296,9 @@ module Glimmer
295
296
  current_tab_folder.swt_widget.getItems.each do |tab_item|
296
297
  tab_item.getData('proxy')&.dispose
297
298
  end
299
+ gladiator_shells = display.shells.select {|s| s.get_data('custom_shell')&.is_a?(Glimmer::Gladiator)}
298
300
  body_root.close unless current_tab_folder.swt_widget.getItems.empty?
299
- }
300
- on_widget_disposed {
301
- project_dir.selected_child&.write_dirty_content
301
+ async_exec { @@app_mode_shell.show } if defined?(@@app_mode_shell) && gladiator_shells.count <= 2
302
302
  }
303
303
  on_control_resized {
304
304
  save_config
@@ -308,6 +308,7 @@ module Glimmer
308
308
  }
309
309
  on_shell_deactivated {
310
310
  project_dir.selected_child&.write_dirty_content
311
+ save_config
311
312
  }
312
313
 
313
314
  # Menu Bar
@@ -920,7 +921,7 @@ module Glimmer
920
921
  async_exec {
921
922
  gladiator(project_dir_path: selected_directory) {
922
923
  on_swt_show {
923
- body_root.close if app_mode?
924
+ @@app_mode_shell.hide if app_mode?
924
925
  @progress_shell.close
925
926
  @progress_shell = nil
926
927
  }
metadata CHANGED
@@ -1,35 +1,29 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: glimmer-cs-gladiator
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.8.3
4
+ version: 0.9.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Andy Maleh
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2021-03-04 00:00:00.000000000 Z
11
+ date: 2021-09-14 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  requirement: !ruby/object:Gem::Requirement
15
15
  requirements:
16
- - - ">="
17
- - !ruby/object:Gem::Version
18
- version: 4.18.4.3
19
- - - "<"
16
+ - - "~>"
20
17
  - !ruby/object:Gem::Version
21
- version: 5.0.0.0
18
+ version: 4.20.15.4
22
19
  name: glimmer-dsl-swt
23
- type: :runtime
24
20
  prerelease: false
21
+ type: :runtime
25
22
  version_requirements: !ruby/object:Gem::Requirement
26
23
  requirements:
27
- - - ">="
28
- - !ruby/object:Gem::Version
29
- version: 4.18.4.3
30
- - - "<"
24
+ - - "~>"
31
25
  - !ruby/object:Gem::Version
32
- version: 5.0.0.0
26
+ version: 4.20.15.4
33
27
  - !ruby/object:Gem::Dependency
34
28
  requirement: !ruby/object:Gem::Requirement
35
29
  requirements:
@@ -37,8 +31,8 @@ dependencies:
37
31
  - !ruby/object:Gem::Version
38
32
  version: 1.1.1
39
33
  name: filewatcher
40
- type: :runtime
41
34
  prerelease: false
35
+ type: :runtime
42
36
  version_requirements: !ruby/object:Gem::Requirement
43
37
  requirements:
44
38
  - - "~>"
@@ -51,8 +45,8 @@ dependencies:
51
45
  - !ruby/object:Gem::Version
52
46
  version: 1.3.5
53
47
  name: clipboard
54
- type: :runtime
55
48
  prerelease: false
49
+ type: :runtime
56
50
  version_requirements: !ruby/object:Gem::Requirement
57
51
  requirements:
58
52
  - - "~>"
@@ -65,8 +59,8 @@ dependencies:
65
59
  - !ruby/object:Gem::Version
66
60
  version: 3.5.0
67
61
  name: rspec
68
- type: :development
69
62
  prerelease: false
63
+ type: :development
70
64
  version_requirements: !ruby/object:Gem::Requirement
71
65
  requirements:
72
66
  - - "~>"
@@ -79,8 +73,8 @@ dependencies:
79
73
  - !ruby/object:Gem::Version
80
74
  version: 2.3.9
81
75
  name: jeweler
82
- type: :development
83
76
  prerelease: false
77
+ type: :development
84
78
  version_requirements: !ruby/object:Gem::Requirement
85
79
  requirements:
86
80
  - - '='
@@ -93,8 +87,8 @@ dependencies:
93
87
  - !ruby/object:Gem::Version
94
88
  version: 2.0.5
95
89
  name: warbler
96
- type: :development
97
90
  prerelease: false
91
+ type: :development
98
92
  version_requirements: !ruby/object:Gem::Requirement
99
93
  requirements:
100
94
  - - '='
@@ -107,8 +101,8 @@ dependencies:
107
101
  - !ruby/object:Gem::Version
108
102
  version: '0'
109
103
  name: simplecov
110
- type: :development
111
104
  prerelease: false
105
+ type: :development
112
106
  version_requirements: !ruby/object:Gem::Requirement
113
107
  requirements:
114
108
  - - ">="
@@ -173,7 +167,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
173
167
  - !ruby/object:Gem::Version
174
168
  version: '0'
175
169
  requirements: []
176
- rubygems_version: 3.0.6
170
+ rubygems_version: 3.1.6
177
171
  signing_key:
178
172
  specification_version: 4
179
173
  summary: Gladiator (Glimmer Editor) - Glimmer Custom Shell - Text Editor Built in