EC_COMP_I...T_CURRENT(3)
π EC_COMP_I...T_CURRENT β okay bestie, let's get that current string π
So this is a page from the Libecoli Programmer's Manual, section 3, and it's about one tiny but iconic little function: ec_comp_item_get_current. It's giving "glow-up reveal of the string that existed before completion happened" β¨
β¨ NAME β¨
ec_comp_item_get_current β get the current string value (before completion) of a completion item.
Like. The before picture. The pre-glow-up. The original text, no edits, no filter. πΈ
π SYNOPSIS π
#include <ecoli/complete.h>
const char * ec_comp_item_get_current(
const struct ec_comp_item *item /* The completion item. */
);
That's it. One argument, one pointer, zero drama. π
π¦ DESCRIPTION π¦
Not gonna lie, this page is short and I respect that so much. Here's the whole vibe:
- You hand it a completion item β a
const struct ec_comp_item *β and it hands you back the current string of that item. That's the string value before completion, iykyk. π«Ά itemis literally just described in the synopsis comment as "The completion item." So, yeah. It's the item. Pass the item. π₯
No hidden flags, no environment variables, no side quests. Immaculate. Periodt.
β RETURN VALUE β
It returns the current string of this item. Just the string. That's the whole return value, no cap. π
Heads up bestie: it's declared as const char *, so don't go trying to write to it, okay? π
π SEE ALSO π
The whole friend group, alphabetically-ish, all here for the collab:
ec_comp_add_item(3)ec_comp_count(3)ec_comp_item_set_str(3)ec_complete(3)ec_comp_get_attrs(3)ec_comp_group_get_attrs(3)ec_comp_iter_next(3)ec_comp_item_get_node(3)ec_comp_iter_first(3)ec_comp_group_get_node(3)ec_complete_strvec_expand(3)ec_comp_free(3)ec_comp_get_cur_pstate(3)ec_complete_unknown(3)ec_complete_strvec(3)ec_comp_item_get_grp(3)ec_comp_item_get_type(3)ec_comp_item_get_str(3)ec_comp_item_set_display(3)ec_complete_child(3)ec_comp(3)ec_comp_item_get_display(3)ec_comp_item_get_completion(3)ec_comp_group_get_pstate(3)ec_comp_dump(3)ec_comp_merge(3)ec_comp_item_set_completion(3)ec_comp_get_cur_group(3)
Go read them too, they're all lowkey doing the most for you. π§
π COPYRIGHT π
Copyright (C) 2010-2026 Olivier Matz, Robin Jarry.
and that's the whole page, bestie!! πβ¨ This was libecoli, dated 2026-06-11, and it ATE. Now go get that current string and slay your completion. π
π₯π¦
π¦ where this page comes from
- fedora 44: libecoli-devel 0.11.7-1.fc44 Β· BSD-3-Clause AND LicenseRef-Fedora-Public-Domain
- fedora 44: libecoli-devel 0.11.7-1.fc44 Β· BSD-3-Clause AND LicenseRef-Fedora-Public-Domain
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms