Class: Redcar::DocumentSearch::FindCommandBase

Inherits:
Redcar::DocumentCommand show all
Includes:
FindCommandMixin
Defined in:
plugins/document_search/lib/document_search/commands.rb

Overview

Base class for find commands.

Direct Known Subclasses

FindNextCommand, FindPreviousCommand

Constant Summary

Constants included from Observable

Observable::ASPECTS

Instance Attribute Summary (collapse)

Attributes inherited from Command

#error

Instance Method Summary (collapse)

Methods included from FindCommandMixin

#is_valid, #make_literal_query, #make_regex_query, #replace_selection_if_match, #select_next_match, #select_previous_match, #select_range, #select_range_bytes, #selection_byte_offsets

Methods inherited from Redcar::DocumentCommand

#_finished, #run_in_focussed_tab_edit_view

Methods inherited from Command

active_changed, #environment, inherited, #inspect, norecord, record?, #run

Methods included from Sensitive

#active?, #sensitivities, #sensitivity_names, #sensitize

Methods included from Observable

#add_listener, #notify_listeners, #remove_listener

Constructor Details

- (FindCommandBase) initialize(q, opt)

description here



151
152
153
154
# File 'plugins/document_search/lib/document_search/commands.rb', line 151

def initialize(q, opt)
  @options = opt
  @query = opt.is_regex ? make_regex_query(q, opt) : make_literal_query(q, opt)
end

Instance Attribute Details

- (Object) always_start_within_selection (readonly)

Returns the value of attribute always_start_within_selection



148
149
150
# File 'plugins/document_search/lib/document_search/commands.rb', line 148

def always_start_within_selection
  @always_start_within_selection
end

- (Object) options (readonly)

Returns the value of attribute options



148
149
150
# File 'plugins/document_search/lib/document_search/commands.rb', line 148

def options
  @options
end

- (Object) query (readonly)

Returns the value of attribute query



148
149
150
# File 'plugins/document_search/lib/document_search/commands.rb', line 148

def query
  @query
end