glimmer-cs-gladiator 0.7.0 → 0.7.1
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/CHANGELOG.md +8 -0
- data/LICENSE.txt +1 -1
- data/README.md +3 -3
- data/VERSION +1 -1
- data/glimmer-cs-gladiator.gemspec +3 -3
- data/lib/models/glimmer/gladiator/dir.rb +1 -1
- data/lib/views/glimmer/gladiator.rb +24 -12
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 42a4c55757f8f11ff94253067439895f7e1c0a1a1ebb3aaaf6d9d1d068ea82eb
|
4
|
+
data.tar.gz: d09c688ba5042f0be4489347c6937780b5e06e815d8879499f30c73857a27969
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 6b3d619fbf4ad18ce233d86bfa6fcd902b3865e0177fac7021392354f72a07f0c93c47e70cb066a0e21c4358592f13b2f24dd66123d15c66eb971f6e2941ce57
|
7
|
+
data.tar.gz: fa59fa6baab0ef8b35ff6864692739f98a6f515cc63a61320cb12c92141c810364570e880e923e657401e1c56a533d98abbcc89fb609ad02126a9da39ed05e5f
|
data/CHANGELOG.md
CHANGED
@@ -1,5 +1,13 @@
|
|
1
1
|
# Change Log
|
2
2
|
|
3
|
+
## 0.7.1
|
4
|
+
|
5
|
+
- Update View -> Reset All to also reset the File Lookup/File Explorer Sash Width and the Navigation Bar (expanding it)
|
6
|
+
- Fix issue with split, reset split, unsplit, and then split again forgetting the reset for the sash width
|
7
|
+
- Ensure closing a single tab moves user back to the previous tab
|
8
|
+
- Add pkg to ignore paths
|
9
|
+
- Update Reset All menu item to reset splits too
|
10
|
+
|
3
11
|
## 0.7.0
|
4
12
|
|
5
13
|
- Upgrade to glimmer-dsl-swt v4.18.0.0
|
data/LICENSE.txt
CHANGED
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.7.
|
1
|
+
# <img src='https://raw.githubusercontent.com/AndyObtiva/glimmer-cs-gladiator/master/images/glimmer-cs-gladiator-logo.svg' height=85 /> Gladiator 0.7.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
|
[](http://badge.fury.io/rb/glimmer-cs-gladiator)
|
4
4
|
|
@@ -150,7 +150,7 @@ To reuse Gladiator as a Glimmer Custom Shell inside another Glimmer application,
|
|
150
150
|
following to the application's `Gemfile`:
|
151
151
|
|
152
152
|
```
|
153
|
-
gem 'glimmer-cs-gladiator', '>= 0.7.
|
153
|
+
gem 'glimmer-cs-gladiator', '>= 0.7.1'
|
154
154
|
```
|
155
155
|
|
156
156
|
Run:
|
@@ -214,7 +214,7 @@ The signal TERM is in use by the JVM and will not work correctly on this platfor
|
|
214
214
|
|
215
215
|
[MIT](https://opensource.org/licenses/MIT)
|
216
216
|
|
217
|
-
Copyright (c) 2020 Andy Maleh. See [LICENSE.txt](LICENSE.txt) for further details.
|
217
|
+
Copyright (c) 2020-2021 Andy Maleh. See [LICENSE.txt](LICENSE.txt) for further details.
|
218
218
|
|
219
219
|
--
|
220
220
|
|
data/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
0.7.
|
1
|
+
0.7.1
|
@@ -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.7.
|
5
|
+
# stub: glimmer-cs-gladiator 0.7.1 ruby lib
|
6
6
|
|
7
7
|
Gem::Specification.new do |s|
|
8
8
|
s.name = "glimmer-cs-gladiator".freeze
|
9
|
-
s.version = "0.7.
|
9
|
+
s.version = "0.7.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-01-
|
14
|
+
s.date = "2021-01-15"
|
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 = ["gladiator".freeze]
|
@@ -36,7 +36,7 @@ module Glimmer
|
|
36
36
|
end
|
37
37
|
self.path = ::File.expand_path(path)
|
38
38
|
@name = ::File.basename(::File.expand_path(path))
|
39
|
-
@ignore_paths = ['.gladiator', '.git', 'coverage', 'packages', 'node_modules', 'tmp', 'vendor']
|
39
|
+
@ignore_paths = ['.gladiator', '.git', 'coverage', 'packages', 'node_modules', 'tmp', 'vendor', 'pkg']
|
40
40
|
self.filtered_path_options = []
|
41
41
|
end
|
42
42
|
|
@@ -180,8 +180,14 @@ module Glimmer
|
|
180
180
|
end
|
181
181
|
observe(self, 'maximized_editor') do
|
182
182
|
@file_area_and_editor_area_sash_form.maximized_control = (@editor_area_composite.swt_widget if maximized_editor?)
|
183
|
+
if !maximized_editor?
|
184
|
+
expand_navigation_expand_bar_height
|
185
|
+
else
|
186
|
+
collapse_navigation_expand_bar_height
|
187
|
+
end
|
183
188
|
@navigation_expand_item.swt_expand_item.set_expanded !maximized_editor?
|
184
189
|
body_root.pack_same_size
|
190
|
+
async_exec { body_root.pack_same_size }
|
185
191
|
end
|
186
192
|
observe(project_dir, 'selected_child') do
|
187
193
|
save_config
|
@@ -337,6 +343,7 @@ module Glimmer
|
|
337
343
|
on_widget_selected {
|
338
344
|
self.maximized_editor = false
|
339
345
|
@file_area_and_editor_area_sash_form.weights = [1, 5]
|
346
|
+
@side_bar_sash_form.weights = [1, 1]
|
340
347
|
}
|
341
348
|
}
|
342
349
|
}
|
@@ -622,7 +629,7 @@ module Glimmer
|
|
622
629
|
grid_layout(5, false) {
|
623
630
|
margin_right 5
|
624
631
|
}
|
625
|
-
|
632
|
+
|
626
633
|
stat_font = {name: 'Consolas', height: OS.mac? ? 15 : 12}
|
627
634
|
|
628
635
|
# row 1
|
@@ -799,7 +806,7 @@ module Glimmer
|
|
799
806
|
}
|
800
807
|
|
801
808
|
on_item_expanded {
|
802
|
-
|
809
|
+
expand_navigation_expand_bar_height
|
803
810
|
}
|
804
811
|
|
805
812
|
}
|
@@ -1003,7 +1010,7 @@ module Glimmer
|
|
1003
1010
|
end
|
1004
1011
|
end
|
1005
1012
|
|
1006
|
-
def close_tab_folder(closing_tab_folder = nil)
|
1013
|
+
def close_tab_folder(closing_tab_folder = nil, single_tab: false)
|
1007
1014
|
closing_tab_folder ||= current_tab_folder
|
1008
1015
|
if @tab_folder2 && !selected_tab_item
|
1009
1016
|
if closing_tab_folder == @tab_folder2
|
@@ -1021,7 +1028,7 @@ module Glimmer
|
|
1021
1028
|
project_dir.selected_child = @current_tab_item.swt_tab_item.getData('file')
|
1022
1029
|
@current_text_editor&.text_widget&.setFocus
|
1023
1030
|
async_exec { @current_text_editor&.text_widget&.setFocus }
|
1024
|
-
|
1031
|
+
elsif !single_tab
|
1025
1032
|
self.current_tab_item = self.current_text_editor = project_dir.selected_child = nil
|
1026
1033
|
end
|
1027
1034
|
end
|
@@ -1042,17 +1049,13 @@ module Glimmer
|
|
1042
1049
|
@navigation_expand_item_height = @navigation_expand_item.swt_expand_item.height if @navigation_expand_item.swt_expand_item.height > 0
|
1043
1050
|
@navigation_expand_item.swt_expand_item.height = 0
|
1044
1051
|
body_root.pack_same_size
|
1045
|
-
async_exec {
|
1046
|
-
body_root.pack_same_size
|
1047
|
-
}
|
1052
|
+
async_exec { body_root.pack_same_size }
|
1048
1053
|
end
|
1049
1054
|
|
1050
1055
|
def expand_navigation_expand_bar_height
|
1051
|
-
@navigation_expand_item.swt_expand_item.height = @navigation_expand_item_height
|
1056
|
+
@navigation_expand_item.swt_expand_item.height = @navigation_expand_item_height || 140
|
1052
1057
|
body_root.pack_same_size
|
1053
|
-
async_exec {
|
1054
|
-
body_root.pack_same_size
|
1055
|
-
}
|
1058
|
+
async_exec { body_root.pack_same_size }
|
1056
1059
|
end
|
1057
1060
|
|
1058
1061
|
def extract_tree_item_path(tree_item)
|
@@ -1257,7 +1260,9 @@ module Glimmer
|
|
1257
1260
|
project_dir.selected_child.find_previous
|
1258
1261
|
elsif Glimmer::SWT::SWTProxy.include?(key_event.stateMask, COMMAND_KEY, :shift) && extract_char(key_event) == 'o'
|
1259
1262
|
self.maximized_pane = false
|
1263
|
+
old_split_orientation = self.split_orientation
|
1260
1264
|
self.split_orientation = split_pane? && split_orientation == swt(:horizontal) ? swt(:vertical) : swt(:horizontal)
|
1265
|
+
@tab_folder_sash_form.weights = [1, 1] if old_split_orientation.nil?
|
1261
1266
|
elsif Glimmer::SWT::SWTProxy.include?(key_event.stateMask, COMMAND_KEY, :shift) && extract_char(key_event) == 'w'
|
1262
1267
|
close_all_tabs
|
1263
1268
|
elsif Glimmer::SWT::SWTProxy.include?(key_event.stateMask, COMMAND_KEY, :alt) && extract_char(key_event) == 'w'
|
@@ -1269,13 +1274,20 @@ module Glimmer
|
|
1269
1274
|
if selected_tab_item
|
1270
1275
|
project_dir.selected_child_path_history.delete(project_dir.selected_child.path)
|
1271
1276
|
selected_tab_item.getData('proxy')&.dispose
|
1272
|
-
close_tab_folder
|
1277
|
+
close_tab_folder(single_tab: true)
|
1278
|
+
# if self.current_tab_item.nil?
|
1279
|
+
# filter_text.swt_widget.selectAll
|
1280
|
+
# filter_text.swt_widget.setFocus
|
1281
|
+
# else
|
1282
|
+
# current_text_editor&.text_widget&.setFocus
|
1283
|
+
# end
|
1273
1284
|
if selected_tab_item.nil?
|
1274
1285
|
self.current_tab_item = self.current_text_editor = project_dir.selected_child = nil
|
1275
1286
|
filter_text.swt_widget.selectAll
|
1276
1287
|
filter_text.swt_widget.setFocus
|
1277
1288
|
else
|
1278
1289
|
current_text_editor&.text_widget&.setFocus
|
1290
|
+
# async_exec { current_text_editor&.text_widget&.setFocus }
|
1279
1291
|
end
|
1280
1292
|
end
|
1281
1293
|
elsif Glimmer::SWT::SWTProxy.include?(key_event.stateMask, COMMAND_KEY, :shift) && extract_char(key_event) == ']'
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: glimmer-cs-gladiator
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.7.
|
4
|
+
version: 0.7.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-01-
|
11
|
+
date: 2021-01-15 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
requirement: !ruby/object:Gem::Requirement
|