Files
atom/docs/built-in-packages/command-panel.md
Garen Torikian b3b7f1ea97 Change to an H2
Otherwise the TOC renders wrong
2013-05-16 12:48:20 -06:00

1.0 KiB

Command Panel

The command panel contains a partial implementation of the Sam command language. In addition, packages are free to design and define any scoped command.

Pop open the command line by hitting . You can get a list of commands available to Atom (including any keybindings) by hitting meta-p.

Examples

, selects the entire file

1,4 selects lines 1-4 in the current file

/pattern selects the first match after the cursor/selection

s/pattern/replacement replaces the first text matching pattern in current selection

s/pattern/replacement/g replaces all text matching pattern in current selection

,s/pattern/replacement/g replaces all text matching pattern in file

1,4s/pattern/replacement replaces 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