vimamsa 0.1.5 → 0.1.8

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.
@@ -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
 
@@ -36,7 +32,7 @@ class Search
36
32
  @reg = Regexp.new(regex, Regexp::IGNORECASE)
37
33
  end
38
34
  @search_indexes = scan_indexes(buffer, @reg)
39
- puts @search_indexes.inspect
35
+ debug @search_indexes.inspect
40
36
  @cur_search_i = -1
41
37
  if @search_indexes.any?
42
38
  @cur_search_i = 0
@@ -50,7 +50,7 @@ class FileSelector
50
50
  # puts "def select_line"
51
51
  fn = fullp(@buf.get_current_line[0..-2])
52
52
  if File.directory?(fn)
53
- puts "CHDIR: #{fn}"
53
+ debug "CHDIR: #{fn}"
54
54
  dir_to_buf(fn)
55
55
  # elsif vma.can_open_extension?(fn) #TODO: remove this check?
56
56
  # jump_to_file(fn)
@@ -59,7 +59,6 @@ class FileSelector
59
59
  else
60
60
  open_with_default_program(fn)
61
61
  end
62
- # puts l.inspect
63
62
  end
64
63
  end
65
64
 
@@ -91,7 +90,7 @@ def grep_cur_buffer(search_str, b = nil)
91
90
  # @current_buf = buffer_i
92
91
 
93
92
  b.line_action_handler = proc { |lineno|
94
- puts "GREP HANDLER:#{lineno}"
93
+ debug "GREP HANDLER:#{lineno}"
95
94
  jumpto = $grep_matches[lineno]
96
95
  if jumpto.class == Integer
97
96
  $buffers.set_current_buffer($grep_bufid, update_history = true)
@@ -114,8 +113,8 @@ end
114
113
  def gui_replace_callback(vals)
115
114
  search_str = vals["search"]
116
115
  replace_str = vals["replace"]
117
- puts "gui_replace_callback: #{search_str} => #{replace_str}"
118
- qt_select_window_close(0)
116
+ debug "gui_replace_callback: #{search_str} => #{replace_str}"
117
+ gui_select_window_close(0)
119
118
  buf_replace(search_str, replace_str)
120
119
  end
121
120
 
@@ -152,7 +151,6 @@ def buf_replace(search_str, replace_str)
152
151
  else
153
152
  $buffer.set_content(repbuf)
154
153
  $buffer.set_pos(tmppos)
155
- # $do_center = 1 #TODO
156
154
  message("Replacing #{search_str} with #{replace_str}.")
157
155
  end
158
156
  end
@@ -1,3 +1,3 @@
1
1
  module Vimamsa
2
- VERSION = "0.1.5"
2
+ VERSION = "0.1.8"
3
3
  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'
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.5
4
+ version: 0.1.8
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-17 00:00:00.000000000 Z
11
+ date: 2022-05-03 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
@@ -190,18 +190,25 @@ files:
190
190
  - lib/vimamsa/actions.rb
191
191
  - lib/vimamsa/buffer.rb
192
192
  - lib/vimamsa/buffer_list.rb
193
+ - lib/vimamsa/buffer_manager.rb
194
+ - lib/vimamsa/conf.rb
193
195
  - lib/vimamsa/constants.rb
194
196
  - lib/vimamsa/debug.rb
195
- - lib/vimamsa/default_key_bindings.rb
196
197
  - lib/vimamsa/easy_jump.rb
197
198
  - lib/vimamsa/editor.rb
198
199
  - lib/vimamsa/encrypt.rb
199
200
  - lib/vimamsa/file_finder.rb
200
201
  - lib/vimamsa/file_history.rb
201
202
  - lib/vimamsa/file_manager.rb
203
+ - lib/vimamsa/gui.rb
204
+ - lib/vimamsa/gui_menu.rb
205
+ - lib/vimamsa/gui_select_window.rb
206
+ - lib/vimamsa/gui_sourceview.rb
202
207
  - lib/vimamsa/hook.rb
203
208
  - lib/vimamsa/hyper_plain_text.rb
209
+ - lib/vimamsa/key_actions.rb
204
210
  - lib/vimamsa/key_binding_tree.rb
211
+ - lib/vimamsa/key_bindings_vimlike.rb
205
212
  - lib/vimamsa/macro.rb
206
213
  - lib/vimamsa/main.rb
207
214
  - lib/vimamsa/rbvma.rb