Skip to main content

plugins.projectsearch

local projectsearch = require "plugins.projectsearch"

ResultsView

(field) ResultsView: plugins.projectsearch.resultsview

plugins.projectsearch.resultsview

apply_button

(field) apply_button: unknown

brightness

(field) brightness: integer

context

(field) context: string

defer_draw

(field) defer_draw: boolean

end_time

(field) end_time: unknown

insensitive

(field) insensitive: any

path

(field) path: any

query

(field) query: any

replaced

(field) replaced: boolean

replacement

(field) replacement: any

replacing

(field) replacing: boolean

results_list

(field) results_list: widget.searchreplacelist

scrollable

(field) scrollable: boolean

search_type

(field) search_type: any

searching

(field) searching: boolean

the search was completed


start_time

(field) start_time: unknown

total_files

(field) total_files: number

total_files_processed

(field) total_files_processed: integer

whole_word

(field) whole_word: any

begin_replace

(method) plugins.projectsearch.resultsview:begin_replace()

Starts the replacement procedure and worker threads using previously matched results.


(method) plugins.projectsearch.resultsview:begin_search(path?: string, text: string, search_type: "plain"|"regex", insensitive?: boolean, whole_word?: boolean)

Start the search procedure and worker threads.

search_type:
| "plain"
| "regex"

draw

(method) plugins.projectsearch.resultsview:draw()
-> boolean

get_name

(method) plugins.projectsearch.resultsview:get_name()
-> string

Text displayed on the application title and view tab.


new

(method) plugins.projectsearch.resultsview:new(path: any, text: any, type: any, insensitive: any, whole_word: any, replacement: any)

Constructor


open_selected_result

(method) plugins.projectsearch.resultsview:open_selected_result()
-> boolean|nil

Opens a DocView of the user selected match.


refresh

(method) plugins.projectsearch.resultsview:refresh()

Re-perform the search procedure using previous search options.


update

(method) plugins.projectsearch.resultsview:update()
-> boolean

search_plain

function plugins.projectsearch.search_plain(text: string, path?: string, insensitive?: boolean, whole_word?: boolean, replacement?: string)
-> (plugins.projectsearch.resultsview)?

Start a plain text search.


search_regex

function plugins.projectsearch.search_regex(text: string, path?: string, insensitive?: boolean, whole_word?: boolean, replacement?: string)
-> (plugins.projectsearch.resultsview)?

Start a regex search.