Copy [$TITLE]($URL)
of tabs to clipboard with TabFS (thanks Omar !!).
Note: This script was written for a personal use-case — it may not be the most wieldy. It uses pbcopy
which works on mac os. Look into clip
if on windows or xclip
/xsel
if on linux. Also — here's a gist of an earlier script I was using that just copies every open tab except roam, with no available options: capturetabs.sh. It has the benefit of being shorter and more readable.
Clone (or download/unzip) into same directory as mnt/
, or place wherever and change $PRE_DIR
.
chmod 755 mdtabs.sh
./mdtabs.sh
copies the last focused tab to the clipboard and overwrites tabs.md
.
-a
: target All tabs
-d
: close (Delete) targeted tabs (must use with -a
or -x
)
-x
: eXclude tabs that match a particular query (must use with -a
)
-m
: set a value to deliMit lines in tabs.md
./mdtabs.sh
cat tabs.md
[sulsanaul/mdtabs](https://github.com/sulsanaul/mdtabs)
./mdtabs.sh -a
./mdtabs.sh -ad
./mdtabs.sh -ax twitter
./mdtabs.sh -adx roam
./mdtabs.sh -am "* "
cat tabs.md
* [sulsanaul/mdtabs](https://github.com/sulsanaul/mdtabs)
* [Home / Twitter](https://twitter.com/home)