Skip to content

Controlling Output

Danny Thomas edited this page Sep 18, 2026 · 1 revision

Terminal output groups consecutive results beneath compilation-unit headings and colors symbol kinds, names, and line numbers:

class java.lang.String(String.java)
1600:    public boolean isEmpty() {
1601:        return value.length == 0;
1602:    }

Redirected output keeps one complete result on each line so it composes with shell tools:

jist -k method java.lang.String | grep valueOf
jist -k type java.net | sort -u | fzf

Use --pretty to force terminal presentation. --heading, --no-heading, and --color auto|always|never control grouping and color independently.

An explicit source-file target omits its redundant unit and filename by default:

12:    public void run() {

Use --heading, --no-heading, or --qualified-path to retain file context. --qualified-path shows a project path or archive URI for source output and the ClassFile origin for compiled output.

Additional output controls include:

  • -l prints one kind and qualified name for each matching symbol
  • -N or --no-line-number removes source line numbers
  • --break inserts a blank line between non-consecutive source matches
  • --source doc -N --break produces compact API documentation

Usage searches highlight only source token ranges attributed by javac to the requested symbol. Declarations and ClassFile-only usages are not highlighted.

Clone this wiki locally