Cobra Command Overview


Commands with short-hand:

aappend a source file
bmove marks back one token
Bbrowse a source file (cf V)
:(colon) execute a named script
ccontains: query a range
ddisplay
.(dot) read a command file
eextend match
Flist of open files
Ggrep in source files
?help
hcommand history
=print something
iinspect lexical tokens
jjump
llist
mmark tokens
nmove marks to the next token
pshow preprocessed matches
qquit
rreset marks
<restore marks from a set
>save marks in a set
!shell escape
sstretch: create a range
ttrack, divert output to file
uundo last command
Vpopup a window with source text

Commands without short-hand:

cfg cfg
comments switch to comment token sequence (cf source)
context context
cpp preprocessing
def...end define named scripts
default default
dp display pattern (pat/pe/ps)
fcg fcg
fcts fcts
ff ff
ft ft
import import a cobra file
json json output for pattern searches
map map
ncore set nr of cores to use
nowindow disable window popups for display commands (default)
%{...%} inline programs
pat pattern token expression
pe same as pat
ps pattern set operations (union/intersection, etc.)
re regular token expression
requires m.n make sure the Cobra version is at least m.n
runtimes [on/off] enable or disable runtime counts for commands
setlinks set .bound field for some keywords related to control-flow
source switch to main source token sequence (cf comments)
stream modify parameters for streaming input
symbols link variables to their point of declaration
terse [on/off] enable or disable output from d, l, p, dp
unmark remove marks matching pattern
view list known script names
window enable window popups for display commands

Additonal explanations:


Manual
Tutorial
(Last Updated: 21 August 2023)