vimamsa 0.1.25 → 0.1.26
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/lib/vimamsa/gui_settings.rb +5 -2
- data/lib/vimamsa/version.rb +1 -1
- data/modules/terminal/terminal.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 65bf166a03bdc844a703bbb423e80eee58b65da2aea57039727929c04a6cca79
|
|
4
|
+
data.tar.gz: 9ee3ebab2b820f77992defb5f435451b9bb40e57cf4062ce9636a36622abfcf6
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 20fba0fe91e750581930bd4fd6c804774c67d625ee6811380e6006856e1dd8e2ffdb41227233d600e81756e2db9edc49251d7fba4f917a7a517ef68add7725fe
|
|
7
|
+
data.tar.gz: 953f3d3d7590f4e87c5723f7351ffddcd8f9e6031b7683007312397418468c2232edca42fbcd424bea3929e4af9fc8cec326158c543d19407601d637ff7c37dd
|
data/lib/vimamsa/gui_settings.rb
CHANGED
|
@@ -355,8 +355,9 @@ end
|
|
|
355
355
|
|
|
356
356
|
# Find the XML file on disk for a given scheme id.
|
|
357
357
|
def find_scheme_xml_path(scheme_id)
|
|
358
|
+
user_styles_dir = File.expand_path("~/.config/vimamsa/styles")
|
|
358
359
|
ssm = GtkSource::StyleSchemeManager.new
|
|
359
|
-
ssm.set_search_path(ssm.search_path << ppath("styles/"))
|
|
360
|
+
ssm.set_search_path(ssm.search_path << ppath("styles/") << user_styles_dir)
|
|
360
361
|
ssm.search_path.each do |dir|
|
|
361
362
|
next unless Dir.exist?(dir)
|
|
362
363
|
Dir[File.join(dir, "*.xml")].each do |f|
|
|
@@ -385,7 +386,9 @@ def apply_contrast_transformation(base_scheme_id, contrast, brightness)
|
|
|
385
386
|
adjusted = adjusted.sub(/(<style-scheme\b[^>]*)id="[^"]*"/, "\\1id=\"#{VIMAMSA_CONTRAST_SCHEME_ID}\"")
|
|
386
387
|
adjusted = adjusted.sub(/(<style-scheme\b[^>]*)name="[^"]*"/, "\\1name=\"#{VIMAMSA_CONTRAST_SCHEME_ID}\"")
|
|
387
388
|
adjusted = adjusted.sub(/\s*parent-scheme="[^"]*"/, "") # avoid inheritance chains
|
|
388
|
-
|
|
389
|
+
user_styles_dir = File.expand_path("~/.config/vimamsa/styles")
|
|
390
|
+
FileUtils.mkdir_p(user_styles_dir)
|
|
391
|
+
IO.write(File.join(user_styles_dir, "_vimamsa_contrast.xml"), adjusted)
|
|
389
392
|
VIMAMSA_CONTRAST_SCHEME_ID
|
|
390
393
|
end
|
|
391
394
|
|
data/lib/vimamsa/version.rb
CHANGED
|
@@ -130,7 +130,7 @@ end
|
|
|
130
130
|
def terminal_init
|
|
131
131
|
require "vte4"
|
|
132
132
|
reg_act(:insert_terminal, proc { insert_terminal_in_buffer }, "Insert embedded terminal at cursor")
|
|
133
|
-
add_keys "terminal", { "C , t" => :insert_terminal }
|
|
133
|
+
# add_keys "terminal", { "C , t" => :insert_terminal }
|
|
134
134
|
vma.gui.menu.add_module_action(:insert_terminal, "Insert Terminal")
|
|
135
135
|
end
|
|
136
136
|
|