Module: Redcar::DocumentSearch
- Defined in:
- plugins/document_search/lib/document_search.rb,
plugins/document_search/lib/document_search/commands.rb,
plugins/document_search/lib/document_search/find_speedbar.rb,
plugins/document_search/lib/document_search/query_options.rb,
plugins/document_search/lib/document_search/incremental_search_speedbar.rb
Defined Under Namespace
Modules: FindCommandMixin
Classes: DoFindNextCommand, DoFindPreviousCommand, DoReplaceAllCommand, DoReplaceAllInSelectionCommand, DoReplaceAndFindCommand, DoUseSelectionForFindCommand, DoUseSelectionForReplaceCommand, FindCommandBase, FindNextCommand, FindNextRegex, FindPreviousCommand, FindSpeedbar, IncrementalSearchSpeedbar, OpenFindSpeedbarCommand, OpenIncrementalSearchSpeedbarCommand, QueryOptions, ReplaceAllCommand, ReplaceAndFindCommand, ReplaceCommandBase
Class Method Summary
(collapse)
Class Method Details
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
|
# File 'plugins/document_search/lib/document_search.rb', line 31
def self.keymaps
osx = Redcar::Keymap.build("main", :osx) do
link "Ctrl+S", DocumentSearch::OpenIncrementalSearchSpeedbarCommand
link "Cmd+F", DocumentSearch::OpenFindSpeedbarCommand
link "Cmd+G", DocumentSearch::DoFindNextCommand
link "Cmd+Shift+G", DocumentSearch::DoFindPreviousCommand
link "Cmd+Ctrl+F", DocumentSearch::DoReplaceAllCommand
link "Cmd+Ctrl+Shift+F", DocumentSearch::DoReplaceAllInSelectionCommand
link "Cmd+Alt+F", DocumentSearch::DoReplaceAndFindCommand
link "Cmd+E", DocumentSearch::DoUseSelectionForFindCommand
link "Cmd+Shift+E", DocumentSearch::DoUseSelectionForReplaceCommand
end
linwin = Redcar::Keymap.build("main", [:linux, :windows]) do
link "Alt+S", DocumentSearch::OpenIncrementalSearchSpeedbarCommand
link "Ctrl+F", DocumentSearch::OpenFindSpeedbarCommand
link "Ctrl+G", DocumentSearch::DoFindNextCommand
link "Ctrl+Shift+G", DocumentSearch::DoFindPreviousCommand
link "Ctrl+Alt+F", DocumentSearch::DoReplaceAndFindCommand
link "Ctrl+E", DocumentSearch::DoUseSelectionForFindCommand
link "Alt+Shift+E", DocumentSearch::DoUseSelectionForReplaceCommand
end
[linwin, osx]
end
|
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
|
# File 'plugins/document_search/lib/document_search.rb', line 9
def self.
Redcar::Menu::Builder.build do
"Edit" do
"Find", :priority => 50 do
item "Incremental Search", OpenIncrementalSearchSpeedbarCommand
item "Find...", OpenFindSpeedbarCommand
separator
item "Find Next", DoFindNextCommand
item "Find Previous", DoFindPreviousCommand
separator
item "Replace All", DoReplaceAllCommand
item "Replace All in Selection", DoReplaceAllInSelectionCommand
item "Replace and Find", DoReplaceAndFindCommand
separator
item "Use Selection for Find", DoUseSelectionForFindCommand
item "Use Selection for Replace", DoUseSelectionForReplaceCommand
end
separator
end
end
end
|
57
58
59
60
61
62
|
# File 'plugins/document_search/lib/document_search.rb', line 57
def self.toolbars
Redcar::ToolBar::Builder.build do
item "Find", :command => DocumentSearch::OpenIncrementalSearchSpeedbarCommand, :icon => File.join(Redcar.icons_directory, "magnifier.png"), :barname => :edit
item "Find Next", :command => DocumentSearch::DoFindNextCommand, :icon => File.join(Redcar.icons_directory, "magnifier--arrow.png"), :barname => :edit
end
end
|