mirror of
https://github.com/atom/atom.git
synced 2026-01-23 05:48:10 -05:00
The goal is to start with the shortest overview possible of all the major features, then get into more detail later in the documentation.
754 B
754 B
Command Panel
A partial implementation of the Sam command language
Examples
, selects entire file
1,4 selects lines 1-4
/pattern selects the first match after the cursor/selection
s/pattern/replacement replace first text matching pattern in current selection
s/pattern/replacement/g replace all text matching pattern in current selection
,s/pattern/replacement/g replace all text matching pattern in file
1,4s/pattern/replacement replace all text matching pattern in lines 1-4
x/pattern selects all matches in the current selections
,x/pattern selects all matches in the file
,x/pattern1/ x/pattern2 "structural regex" - selects all matches of pattern2 inside matches of pattern1