ag the silver searcher
usually
the_silver_searcher
on homebrewpreserve color when paging! (This is amazing!)
ag "search term" --pager "less -R"
Faster and more colorful find!
Wow
fd
,brew install fd
, from https://github.com/sharkdp/fdPreserve color when paging like this
fd "foo" --color always |less -R
jq
- command line json parsing
- here
markdown to pdf
- With pandoc (I used
brew install pandoc
). - And thanks stackoverflow ,
pandoc MANUAL.md -o example13.pdf
- documentation
- from markdown to latex
pandoc -f markdown -t latex hello.txt
Even
--toc, --table-of-contents
,--toc-depth=NUMBER
, for automatic table of contents.Specifically for double spaced output pdf this stackoverflow tip was amazing, to create a file like
options.sty
\usepackage{setspace}
\doublespacing
\usepackage[vmargin=1in,hmargin=1in]{geometry}
\usepackage{lineno}
\linenumbers)
And then use pandoc -H options.sty blah.md -o blah.pdf
. Amazing!
pdf for kindle !!
- Equally as amazing is the k2pdf software which restructures pdf files to comfortable kindle viewing. This is absolutely mind blowing work!