出处
一个CLI脚本,该脚本在npm包内的JS文件中占据一个位置,并输出在该位置调用该函数的所有函数的有向图。
安装,或:
vim + graphviz + quicklook
我的出处设置要求:
iojs v2.x
graphviz(通过自制程序)
我写了这篇文章,所以我可以将<Leader>sx混搭在一起,并快速抬起头来显示所要调用的函数。 为此,我编写了一个脚本将stdin存储为临时文件,并使用qlmanage快速显示它:
#! /bin/bash
# call this file "ql" and `chmod +x` it
tmpfile= $( mktemp -t ql )
mv " $tmpfile " {,.png}
tmpfile= ${tmpfile} .png
cat > " $tmpfile "
qlmanage -p $tmpfile >& /dev/
评论0
最新资源