-
Notifications
You must be signed in to change notification settings - Fork 0
Controlling Output
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 | fzfUse --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:
-
-lprints one kind and qualified name for each matching symbol -
-Nor--no-line-numberremoves source line numbers -
--breakinserts a blank line between non-consecutive source matches -
--source doc -N --breakproduces 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.