KW-EXPLORE(1)
π kw-explore β Explore folder π
okay bestie, so this page is the manual for kw-explore, which lives in the kw manual gang. it's the explore folder situation, and honestly? it's giving "I know exactly where that string is and I'm about to prove it." π¦
β¨ NAME β¨
kw-explore β Explore folder β fr fr, that's the whole name, no notes π
β SYNOPSIS β
kw (e | explore) [(-l | --log) | (-g | --grep) | (-a | --all) |
--verbose]
[(-c | --only-source) | (-H | --only-header)] [(-C[<num>] |
--show-context[=<num>])] <expr> [-p] [<dir> | <file>]
like. look at her. she contains multitudes. π
π DESCRIPTION π
so the explore command is, by default, a wrapper to git grep β it's out here searching for string matches in files under git control, or in the git log messages. that's her default era. π
but wait, there's more, because additional parameters extend her behavior so she can also cover all files in a directory (whether or not they're controlled by git, she does not discriminate π
) and also swap out the search tool for the GNU grep utility. glow up.
so like, default usage: you can use kw e <function-name> to find <function-name> in the source directory. iconic. and if your string has spaces in it you have to quote your search, e.g. kw e "<str1> <str2>". do not skip the quotes, I am begging π
π OPTIONS π
-l,--logβ search the git log history by using--logafter thee. for instance,kw e --log <string-match>. bonus: you can also use-pto see the diff in the search. main character behavior β¨-g,--grepβ search for string matches in directory contents using the GNU grep tool. for instance,kw e --grep <string-match>. she also covers files inside the.gitdirectory, no gatekeeping π-a,--allβ search for string matches in directory contents using the Git grep tool. for instance,kw e --all <string-match>. with this one, the search ignores files inside.git, except if it's called inside the.gitdirectory. in other words, if you use this option you will notice that git grep is used first, and then GNU grep. two queens, one job π«Ά-c|--only-sourceβ with this option, it's possible to show only the results from the source. just the source, nothing else, periodt π-H|--only-headerβ with this option, it's possible to show only the results from the header. header only, she's exclusive π-C[<num>]|--show-context[=<num>]β show<num>lines of additional context above and below the matched line. if<num>is not specified, the default value of 3 will be used. bestie, the default is three, write that down π--verboseβ verbose mode lets you see the commands executed under the hood. it's giving backstage pass ποΈβ¨
πΈ EXAMPLES πΈ
to show matched line with context using long-form flag:
kw explore --show-context=5 search_string
to show matched line with context using short flag:
kw explore -C5 search_string
search through all tracked and untracked files, default value of 3 will be used for context:
kw explore -C --all search_string
ok quick vibe check π β that's literally everything the page says. every flag, every default, every example. no cap. don't come for me if you didn't quote your spaced-out search string, I warned you π
and that's the whole page, bestie π¦ this was kw-explore - Explore folder() β Explore folder(), that's the title and the footer energy, iconic of her honestly. mwah, slay, go find your strings. πβ¨πππ
π¦ where this page comes from
- ubuntu stonking: kworkflow 1:0.10-3 Β· GPL-2.0-or-later
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms