Idea detail
click_input
reqlan rq/cli/click.rq:48
Summary
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.
Navigation
Attributes
| Key | Value |
|---|---|
| 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 |
Ancestor context
No ancestor chain recorded.
Outbound references
Inbound references
| Kind | Idea | Path | Snippet |
|---|---|---|---|
| references | click | reqlan rq/cli/click.rq | click_input |
| references | click_ambiguity | reqlan rq/cli/click.rq | click_input |
| references | click_output | reqlan rq/cli/click.rq | click_input |
| references | file_search | reqlan rq/core_analysis/search.rq | click_input |
| references | contextual_search | reqlan rq/core_analysis/search.rq | click_input |
Unresolved references
| Kind | Idea | Path | Snippet |
|---|---|---|---|
| None | |||
Local graph
Initialising graph…