SYMBOL INDEX (549 symbols across 73 files) FILE: crates/code2prompt-core/src/builtin_templates.rs type BuiltinTemplate (line 11) | pub struct BuiltinTemplate { type BuiltinTemplates (line 18) | pub struct BuiltinTemplates; method get_all (line 24) | pub fn get_all() -> &'static HashMap<&'static str, BuiltinTemplate> { method get_template (line 152) | pub fn get_template(key: &str) -> Option { method get_template_keys (line 157) | pub fn get_template_keys() -> Vec<&'static str> { method has_template (line 162) | pub fn has_template(key: &str) -> bool { FILE: crates/code2prompt-core/src/configuration.rs type Code2PromptConfig (line 18) | pub struct Code2PromptConfig { method builder (line 94) | pub fn builder() -> Code2PromptConfigBuilder { type OutputDestination (line 102) | pub enum OutputDestination { type TomlConfig (line 112) | pub struct TomlConfig { method from_toml_str (line 161) | pub fn from_toml_str(content: &str) -> Result { method to_string (line 166) | pub fn to_string(&self) -> Result { method to_code2prompt_config (line 171) | pub fn to_code2prompt_config(&self) -> Code2PromptConfig { function export_config_to_toml (line 225) | pub fn export_config_to_toml(config: &Code2PromptConfig) -> Result Result { FILE: crates/code2prompt-core/src/file_processor/default.rs type DefaultTextProcessor (line 17) | pub struct DefaultTextProcessor; method process (line 20) | fn process(&self, content: &[u8], _path: &Path) -> Result { FILE: crates/code2prompt-core/src/file_processor/ipynb.rs type JupyterNotebookProcessor (line 16) | pub struct JupyterNotebookProcessor; method process_with_fallback (line 109) | pub fn process_with_fallback(&self, content: &[u8], path: &Path) -> Re... method process (line 19) | fn process(&self, content: &[u8], _path: &Path) -> Result { FILE: crates/code2prompt-core/src/file_processor/jsonl.rs type JsonLinesProcessor (line 15) | pub struct JsonLinesProcessor; method process_with_fallback (line 64) | pub fn process_with_fallback(&self, content: &[u8], path: &Path) -> Re... method process (line 18) | fn process(&self, content: &[u8], _path: &Path) -> Result { FILE: crates/code2prompt-core/src/file_processor/mod.rs type FileProcessor (line 27) | pub trait FileProcessor: Send + Sync { method process (line 38) | fn process(&self, content: &[u8], path: &Path) -> Result; function get_processor_for_extension (line 57) | pub fn get_processor_for_extension(extension: &str) -> Box Result { FILE: crates/code2prompt-core/src/filter.rs type FilterEngine (line 14) | pub struct FilterEngine { method new (line 21) | pub fn new(include_patterns: &[String], exclude_patterns: &[String]) -... method matches_patterns (line 29) | pub fn matches_patterns(&self, path: &Path) -> bool { method include_globset (line 34) | pub fn include_globset(&self) -> &GlobSet { method exclude_globset (line 39) | pub fn exclude_globset(&self) -> &GlobSet { method has_include_patterns (line 44) | pub fn has_include_patterns(&self) -> bool { method is_excluded (line 49) | pub fn is_excluded(&self, path: &Path) -> bool { function build_globset (line 67) | pub fn build_globset(patterns: &[String]) -> GlobSet { function should_include_file (line 131) | pub fn should_include_file( FILE: crates/code2prompt-core/src/git.rs function get_git_diff (line 26) | pub fn get_git_diff(repo_path: &Path) -> Result { function get_git_diff_between_branches (line 92) | pub fn get_git_diff_between_branches( function get_git_log (line 142) | pub fn get_git_log(repo_path: &Path, branch1: &str, branch2: &str) -> Re... function branch_exists (line 195) | fn branch_exists(repo: &Repository, branch_name: &str) -> bool { FILE: crates/code2prompt-core/src/path.rs type EntryMetadata (line 20) | pub struct EntryMetadata { method from (line 26) | fn from(meta: &std::fs::Metadata) -> Self { type FileEntry (line 36) | pub struct FileEntry { type FileToProcess (line 48) | struct FileToProcess { function traverse_directory (line 71) | pub fn traverse_directory( function discover_files (line 91) | fn discover_files( function process_files_parallel (line 168) | fn process_files_parallel( function read_file_with_binary_check (line 185) | fn read_file_with_binary_check(path: &Path, file_size: u64) -> std::io::... function process_single_file (line 213) | fn process_single_file(file_info: &FileToProcess, config: &Code2PromptCo... function assemble_results (line 297) | fn assemble_results( function display_name (line 318) | pub fn display_name>(p: P) -> String { function wrap_code_block (line 346) | pub fn wrap_code_block( FILE: crates/code2prompt-core/src/selection.rs type SelectionAction (line 14) | pub struct SelectionAction { type ActionType (line 23) | pub enum ActionType { type SelectionEngine (line 31) | pub struct SelectionEngine { method new (line 47) | pub fn new( method is_selected (line 62) | pub fn is_selected(&mut self, path: &Path) -> bool { method compute_selection (line 74) | fn compute_selection(&self, path: &Path) -> bool { method find_applicable_user_action (line 95) | fn find_applicable_user_action(&self, path: &Path) -> Option<&Selectio... method action_applies_to_path (line 120) | fn action_applies_to_path(&self, action: &SelectionAction, path: &Path... method calculate_specificity (line 135) | fn calculate_specificity(&self, path: &Path) -> u32 { method include_file (line 140) | pub fn include_file(&mut self, path: PathBuf) { method exclude_file (line 145) | pub fn exclude_file(&mut self, path: PathBuf) { method toggle_file (line 150) | pub fn toggle_file(&mut self, path: PathBuf) { method add_user_action (line 161) | fn add_user_action(&mut self, path: PathBuf, action: ActionType) { method get_selected_files (line 175) | pub fn get_selected_files(&mut self, root_path: &Path) -> Result usize { method has_user_actions (line 247) | pub fn has_user_actions(&self) -> bool { method filter_engine (line 252) | pub fn filter_engine(&self) -> &FilterEngine { method set_deselected_by_default (line 257) | pub fn set_deselected_by_default(&mut self, value: bool) { method fmt (line 264) | fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { function test_specificity_calculation (line 279) | fn test_specificity_calculation() { function test_precedence_rules (line 291) | fn test_precedence_rules() { function test_recent_wins_over_old (line 306) | fn test_recent_wins_over_old() { function test_deselected_by_default (line 319) | fn test_deselected_by_default() { FILE: crates/code2prompt-core/src/session.rs type Code2PromptSession (line 19) | pub struct Code2PromptSession { method new (line 75) | pub fn new(config: Code2PromptConfig) -> Self { method add_include_pattern (line 90) | pub fn add_include_pattern(&mut self, pattern: String) -> &mut Self { method add_exclude_pattern (line 101) | pub fn add_exclude_pattern(&mut self, pattern: String) -> &mut Self { method select_file (line 113) | pub fn select_file(&mut self, path: PathBuf) -> &mut Self { method deselect_file (line 127) | pub fn deselect_file(&mut self, path: PathBuf) -> &mut Self { method toggle_file_selection (line 141) | pub fn toggle_file_selection(&mut self, path: PathBuf) -> &mut Self { method is_file_selected (line 155) | pub fn is_file_selected(&mut self, path: &std::path::Path) -> bool { method get_selected_files (line 166) | pub fn get_selected_files(&mut self) -> Result> { method clear_user_actions (line 173) | pub fn clear_user_actions(&mut self) -> &mut Self { method has_user_actions (line 179) | pub fn has_user_actions(&self) -> bool { method set_deselected (line 184) | pub fn set_deselected(&mut self, value: bool) -> &mut Self { method load_codebase (line 191) | pub fn load_codebase(&mut self) -> Result<()> { method load_git_diff (line 204) | pub fn load_git_diff(&mut self) -> Result<()> { method load_git_diff_between_branches (line 211) | pub fn load_git_diff_between_branches(&mut self) -> Result<()> { method load_git_log_between_branches (line 220) | pub fn load_git_log_between_branches(&mut self) -> Result<()> { method build_template_data (line 229) | pub fn build_template_data(&self) -> TemplateContext<'_> { method render_prompt (line 243) | pub fn render_prompt(&self, template_context: &TemplateContext) -> Res... method calculate_token_count_from_cache (line 319) | fn calculate_token_count_from_cache(&self, tokenizer_type: &TokenizerT... method calculate_structural_tokens (line 347) | fn calculate_structural_tokens(&self, tokenizer_type: &TokenizerType) ... method fallback_structural_estimate (line 434) | fn fallback_structural_estimate(&self, tokenizer_type: &TokenizerType)... method generate_prompt (line 468) | pub fn generate_prompt(&mut self) -> Result { type SessionData (line 28) | pub struct SessionData { type TemplateContext (line 41) | pub struct TemplateContext<'a> { type RenderedPrompt (line 65) | pub struct RenderedPrompt { FILE: crates/code2prompt-core/src/sort.rs type FileSortMethod (line 11) | pub enum FileSortMethod { method fmt (line 23) | fn fmt(&self, f: &mut fmt::Formatter<'_>) -> fmt::Result { function sort_files (line 41) | pub fn sort_files(files: &mut [FileEntry], sort_method: Option( function sort_tree_impl (line 85) | fn sort_tree_impl(tree: &mut Tree, ascend... FILE: crates/code2prompt-core/src/template.rs function handlebars_setup (line 19) | pub fn handlebars_setup(template_str: &str, template_name: &str) -> Resu... function extract_undefined_variables (line 39) | pub fn extract_undefined_variables(template: &str) -> Vec { function render_template (line 68) | pub fn render_template( function write_to_file (line 89) | pub fn write_to_file(output_path: &str, rendered: &str) -> Result<()> { type OutputFormat (line 99) | pub enum OutputFormat { method fmt (line 107) | fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { FILE: crates/code2prompt-core/src/tokenizer.rs type TokenFormat (line 10) | pub enum TokenFormat { method fmt (line 17) | fn fmt(&self, f: &mut fmt::Formatter<'_>) -> fmt::Result { type TokenizerType (line 27) | pub enum TokenizerType { method fmt (line 42) | fn fmt(&self, f: &mut fmt::Formatter<'_>) -> fmt::Result { method description (line 55) | pub fn description(&self) -> &'static str { function count_tokens (line 85) | pub fn count_tokens(rendered: &str, tokenizer_type: &TokenizerType) -> u... FILE: crates/code2prompt-core/src/util.rs function strip_utf8_bom (line 8) | pub fn strip_utf8_bom(data: &[u8]) -> &[u8] { FILE: crates/code2prompt-core/tests/binary_detection_test.rs function create_test_directory_with_binary (line 9) | fn create_test_directory_with_binary() -> TempDir { function test_binary_files_are_skipped (line 57) | fn test_binary_files_are_skipped() { function test_empty_file_handling (line 86) | fn test_empty_file_handling() { function test_small_binary_file (line 105) | fn test_small_binary_file() { function test_text_file_with_unicode (line 125) | fn test_text_file_with_unicode() { function test_mixed_directory_structure (line 150) | fn test_mixed_directory_structure() { function test_large_text_file (line 184) | fn test_large_text_file() { function test_pdf_detection (line 208) | fn test_pdf_detection() { function test_various_text_formats (line 228) | fn test_various_text_formats() { FILE: crates/code2prompt-core/tests/file_processor_test.rs function test_csv_with_headers_and_data (line 17) | fn test_csv_with_headers_and_data() { function test_csv_with_quoted_fields (line 30) | fn test_csv_with_quoted_fields() { function test_csv_empty (line 43) | fn test_csv_empty() { function test_csv_malformed_fallback (line 55) | fn test_csv_malformed_fallback() { function test_tsv_with_headers_and_data (line 75) | fn test_tsv_with_headers_and_data() { function test_tsv_with_spaces (line 89) | fn test_tsv_with_spaces() { function test_tsv_empty (line 102) | fn test_tsv_empty() { function test_jsonl_with_multiple_lines (line 122) | fn test_jsonl_with_multiple_lines() { function test_jsonl_single_line (line 140) | fn test_jsonl_single_line() { function test_jsonl_with_nested_objects (line 154) | fn test_jsonl_with_nested_objects() { function test_jsonl_empty_file (line 166) | fn test_jsonl_empty_file() { function test_jsonl_invalid_json (line 175) | fn test_jsonl_invalid_json() { function test_jsonl_with_fallback (line 184) | fn test_jsonl_with_fallback() { function test_ipynb_with_code_cells (line 204) | fn test_ipynb_with_code_cells() { function test_ipynb_with_many_code_cells (line 236) | fn test_ipynb_with_many_code_cells() { function test_ipynb_no_code_cells (line 261) | fn test_ipynb_no_code_cells() { function test_ipynb_invalid_json (line 279) | fn test_ipynb_invalid_json() { function test_ipynb_with_fallback (line 288) | fn test_ipynb_with_fallback() { function test_valid_utf8 (line 309) | fn test_valid_utf8() { function test_invalid_utf8 (line 319) | fn test_invalid_utf8() { function test_gb2312_encoding_detection (line 330) | fn test_gb2312_encoding_detection() { FILE: crates/code2prompt-core/tests/filter_test.rs function test_dir (line 10) | fn test_dir() -> TempDir { function base_path (line 43) | fn base_path(test_dir: &TempDir) -> &Path { function test_files_inclusion (line 53) | fn test_files_inclusion( function test_no_include_no_exclude_path (line 86) | fn test_no_include_no_exclude_path() { function test_no_include_no_exclude_empty (line 98) | fn test_no_include_no_exclude_empty(test_dir: TempDir) { function test_no_include_exclude_path (line 130) | fn test_no_include_exclude_path() { function test_no_include_exclude_by_filename (line 142) | fn test_no_include_exclude_by_filename(test_dir: TempDir) { function test_no_include_exclude_path_patterns (line 157) | fn test_no_include_exclude_path_patterns(test_dir: TempDir) { function test_no_include_exclude_folders (line 191) | fn test_no_include_exclude_folders(test_dir: TempDir) { function test_no_include_exclude_files (line 226) | fn test_no_include_exclude_files(test_dir: TempDir) { function test_no_include_exclude_patterns (line 258) | fn test_no_include_exclude_patterns(test_dir: TempDir) { function test_include_no_exclude_patterns (line 294) | fn test_include_no_exclude_patterns(test_dir: TempDir) { function test_include_no_exclude_files (line 328) | fn test_include_no_exclude_files(test_dir: TempDir) { function test_include_no_exclude_folders (line 360) | fn test_include_no_exclude_folders(test_dir: TempDir) { function test_include_no_exclude_by_path_pattern (line 395) | fn test_include_no_exclude_by_path_pattern(test_dir: TempDir) { function test_include_no_exclude_by_filename (line 430) | fn test_include_no_exclude_by_filename(test_dir: TempDir) { function test_include_exclude_conflict_file (line 451) | fn test_include_exclude_conflict_file(test_dir: TempDir) { function test_include_exclude_exclude_takes_precedence (line 483) | fn test_include_exclude_exclude_takes_precedence(test_dir: TempDir) { function test_include_exclude_conflict_folder (line 508) | fn test_include_exclude_conflict_folder(test_dir: TempDir) { function test_include_exclude_conflict_extension (line 542) | fn test_include_exclude_conflict_extension(test_dir: TempDir) { function test_brace_expansion_first_item (line 577) | fn test_brace_expansion_first_item(test_dir: TempDir) { function test_brace_expansion_multiple_patterns (line 606) | fn test_brace_expansion_multiple_patterns(test_dir: TempDir) { FILE: crates/code2prompt-core/tests/git_test.rs function test_get_git_diff (line 11) | fn test_get_git_diff() { function test_get_git_diff_between_branches (line 66) | fn test_get_git_diff_between_branches() { function test_get_git_log (line 155) | fn test_get_git_log() { function test_git_diff_with_commit_hashes_and_tags (line 269) | fn test_git_diff_with_commit_hashes_and_tags() { FILE: crates/code2prompt-core/tests/path_test.rs function git_repo_with_files (line 22) | fn git_repo_with_files() -> TempDir { function simple_dir_structure (line 46) | fn simple_dir_structure() -> TempDir { function base_config (line 67) | fn base_config(path: &Path) -> Code2PromptConfig { function file_exists (line 77) | fn file_exists(files: &[FileEntry], path: &str) -> bool { function get_metadata (line 82) | fn get_metadata(files: &[FileEntry], path: &str) -> Option { function test_basic_traversal (line 98) | fn test_basic_traversal(simple_dir_structure: TempDir) { function test_respects_gitignore (line 117) | fn test_respects_gitignore(git_repo_with_files: TempDir) { function test_ignores_gitignore_when_disabled (line 135) | fn test_ignores_gitignore_when_disabled(git_repo_with_files: TempDir) { function test_excludes_hidden_files_by_default (line 151) | fn test_excludes_hidden_files_by_default(simple_dir_structure: TempDir) { function test_includes_hidden_files_when_enabled (line 164) | fn test_includes_hidden_files_when_enabled(simple_dir_structure: TempDir) { function test_file_content_processing (line 183) | fn test_file_content_processing(simple_dir_structure: TempDir) { function test_file_metadata (line 205) | fn test_file_metadata(simple_dir_structure: TempDir) { function test_relative_paths_by_default (line 221) | fn test_relative_paths_by_default(simple_dir_structure: TempDir) { function test_absolute_paths_when_enabled (line 230) | fn test_absolute_paths_when_enabled(simple_dir_structure: TempDir) { function test_symlink_following_when_enabled (line 274) | fn test_symlink_following_when_enabled(simple_dir_structure: TempDir) { FILE: crates/code2prompt-core/tests/session_integration_test.rs function create_test_project (line 12) | fn create_test_project() -> TempDir { function test_session_select_deselect_file (line 31) | fn test_session_select_deselect_file() { function test_session_multiple_files (line 58) | fn test_session_multiple_files() { function test_session_multiple_file_selection (line 89) | fn test_session_multiple_file_selection() { function test_session_clear_user_actions (line 110) | fn test_session_clear_user_actions() { function test_session_add_patterns (line 134) | fn test_session_add_patterns() { function test_session_relative_path_handling (line 158) | fn test_session_relative_path_handling() { FILE: crates/code2prompt-core/tests/sort_test.rs function test_sort_files_name_asc (line 10) | fn test_sort_files_name_asc() { function test_sort_files_name_desc (line 58) | fn test_sort_files_name_desc() { function test_sort_files_date_asc (line 106) | fn test_sort_files_date_asc() { function test_sort_files_date_desc (line 154) | fn test_sort_files_date_desc() { function test_sort_files_none (line 202) | fn test_sort_files_none() { function test_sort_tree_name_asc (line 228) | fn test_sort_tree_name_asc() { function test_sort_tree_name_desc (line 245) | fn test_sort_tree_name_desc() { function test_sort_tree_date_asc_falls_back_to_name (line 260) | fn test_sort_tree_date_asc_falls_back_to_name() { function test_sort_tree_none (line 279) | fn test_sort_tree_none() { FILE: crates/code2prompt-core/tests/template_test.rs function test_handlebars_setup (line 9) | fn test_handlebars_setup() { function test_extract_undefined_variables (line 33) | fn test_extract_undefined_variables() { function test_render_template (line 40) | fn test_render_template() { FILE: crates/code2prompt-core/tests/util_test.rs function test_strip_utf8_bom_when_present (line 8) | fn test_strip_utf8_bom_when_present() { function test_strip_utf8_bom_when_not_present (line 19) | fn test_strip_utf8_bom_when_not_present() { function test_strip_utf8_bom_empty_input (line 29) | fn test_strip_utf8_bom_empty_input() { function test_strip_utf8_bom_only_bom (line 39) | fn test_strip_utf8_bom_only_bom() { FILE: crates/code2prompt-python/python-sdk/code2prompt_rs/code2prompt.py class RenderedPrompt (line 5) | class RenderedPrompt: method __init__ (line 6) | def __init__(self, prompt, token_count, directory, model_info): class Code2Prompt (line 12) | class Code2Prompt: method __init__ (line 13) | def __init__(self, path, include_patterns=None, exclude_patterns=None, method session (line 46) | def session(self) -> rust_sdk.PyCode2PromptSession: method generate (line 69) | def generate(self, template=None, encoding=None) -> RenderedPrompt: method token_count (line 106) | def token_count(self, encoding=None): method info (line 113) | def info(self): FILE: crates/code2prompt-python/python-sdk/examples/basic_usage.py function main (line 5) | def main(): FILE: crates/code2prompt-python/src/python.rs type PyCode2PromptSession (line 13) | struct PyCode2PromptSession { method new (line 20) | fn new(path: &str) -> PyResult { method include (line 37) | fn include(&mut self, patterns: Vec) -> PyResult> { method exclude (line 52) | fn exclude(&mut self, patterns: Vec) -> PyResult> { method with_line_numbers (line 67) | fn with_line_numbers(&mut self, value: bool) -> PyResult> { method with_absolute_paths (line 82) | fn with_absolute_paths(&mut self, value: bool) -> PyResult> { method with_full_directory_tree (line 97) | fn with_full_directory_tree(&mut self, value: bool) -> PyResult PyResult> { method follow_symlinks (line 127) | fn follow_symlinks(&mut self, value: bool) -> PyResult> { method include_hidden (line 142) | fn include_hidden(&mut self, value: bool) -> PyResult> { method no_ignore (line 157) | fn no_ignore(&mut self, value: bool) -> PyResult> { method sort_by (line 172) | fn sort_by(&mut self, method: &str) -> PyResult> { method output_format (line 198) | fn output_format(&mut self, format: &str) -> PyResult> { method with_token_encoding (line 224) | fn with_token_encoding(&mut self, encoding: &str) -> PyResult> { method with_token_format (line 251) | fn with_token_format(&mut self, format: &str) -> PyResult> { method with_template (line 276) | fn with_template(&mut self, template: String, name: Option) ->... method with_variable (line 297) | fn with_variable(&mut self, key: String, value: String) -> PyResult PyResult { method info (line 322) | fn info(&self) -> PyResult> { method token_count (line 341) | fn token_count(&self) -> PyResult { function code2prompt_rs (line 355) | fn code2prompt_rs(_py: Python<'_>, m: &Bound<'_, PyModule>) -> PyResult<... FILE: crates/code2prompt-python/tests/conftest.py function test_hierarchy (line 9) | def test_hierarchy(): function test_dir (line 55) | def test_dir(test_hierarchy): FILE: crates/code2prompt-python/tests/test_config.py function test_basic_initialization (line 6) | def test_basic_initialization(test_dir): function test_initialization_with_options (line 14) | def test_initialization_with_options(test_dir): function test_session_creation (line 37) | def test_session_creation(test_dir): function test_configuration_chain (line 48) | def test_configuration_chain(test_dir): FILE: crates/code2prompt-python/tests/test_generation.py function test_generate_basic (line 5) | def test_generate_basic(test_dir): function test_generate_with_include_patterns (line 16) | def test_generate_with_include_patterns(test_dir): function test_generate_with_exclude_patterns (line 32) | def test_generate_with_exclude_patterns(test_dir): function test_generate_with_line_numbers (line 47) | def test_generate_with_line_numbers(test_dir): function test_generate_with_relative_and_absolute_paths (line 59) | def test_generate_with_relative_and_absolute_paths(test_dir): function test_generate_with_custom_template (line 87) | def test_generate_with_custom_template(test_dir): function test_token_count (line 107) | def test_token_count(test_dir): function test_multiple_encoding_options (line 120) | def test_multiple_encoding_options(test_dir): FILE: crates/code2prompt-python/tests/test_special_feature.py function test_hidden_files (line 9) | def test_hidden_files(test_dir): function test_directory_tree (line 28) | def test_directory_tree(test_dir): function test_no_code_blocks (line 40) | def test_no_code_blocks(test_dir): function test_sort_files (line 61) | def test_sort_files(test_dir): FILE: crates/code2prompt/src/args.rs type Cli (line 23) | pub struct Cli { function parse_serde (line 154) | fn parse_serde(s: &str) -> Result { FILE: crates/code2prompt/src/clipboard.rs function copy_text_to_clipboard (line 16) | pub fn copy_text_to_clipboard(text: &str) -> Result<()> { function serve_clipboard_daemon (line 39) | pub fn serve_clipboard_daemon() -> Result<()> { function spawn_clipboard_daemon (line 78) | pub fn spawn_clipboard_daemon(content: &str) -> Result<()> { function copy_to_clipboard (line 112) | pub fn copy_to_clipboard(text: &str) -> Result<()> { FILE: crates/code2prompt/src/config.rs function build_session (line 25) | pub fn build_session( function parse_branch_argument (line 199) | pub fn parse_branch_argument(branch_arg: &Option>) -> Option... function parse_template (line 216) | pub fn parse_template(template_arg: &Option) -> Result<(String,... function handle_undefined_variables (line 240) | pub fn handle_undefined_variables( function expand_comma_separated_patterns (line 273) | fn expand_comma_separated_patterns(patterns: &[String]) -> Vec { FILE: crates/code2prompt/src/config_loader.rs type ConfigSource (line 14) | pub struct ConfigSource { function load_config (line 19) | pub fn load_config(quiet: bool) -> Result { function load_config_from_file (line 88) | fn load_config_from_file(path: &Path) -> Result { function get_default_output_destination (line 97) | pub fn get_default_output_destination(config_source: &ConfigSource) -> O... FILE: crates/code2prompt/src/main.rs function main (line 27) | async fn main() -> Result<()> { function run_cli_mode_with_args (line 59) | async fn run_cli_mode_with_args(args: Cli) -> Result<()> { function setup_spinner (line 293) | fn setup_spinner(message: &str) -> ProgressBar { function output_prompt (line 321) | fn output_prompt( FILE: crates/code2prompt/src/model/commands.rs type Cmd (line 13) | pub enum Cmd { FILE: crates/code2prompt/src/model/mod.rs type Tab (line 25) | pub enum Tab { type FileTreeInputMode (line 35) | pub enum FileTreeInputMode { type DisplayFileNode (line 42) | pub struct DisplayFileNode { method new (line 53) | pub fn new(path: std::path::PathBuf, level: usize) -> Self { method find_node_mut (line 73) | pub fn find_node_mut(&mut self, target_path: &std::path::Path) -> Opti... method load_children (line 88) | pub fn load_children( type Message (line 135) | pub enum Message { type Model (line 185) | pub struct Model { method new (line 225) | pub fn new(session: Code2PromptSession) -> Self { method get_settings_groups (line 244) | pub fn get_settings_groups(&self) -> Vec { method update (line 248) | pub fn update(&self, message: Message) -> (Self, Cmd) { method default (line 202) | fn default() -> Self { FILE: crates/code2prompt/src/model/prompt_output.rs type PromptOutputState (line 8) | pub struct PromptOutputState { type AnalysisResults (line 19) | pub struct AnalysisResults { FILE: crates/code2prompt/src/model/settings.rs type SettingsState (line 12) | pub struct SettingsState { method get_settings_items (line 67) | pub fn get_settings_items(&self, session: &Code2PromptSession) -> Vec<... method update_setting_by_key (line 75) | pub fn update_setting_by_key( type SettingsGroup (line 18) | pub struct SettingsGroup { type SettingsItem (line 25) | pub struct SettingsItem { type SettingType (line 33) | pub enum SettingType { type SettingAction (line 42) | pub enum SettingAction { type SettingKey (line 49) | pub enum SettingKey { FILE: crates/code2prompt/src/model/statistics/mod.rs type StatisticsState (line 14) | pub struct StatisticsState { method count_selected_files (line 32) | pub fn count_selected_files( method count_total_files (line 39) | pub fn count_total_files(nodes: &[DisplayFileNode]) -> usize { method format_number (line 51) | pub fn format_number( method aggregate_by_extension (line 59) | pub fn aggregate_by_extension(&self) -> Vec<(String, usize, usize)> { method default (line 21) | fn default() -> Self { FILE: crates/code2prompt/src/model/statistics/types.rs type StatisticsView (line 8) | pub enum StatisticsView { method next (line 15) | pub fn next(&self) -> Self { method prev (line 23) | pub fn prev(&self) -> Self { method as_str (line 31) | pub fn as_str(&self) -> &'static str { FILE: crates/code2prompt/src/model/template/editor.rs type EditorState (line 12) | pub struct EditorState { method sync_content_from_textarea (line 69) | pub fn sync_content_from_textarea(&mut self) { method analyze_template_variables (line 75) | pub fn analyze_template_variables(&mut self) { method get_template_variables (line 90) | pub fn get_template_variables(&self) -> &[String] { method validate_template (line 95) | pub fn validate_template(&mut self) { method compile_template (line 123) | fn compile_template(&self) -> Result<(), String> { method get_content (line 136) | pub fn get_content(&self) -> &str { method clone (line 22) | fn clone(&self) -> Self { method default (line 41) | fn default() -> Self { FILE: crates/code2prompt/src/model/template/mod.rs type TemplateFocus (line 18) | pub enum TemplateFocus { type FocusMode (line 26) | pub enum FocusMode { type TemplateState (line 34) | pub struct TemplateState { method from_model (line 62) | pub fn from_model(model: &crate::model::Model) -> Self { method sync_variables_with_template (line 68) | pub fn sync_variables_with_template(&mut self) { method set_focus (line 74) | pub fn set_focus(&mut self, focus: TemplateFocus) { method get_focus (line 79) | pub fn get_focus(&self) -> TemplateFocus { method set_focus_mode (line 84) | pub fn set_focus_mode(&mut self, mode: FocusMode) { method get_focus_mode (line 89) | pub fn get_focus_mode(&self) -> FocusMode { method is_in_editing_mode (line 94) | pub fn is_in_editing_mode(&self) -> bool { method get_organized_variables (line 102) | pub fn get_organized_variables(&self) -> Vec { method get_template_content (line 108) | pub fn get_template_content(&self) -> &str { method get_status (line 113) | pub fn get_status(&self) -> &str { method load_selected_template (line 118) | pub fn load_selected_template(&mut self) -> Result { method get_selected_template (line 163) | fn get_selected_template(&self) -> Result<&picker::TemplateFile, Strin... method default (line 44) | fn default() -> Self { FILE: crates/code2prompt/src/model/template/picker.rs type TemplateFile (line 10) | pub struct TemplateFile { type ActiveList (line 17) | pub enum ActiveList { type PickerState (line 24) | pub struct PickerState { method load_all_templates (line 49) | pub fn load_all_templates(&mut self) { method load_default_templates (line 55) | fn load_default_templates(&mut self) { method load_custom_templates (line 74) | fn load_custom_templates(&mut self) { method move_cursor_up (line 90) | pub fn move_cursor_up(&mut self) { method move_cursor_down (line 107) | pub fn move_cursor_down(&mut self) { method refresh (line 120) | pub fn refresh(&mut self) { method get_global_cursor_position (line 133) | pub fn get_global_cursor_position(&self) -> usize { method get_global_template_index (line 162) | fn get_global_template_index(&self) -> usize { method get_total_selectable_items (line 170) | fn get_total_selectable_items(&self) -> usize { method set_cursor_from_global_position (line 175) | fn set_cursor_from_global_position(&mut self, global_pos: usize) { method default (line 33) | fn default() -> Self { FILE: crates/code2prompt/src/model/template/variable.rs type VariableCategory (line 10) | pub enum VariableCategory { type VariableInfo (line 18) | pub struct VariableInfo { type VariableState (line 27) | pub struct VariableState { method get_default_system_variables (line 53) | fn get_default_system_variables() -> HashMap { method update_missing_variables (line 112) | pub fn update_missing_variables(&mut self, template_variables: &[Strin... method get_organized_variables (line 125) | pub fn get_organized_variables(&self, template_variables: &[String]) -... method set_user_variable (line 166) | pub fn set_user_variable(&mut self, key: String, value: String) { method has_missing_variables (line 171) | pub fn has_missing_variables(&self) -> bool { method cancel_editing (line 176) | pub fn cancel_editing(&mut self) { method finish_editing (line 183) | pub fn finish_editing(&mut self) -> Option<(String, String)> { method add_char_to_input (line 196) | pub fn add_char_to_input(&mut self, c: char) { method remove_char_from_input (line 201) | pub fn remove_char_from_input(&mut self) { method get_input_content (line 206) | pub fn get_input_content(&self) -> &str { method is_editing (line 211) | pub fn is_editing(&self) -> bool { method get_editing_variable (line 216) | pub fn get_editing_variable(&self) -> Option<&String> { method move_to_first_missing_variable (line 221) | pub fn move_to_first_missing_variable(&mut self) { method default (line 38) | fn default() -> Self { FILE: crates/code2prompt/src/token_map.rs type TuiColor (line 17) | pub enum TuiColor { type TuiTokenMapLine (line 36) | pub struct TuiTokenMapLine { type EntryMetadata (line 46) | pub struct EntryMetadata { type TreeNode (line 51) | struct TreeNode { method with_path (line 59) | fn with_path(path: String) -> Self { type NodePriority (line 71) | struct NodePriority { method cmp (line 78) | fn cmp(&self, other: &Self) -> Ordering { method partial_cmp (line 88) | fn partial_cmp(&self, other: &Self) -> Option { function generate_token_map_with_limit (line 109) | pub fn generate_token_map_with_limit( function calculate_file_tokens (line 184) | fn calculate_file_tokens(node: &TreeNode) -> usize { function insert_path (line 192) | fn insert_path( type TokenMapEntry (line 236) | pub struct TokenMapEntry { function select_nodes_to_display (line 247) | fn select_nodes_to_display( function find_node_by_path (line 292) | fn find_node_by_path<'a>(root: &'a TreeNode, path: &str) -> Option<&'a T... function rebuild_filtered_tree (line 311) | fn rebuild_filtered_tree( function should_enable_colors (line 369) | fn should_enable_colors() -> bool { function display_token_map (line 409) | pub fn display_token_map(entries: &[TokenMapEntry], total_tokens: usize) { function build_tree_prefix (line 520) | fn build_tree_prefix(entry: &TokenMapEntry, entries: &[TokenMapEntry], i... function determine_tui_color (line 571) | fn determine_tui_color(entry: &TokenMapEntry) -> TuiColor { function format_token_map_for_tui (line 630) | pub fn format_token_map_for_tui( function format_tokens (line 724) | fn format_tokens(tokens: usize) -> String { function generate_hierarchical_bar (line 737) | fn generate_hierarchical_bar( FILE: crates/code2prompt/src/tui.rs type TuiApp (line 36) | pub struct TuiApp { method new (line 50) | pub fn new(session: Code2PromptSession) -> Result { method run (line 64) | pub async fn run(&mut self) -> Result<()> { method render_with_model (line 130) | fn render_with_model(model: &Model, frame: &mut Frame) { method handle_key_event (line 203) | fn handle_key_event(&self, key: KeyEvent) -> Option { method handle_file_tree_keys (line 266) | fn handle_file_tree_keys(&self, key: KeyEvent) -> Option { method handle_settings_keys (line 308) | fn handle_settings_keys(&self, key: KeyEvent) -> Option { method handle_statistics_keys (line 321) | fn handle_statistics_keys(&self, key: KeyEvent) -> Option { method handle_template_keys (line 336) | fn handle_template_keys(&self, key: KeyEvent) -> Option { method handle_prompt_output_keys (line 439) | fn handle_prompt_output_keys(&self, key: KeyEvent) -> Option { method handle_message (line 460) | fn handle_message(&mut self, message: Message) -> Result<()> { method execute_cmd (line 472) | fn execute_cmd(&mut self, cmd: Cmd) -> Result<()> { method render_tab_bar_static (line 579) | fn render_tab_bar_static(model: &Model, frame: &mut Frame, area: Rect) { method render_status_bar_static (line 612) | fn render_status_bar_static(model: &Model, frame: &mut Frame, area: Re... method convert_crossterm_key (line 626) | fn convert_crossterm_key(&self, key: crossterm::event::KeyEvent) -> Ke... method try_coalesce_messages (line 662) | fn try_coalesce_messages(&self, last_message: &mut Message, new_messag... function run_tui (line 701) | pub async fn run_tui(session: Code2PromptSession) -> Result<()> { function init_terminal (line 712) | fn init_terminal() -> Result>> { function restore_terminal (line 720) | fn restore_terminal() -> Result<()> { FILE: crates/code2prompt/src/utils.rs function build_file_tree_from_session (line 13) | pub fn build_file_tree_from_session( function auto_expand_recursively (line 55) | fn auto_expand_recursively(node: &mut DisplayFileNode, session: &mut Cod... function directory_contains_selected_files (line 78) | pub(crate) fn directory_contains_selected_files( function get_visible_nodes (line 105) | pub fn get_visible_nodes( type QueryMatcher (line 118) | enum QueryMatcher { function build_query_matcher (line 123) | fn build_query_matcher(raw: &str) -> QueryMatcher { function matches (line 138) | fn matches(m: &QueryMatcher, text: &str) -> bool { type DisplayNodeWithSelection (line 147) | pub struct DisplayNodeWithSelection { function collect_visible_nodes_recursive (line 153) | fn collect_visible_nodes_recursive( function save_to_file (line 236) | pub fn save_to_file(path: &Path, content: &str) -> Result<()> { function format_number (line 252) | pub fn format_number(num: usize, format: &code2prompt_core::tokenizer::T... function get_children_for_search (line 274) | fn get_children_for_search( function save_template_to_custom_dir (line 324) | pub fn save_template_to_custom_dir(filename: &Path, content: &str) -> Re... function load_all_templates (line 339) | pub fn load_all_templates() -> Result> { function ensure_path_exists_in_tree (line 390) | pub fn ensure_path_exists_in_tree( FILE: crates/code2prompt/src/view/formatters.rs function format_settings_groups (line 14) | pub fn format_settings_groups(session: &Code2PromptSession) -> Vec { function new (line 18) | pub fn new(model: &'a Model) -> Self { type State (line 24) | type State = FileSelectionState; method render (line 26) | fn render(self, area: Rect, buf: &mut Buffer, _state: &mut Self::State) { FILE: crates/code2prompt/src/widgets/output.rs type OutputState (line 10) | pub type OutputState = (); type OutputWidget (line 13) | pub struct OutputWidget<'a> { function new (line 18) | pub fn new(model: &'a Model) -> Self { type State (line 24) | type State = OutputState; method render (line 26) | fn render(self, area: Rect, buf: &mut Buffer, _state: &mut Self::State) { FILE: crates/code2prompt/src/widgets/settings.rs type SettingsState (line 10) | pub type SettingsState = (); type SettingsWidget (line 13) | pub struct SettingsWidget<'a> { function new (line 18) | pub fn new(model: &'a Model) -> Self { type State (line 24) | type State = SettingsState; method render (line 26) | fn render(self, area: Rect, buf: &mut Buffer, _state: &mut Self::State) { FILE: crates/code2prompt/src/widgets/statistics_by_extension.rs type ExtensionState (line 10) | pub type ExtensionState = (); type StatisticsByExtensionWidget (line 13) | pub struct StatisticsByExtensionWidget<'a> { function new (line 18) | pub fn new(model: &'a Model) -> Self { type State (line 24) | type State = ExtensionState; method render (line 26) | fn render(self, area: Rect, buf: &mut Buffer, _state: &mut Self::State) { FILE: crates/code2prompt/src/widgets/statistics_overview.rs type StatisticsOverviewWidget (line 9) | pub struct StatisticsOverviewWidget<'a> { function new (line 14) | pub fn new(model: &'a Model) -> Self { method render (line 20) | fn render(self, area: Rect, buf: &mut Buffer) { FILE: crates/code2prompt/src/widgets/statistics_token_map.rs type TokenMapState (line 11) | pub type TokenMapState = (); type StatisticsTokenMapWidget (line 14) | pub struct StatisticsTokenMapWidget<'a> { function new (line 19) | pub fn new(model: &'a Model) -> Self { type State (line 25) | type State = TokenMapState; method render (line 27) | fn render(self, area: Rect, buf: &mut Buffer, _state: &mut Self::State) { FILE: crates/code2prompt/src/widgets/template/editor.rs type TemplateEditorWidget (line 12) | pub struct TemplateEditorWidget; method new (line 15) | pub fn new() -> Self { method render (line 20) | pub fn render( method default (line 99) | fn default() -> Self { FILE: crates/code2prompt/src/widgets/template/mod.rs type TemplateWidget (line 24) | pub struct TemplateWidget { method new (line 31) | pub fn new(_model: &Model) -> Self { method render (line 40) | pub fn render(&self, area: Rect, buf: &mut Buffer, state: &mut Templat... method render_content (line 58) | fn render_content(&self, area: Rect, buf: &mut Buffer, state: &mut Tem... method render_footer (line 143) | fn render_footer(&self, area: Rect, buf: &mut Buffer, state: &Template... type State (line 220) | type State = TemplateState; method render (line 222) | fn render(self, area: Rect, buf: &mut Buffer, state: &mut Self::State) { FILE: crates/code2prompt/src/widgets/template/picker.rs type TemplatePickerWidget (line 12) | pub struct TemplatePickerWidget; method new (line 15) | pub fn new() -> Self { method render (line 20) | pub fn render(&self, area: Rect, buf: &mut Buffer, state: &PickerState... method get_help_text (line 129) | pub fn get_help_text(is_focused: bool, _active_list: ActiveList) -> &'... method default (line 139) | fn default() -> Self { FILE: crates/code2prompt/src/widgets/template/variable.rs type TemplateVariableWidget (line 12) | pub struct TemplateVariableWidget; method new (line 15) | pub fn new() -> Self { method render (line 20) | pub fn render( method render_variable_input (line 147) | fn render_variable_input(&self, area: Rect, buf: &mut Buffer, state: &... method centered_rect (line 168) | fn centered_rect(percent_x: u16, percent_y: u16, r: Rect) -> Rect { method default (line 190) | fn default() -> Self { FILE: crates/code2prompt/tests/common/fixtures.rs function basic_test_env (line 11) | pub fn basic_test_env() -> BasicTestEnv { function git_test_env (line 19) | pub fn git_test_env() -> GitTestEnv { function stdout_test_env (line 27) | pub fn stdout_test_env() -> StdoutTestEnv { function template_test_env (line 35) | pub fn template_test_env() -> TemplateTestEnv { function create_standard_hierarchy (line 42) | pub fn create_standard_hierarchy(base_path: &std::path::Path) { function create_git_hierarchy (line 78) | pub fn create_git_hierarchy(base_path: &std::path::Path) { function create_simple_test_files (line 108) | pub fn create_simple_test_files(base_path: &std::path::Path) { function create_test_codebase (line 129) | pub fn create_test_codebase(base_path: &std::path::Path) { FILE: crates/code2prompt/tests/common/mod.rs function init_logger (line 16) | pub fn init_logger() { FILE: crates/code2prompt/tests/common/test_env.rs type BasicTestEnv (line 12) | pub struct BasicTestEnv { method new (line 18) | pub fn new() -> Self { method command (line 25) | pub fn command(&self) -> Command { method read_output (line 34) | pub fn read_output(&self) -> String { type GitTestEnv (line 42) | pub struct GitTestEnv { method new (line 48) | pub fn new() -> Self { method command (line 56) | pub fn command(&self) -> Command { method read_output (line 65) | pub fn read_output(&self) -> String { type StdoutTestEnv (line 73) | pub struct StdoutTestEnv { method new (line 78) | pub fn new() -> Self { method path (line 84) | pub fn path(&self) -> &str { type TemplateTestEnv (line 90) | pub struct TemplateTestEnv { method new (line 96) | pub fn new() -> Self { method command (line 103) | pub fn command(&self) -> Command { method read_output (line 112) | pub fn read_output(&self) -> String { method output_file_exists (line 117) | pub fn output_file_exists(&self) -> bool { function create_temp_file (line 123) | pub fn create_temp_file(dir: &Path, name: &str, content: &str) -> std::p... FILE: crates/code2prompt/tests/config_test.rs function test_toml_config_parsing (line 18) | fn test_toml_config_parsing() { function test_toml_config_export (line 89) | fn test_toml_config_export() { function test_local_config_file_loading (line 112) | fn test_local_config_file_loading() { function test_unix_style_default_stdout (line 138) | fn test_unix_style_default_stdout() { function test_clipboard_flag (line 159) | fn test_clipboard_flag() { function test_cli_args_override_config (line 173) | fn test_cli_args_override_config() { function test_config_info_messages (line 202) | fn test_config_info_messages() { function test_default_config_message (line 224) | fn test_default_config_message() { function test_cli_args_message (line 240) | fn test_cli_args_message() { FILE: crates/code2prompt/tests/git_integration_test.rs function test_gitignore (line 17) | fn test_gitignore(git_test_env: GitTestEnv) { function test_gitignore_no_ignore (line 35) | fn test_gitignore_no_ignore(git_test_env: GitTestEnv) { function test_git_repo_initialization (line 51) | fn test_git_repo_initialization(git_test_env: GitTestEnv) { function test_gitignore_patterns (line 63) | fn test_gitignore_patterns( FILE: crates/code2prompt/tests/integration_test.rs function test_file_filtering (line 17) | fn test_file_filtering( function test_include_exclude_with_exclude_priority (line 63) | fn test_include_exclude_with_exclude_priority(basic_test_env: BasicTestE... function test_no_filters (line 86) | fn test_no_filters(basic_test_env: BasicTestEnv) { function test_full_directory_tree (line 116) | fn test_full_directory_tree(basic_test_env: BasicTestEnv) { function test_brace_expansion (line 145) | fn test_brace_expansion(basic_test_env: BasicTestEnv) { function test_command_helper (line 173) | fn test_command_helper(basic_test_env: BasicTestEnv) { FILE: crates/code2prompt/tests/std_output_test.rs function test_output_default (line 17) | fn test_output_default(stdout_test_env: StdoutTestEnv) { function test_stdout_configurations (line 39) | fn test_stdout_configurations( function test_file_output_configurations (line 84) | fn test_file_output_configurations( function test_conflicting_output_options_should_fail (line 144) | fn test_conflicting_output_options_should_fail(stdout_test_env: StdoutTe... function test_output_file_vs_stdout_conflict (line 161) | fn test_output_file_vs_stdout_conflict(stdout_test_env: StdoutTestEnv) { function test_stdout_with_different_formats (line 187) | fn test_stdout_with_different_formats( function test_stderr_messages_normal_mode (line 212) | fn test_stderr_messages_normal_mode(stdout_test_env: StdoutTestEnv) { function test_stderr_messages_quiet_mode (line 231) | fn test_stderr_messages_quiet_mode(stdout_test_env: StdoutTestEnv) { function test_stderr_messages_with_clipboard (line 253) | fn test_stderr_messages_with_clipboard(stdout_test_env: StdoutTestEnv) { function test_stderr_with_output_formats (line 269) | fn test_stderr_with_output_formats(stdout_test_env: StdoutTestEnv, #[cas... function test_stdout_stderr_separation (line 289) | fn test_stdout_stderr_separation(stdout_test_env: StdoutTestEnv) { function test_stdout_fixture_setup (line 310) | fn test_stdout_fixture_setup(stdout_test_env: StdoutTestEnv) { FILE: crates/code2prompt/tests/template_integration_test.rs function test_output_format_templates (line 19) | fn test_output_format_templates( function test_json_output_format (line 45) | fn test_json_output_format(template_test_env: TemplateTestEnv) { function test_template_fixture_setup (line 61) | fn test_template_fixture_setup(template_test_env: TemplateTestEnv) { function test_basic_template_rendering (line 92) | fn test_basic_template_rendering(template_test_env: TemplateTestEnv) { function test_template_with_file_extensions (line 109) | fn test_template_with_file_extensions(template_test_env: TemplateTestEnv) { function test_template_output_structure (line 124) | fn test_template_output_structure(template_test_env: TemplateTestEnv) { function test_template_with_filters (line 151) | fn test_template_with_filters( function test_template_command_creation (line 175) | fn test_template_command_creation(template_test_env: TemplateTestEnv) { FILE: website/public/assets/js/main.js function copyToClipboard (line 1) | function copyToClipboard() { function addAnimation (line 17) | function addAnimation() { FILE: website/src/assets/examples/node_app/node_app/src/index.js constant PORT (line 4) | const PORT = process.env.PORT || 3000; FILE: website/src/assets/examples/node_app/node_app/src/utils.js function processData (line 1) | function processData() {