Printable idea sheet
click_input
reqlan rq/cli/click.rq:48
Katz 0.156
Accept any of:
- idea name ( trimmed optional surrounding brackets `name` )
- `path#idea` ( indexed file URI + idea name ) — this form is unique
- `.rq` file path — the file is one centre, not every idea in the file
- indexed code file path ( click_code_file )
Resolution uses click_ambiguity after the same ref normalisation as
( contextual_search / `resolve_search_context_refs` ).
When no centre matches, click uses fuzzy_search ( and file_search ) with the target as the query and returns those hits. Do not return an empty slice.
When more than one centre matches, and the click_session already has ideas, rank the matches by undirected hop distance from those ideas ( idea_graph_distance / click_input ). Nearer ranks first. Put the hop count on each candidate.
When there is no session key, or the session has no ideas yet, do not calculate hop distance. Do not print hops. Rank by name and file path. On the search path, rank by fuzzy_search score only.
When exactly one centre matches, return click_output.
Always return or create a click_session key.
- implementation
- click.rs, contextual.rs, fuzzy.rs
- status
- done
- tests
- click.rs:click_returns_unique_idea_without_edges, click.rs:click_accepts_file_path_as_one_file_node, click.rs:click_falls_through_to_search_when_nothing_matches, click.rs:click_ranks_ambiguous_names_by_session_distance, click.rs:click_omits_hops_when_session_has_no_ideas
Interactive page: click_input