Skip to main content

Module file_ops

Module file_ops 

Source

Structs§

DirectoryEntry
EnclosingSymbol
FileMatch
FileReadResult
PatternMatch
SmartPatternMatch
Pattern match enriched with enclosing symbol context (Smart Excerpt).
TextReference

Functions§

create_text_file
delete_lines
extract_word_at_position
Extract the word (identifier) at a given line/column position in a file.
find_files
find_referencing_symbols_via_text
Find references to a symbol via text-based search (no LSP required). Optionally exclude the declaration file and filter out shadowing files.
insert_after_symbol
insert_at_line
insert_before_symbol
list_dir
read_file
replace_content
replace_lines
replace_symbol_body
search_for_pattern
search_for_pattern_smart
Smart search: pattern search enriched with enclosing symbol context. For each match, finds the nearest enclosing function/class/method via tree-sitter.