CINDEX(1)
π CINDEX(1) β the trigram index glow-up π
okay bestie, sit down, because cindex is about to become your new main character. it's a General Commands Manual girlie, and she's here to prep the trigram index for csearch(1). yes, that's the whole job. and she EATS. π
β¨ NAME β¨
cindex β prepares the trigram index for csearch(1)
πΈ SYNOPSIS πΈ
cindex [-list] [-reset] [ path... ]
π¦ DESCRIPTION π¦
so like. cindex prepares the trigram index for use by csearch. the index is literally the file named by $CSEARCHINDEX, or else $HOME/.csearchindex. that's where all the magic lives, no cap. π
the simplest invocation is, and i cannot stress this enough:
cindex path...
which adds the file or directory tree named by each path to the index. for example:
cindex $HOME/src /usr/include
or, equivalently (same energy, different font):
cindex $HOME/src
cindex /usr/include
if cindex is invoked with no paths, it reindexes the paths that have already been added, in case the files have changed. thus, cindex by itself is a useful command to run in a nightly cron job. yes bestie, the cron job. she's lowkey iconic for that. π
the -list flag causes cindex to list the paths it has indexed and exit. that's it. that's the flag. π
by default cindex adds the named paths to the index but preserves information about other paths that might already be indexed (the ones printed by cindex -list). the -reset flag causes cindex to delete the existing index before indexing the new paths. with no path arguments, cindex -reset removes the index. gone. poof. π
π OPTIONS π
-listβ List the indexed paths and exit. she shows you the receipts and then dips. π«Ά-resetβ Delete the existing index before indexing the new paths. With no path arguments,-resetremoves the index. nuclear option, but make it cute. π₯
π ENVIRONMENT π
cindex uses the index stored in $CSEARCHINDEX or, if that variable is unset or empty, $HOME/.csearchindex. so like, set it or don't, she's flexible. π
furthermore, cindex honors the standard TMPDIR environment variable when creating its temporary files. in case the temporary files exceed the space you have in /tmp, possibly because /tmp is a tmpfs and thus using your RAM, feel free to set TMPDIR to a different path than /tmp. bestie, if your /tmp is eating your RAM, that's your sign. π
β SEE ALSO β
π AUTHOR π
This manual page was written by Michael Stapelberg <stapelberg@debian.org>, for the Debian project (and may be used by others).
and that's the whole page, bestie. this one's dated 2013-06-23 and she's a CINDEX(1) girlie through and through β written for the Debian project, though the cool kids elsewhere can use her too. mwah. πβ¨
π¦ where this page comes from
- debian bookworm: codesearch 0.0~hg20120502-3+b19 Β· BSD-3-Clause
- debian trixie: codesearch 1.2.0-1+b8 Β· BSD-3-Clause
- ubuntu jammy: codesearch 0.0~hg20120502-3build2 Β· BSD-3-Clause
- ubuntu noble: codesearch 0.0~hg20120502-3build3 Β· BSD-3-Clause
- ubuntu noble: codesearch 0.0~hg20120502-3ubuntu0.24.04.3 Β· BSD-3-Clause
- ubuntu questing: codesearch 1.2.0-1
- ubuntu resolute: codesearch 1.2.0-1build1 Β· BSD-3-Clause
- ubuntu stonking: codesearch 1.2.0-1build1 Β· BSD-3-Clause
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms