vimamsa 0.1.4 → 0.1.7

Sign up to get free protection for your applications and to get access to all the features.
@@ -6,10 +6,6 @@ def execute_search(input_str)
6
6
  return $search.set(input_str, "simple", $buffer)
7
7
  end
8
8
 
9
- def invoke_search()
10
- start_minibuffer_cmd("", "", :execute_search)
11
- end
12
-
13
9
  def invoke_search()
14
10
  nfo = ""
15
11
 
@@ -115,7 +115,7 @@ def gui_replace_callback(vals)
115
115
  search_str = vals["search"]
116
116
  replace_str = vals["replace"]
117
117
  puts "gui_replace_callback: #{search_str} => #{replace_str}"
118
- qt_select_window_close(0)
118
+ gui_select_window_close(0)
119
119
  buf_replace(search_str, replace_str)
120
120
  end
121
121
 
@@ -152,7 +152,6 @@ def buf_replace(search_str, replace_str)
152
152
  else
153
153
  $buffer.set_content(repbuf)
154
154
  $buffer.set_pos(tmppos)
155
- # $do_center = 1 #TODO
156
155
  message("Replacing #{search_str} with #{replace_str}.")
157
156
  end
158
157
  end
data/lib/vimamsa/util.rb CHANGED
@@ -43,7 +43,7 @@ def read_file(text, path)
43
43
 
44
44
  #TODO: Should put these as option:
45
45
  content.gsub!(/\r\n/, "\n")
46
- content.gsub!(/\t/, " ")
46
+ # content.gsub!(/\t/, " ")
47
47
  content.gsub!(/\b/, "")
48
48
 
49
49
  # content = filter_buffer(content)
@@ -1,3 +1,3 @@
1
1
  module Vimamsa
2
- VERSION = "0.1.4"
2
+ VERSION = "0.1.7"
3
3
  end
data/lib/vimamsa.rb CHANGED
@@ -1,42 +1,12 @@
1
1
  require "vimamsa/version"
2
2
  require "vmaext"
3
3
 
4
-
5
- # require "vimamsa/constants"
6
- # require "vimamsa/debug"
7
- # require "vimamsa/actions"
8
- # require "vimamsa/key_binding_tree"
9
- # require "vimamsa/default_key_bindings"
10
-
11
- # require "vimamsa/ack"
12
- # require "vimamsa/buffer"
13
- # require "vimamsa/buffer_list"
14
-
15
-
16
- # require "vimamsa/easy_jump"
17
- # require "vimamsa/editor"
18
- # require "vimamsa/encrypt"
19
- # require "vimamsa/file_finder"
20
- # require "vimamsa/file_history"
21
- # require "vimamsa/file_manager"
22
- # require "vimamsa/hook"
23
- # require "vimamsa/hyper_plain_text"
24
- # require "vimamsa/macro"
25
- # require "vimamsa/rbvma"
26
- # require "vimamsa/search"
27
- # require "vimamsa/search_replace"
28
- # require "vimamsa/text_transforms"
29
- # require "vimamsa/util"
30
- # # require "version"
31
-
32
- # require "vimamsa/main"
33
-
34
4
  require "vimamsa/rbvma"
35
5
 
36
6
  module Vimamsa
37
7
  # Your code goes here...
38
8
  def self.test
39
9
  puts "Vimamsa test"
40
- puts srn_dst("foobar","baz")
10
+ puts srn_dst("foobar", "baz")
41
11
  end
42
12
  end
data/vimamsa.gemspec CHANGED
@@ -20,7 +20,7 @@ Gem::Specification.new do |spec|
20
20
  spec.executables = spec.files.grep(%r{^exe/}) { |f| File.basename(f) }
21
21
  spec.require_paths = ["lib","ext"]
22
22
 
23
- spec.add_development_dependency "bundler", "~> 1.16"
23
+ spec.add_development_dependency "bundler", "~> 2.2.33"
24
24
  spec.add_development_dependency "rake", "~> 13.0"
25
25
 
26
26
  spec.add_runtime_dependency 'rufo', '~> 0.5'
@@ -33,6 +33,7 @@ Gem::Specification.new do |spec|
33
33
  spec.add_runtime_dependency 'gtksourceview3', '~> 3.4'
34
34
  # spec.add_runtime_dependency 'gtksourceview4'
35
35
  spec.add_runtime_dependency 'parallel', '~> 1.14'
36
+ spec.add_runtime_dependency 'listen', '~> 3.4'
36
37
 
37
38
  spec.extensions = ["ext/vmaext/extconf.rb"]
38
39
  spec.licenses = ['GPL-3.0+']
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: vimamsa
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.4
4
+ version: 0.1.7
5
5
  platform: ruby
6
6
  authors:
7
7
  - Sami Sieranoja
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2021-03-14 00:00:00.000000000 Z
11
+ date: 2022-04-25 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler
@@ -16,14 +16,14 @@ dependencies:
16
16
  requirements:
17
17
  - - "~>"
18
18
  - !ruby/object:Gem::Version
19
- version: '1.16'
19
+ version: 2.2.33
20
20
  type: :development
21
21
  prerelease: false
22
22
  version_requirements: !ruby/object:Gem::Requirement
23
23
  requirements:
24
24
  - - "~>"
25
25
  - !ruby/object:Gem::Version
26
- version: '1.16'
26
+ version: 2.2.33
27
27
  - !ruby/object:Gem::Dependency
28
28
  name: rake
29
29
  requirement: !ruby/object:Gem::Requirement
@@ -150,6 +150,20 @@ dependencies:
150
150
  - - "~>"
151
151
  - !ruby/object:Gem::Version
152
152
  version: '1.14'
153
+ - !ruby/object:Gem::Dependency
154
+ name: listen
155
+ requirement: !ruby/object:Gem::Requirement
156
+ requirements:
157
+ - - "~>"
158
+ - !ruby/object:Gem::Version
159
+ version: '3.4'
160
+ type: :runtime
161
+ prerelease: false
162
+ version_requirements: !ruby/object:Gem::Requirement
163
+ requirements:
164
+ - - "~>"
165
+ - !ruby/object:Gem::Version
166
+ version: '3.4'
153
167
  description: Vi/Vim -inspired experimental GUI-oriented text editor written with Ruby
154
168
  and GTK.
155
169
  email:
@@ -178,16 +192,22 @@ files:
178
192
  - lib/vimamsa/buffer_list.rb
179
193
  - lib/vimamsa/constants.rb
180
194
  - lib/vimamsa/debug.rb
181
- - lib/vimamsa/default_key_bindings.rb
182
195
  - lib/vimamsa/easy_jump.rb
183
196
  - lib/vimamsa/editor.rb
184
197
  - lib/vimamsa/encrypt.rb
185
198
  - lib/vimamsa/file_finder.rb
186
199
  - lib/vimamsa/file_history.rb
187
200
  - lib/vimamsa/file_manager.rb
201
+ - lib/vimamsa/gui.rb
202
+ - lib/vimamsa/gui_gtk_sourceview.rb
203
+ - lib/vimamsa/gui_menu.rb
204
+ - lib/vimamsa/gui_select_window.rb
205
+ - lib/vimamsa/gui_sourceview.rb
188
206
  - lib/vimamsa/hook.rb
189
207
  - lib/vimamsa/hyper_plain_text.rb
208
+ - lib/vimamsa/key_actions.rb
190
209
  - lib/vimamsa/key_binding_tree.rb
210
+ - lib/vimamsa/key_bindings_vimlike.rb
191
211
  - lib/vimamsa/macro.rb
192
212
  - lib/vimamsa/main.rb
193
213
  - lib/vimamsa/rbvma.rb