module

Adamantine::ProjectSearch

Constants

MAX_DEPTH = 16
MAX_FILE_BYTES = 1048576
MAX_FILES = 1500
MAX_MATCHES = 40
MAX_MENU = 12
READ_CHUNK_BYTES = 16 * 1024
SKIP_DIR_NAMES = Set {".git", ".hg", ".svn", ".crystal-cache", ".agents", ".crystal_ball", "node_modules", "target", "vendor", ".build"}
SNIPPET_MAX = 72

Class methods

search(root : Path, needle : String, *, ignore_case : Bool = false) : Result
Source
search_text(text : String, needle : String, *, ignore_case : Bool = false, path : Path = Path.new(""), max_matches : Int32 = 200) : Array(Match)
Source

Nested types