Great article, showing an entire extra dimension for capabilities of a good editor.
RE the Emacs example, let me explain for posterity. This may look scary:
C-x h C-u M-| js2json
But it's actually built out of commands Emacs regulars would know well.
C-x h means "select all" (more accurately, the mark-whole-buffer command).
C-u is a "prefix argument", applying to the next command you issue; it's something used frequently.
M-| is shell-command-on-region; it'll take what you selected and pipe it into a shell command. Without a prefix argument, the output would end up in another Emacs buffer; with a prefix argument, it replaces the selection.
(And, of course, C-x is "control + x", M-| is "alt + |" in Emacs-speak.)
Cheers!
For further actions, you may consider blocking this person and/or reporting abuse
We're a place where coders share, stay up-to-date and grow their careers.
Great article, showing an entire extra dimension for capabilities of a good editor.
RE the Emacs example, let me explain for posterity. This may look scary:
But it's actually built out of commands Emacs regulars would know well.
C-x h
means "select all" (more accurately, themark-whole-buffer
command).C-u
is a "prefix argument", applying to the next command you issue; it's something used frequently.M-|
isshell-command-on-region
; it'll take what you selected and pipe it into a shell command. Without a prefix argument, the output would end up in another Emacs buffer; with a prefix argument, it replaces the selection.(And, of course,
C-x
is "control + x",M-|
is "alt + |" in Emacs-speak.)Cheers!