complete -c tgrep -s e -l regexp -d 'specify the regex expression' -r
complete -c tgrep -s t -l target -d 'specify the search target. If none provided, search the current directory.' -r -F
complete -c tgrep -l max-depth -d 'the max depth to search' -r
complete -c tgrep -l threads -d 'set the appropriate number of threads to use' -r
complete -c tgrep -l max-length -d 'set the max length for a matched line' -r
complete -c tgrep -s s -l searcher -d 'executable to do the searching' -r -f -a "{rg	'',tgrep	''}"
complete -c tgrep -l glob -d 'rules match .gitignore globs, but ! has inverted meaning, overrides other ignore logic' -r
complete -c tgrep -s c -l count -d 'display number of files matched in directory and number of lines matched in a file if present'
complete -c tgrep -s . -l hidden -d 'search hidden files'
complete -c tgrep -s n -l line-number -d 'show line number of match if present'
complete -c tgrep -s m -l menu -d 'open results in a menu to be edited with $EDITOR navigate through the menu using the following commands:  - move up/down: k/j, p/n, up arrow/down arrow  - move up/down with a bigger jump: K/J, P/N  - move up/down paths: {/}, [/]  - move to the start/end: g/G, </>, home/end  - move up/down a page: b/f, pageup/pagedown  - quit: q, ctrl + c'
complete -c tgrep -s f -l files -d 'show the paths that have matches'
complete -c tgrep -l links -d 'show linked paths for symbolic links'
complete -c tgrep -l trim -d 'trim whitespace at the beginning of lines'
complete -c tgrep -l pcre2 -d 'enable PCRE2 if the searcher supports it'
complete -c tgrep -l no-ignore -d 'don\'t use ignore files'
complete -c tgrep -l no-color -d 'don\'t use colors if present'
complete -c tgrep -s l -l tree -d 'display the files that would be search in tree format'
complete -c tgrep -s h -l help -d 'Print help'
complete -c tgrep -s V -l version -d 'Print version'
