atArg reports whether the cursor is positioned to complete the Nth argument (1-based) of the command — i.e. " ".
(args []string, line string, n int)
| 701 | // atArg reports whether the cursor is positioned to complete the Nth argument |
| 702 | // (1-based) of the command — i.e. "<cmd> <subN> <here>". |
| 703 | func atArg(args []string, line string, n int) bool { |
| 704 | return len(args) == n || (len(args) == n+1 && !strings.HasSuffix(line, " ")) |
| 705 | } |
| 706 | |
| 707 | // getMemoryArgSuggestions provides the second-level completions for |
| 708 | // /memory's subcommands (load dates, facts/remember categories, profile keys). |
no outgoing calls
no test coverage detected