![](/style/images/good.png)
![](/style/images/bad.png)
使用 Alfred workflow 高效操作文件 | CHEGVA
source link: https://chegva.com/3485.html
Go to the source link to view the article. You can view the picture content, updated content and better typesetting reading experience. If the link is broken, please click the button below to view the snapshot at that time.
Mac高效办公第四弹——使用Alfred workflow高效操作文件
◎软件环境:
◎功能描述:
使用 alfred workflow 自带的文件搜索功能,实现查找复制文件名、复制文件、获取文件的绝对路径、将文件移至回收站等操作。
◎实现思路:
通过 alfred + shell + osascript,加上一些小工具,实现高效文件操作,省去多次右键选择,手动查找文件,复制等操作,提高工作效率。
使用方法:
fn:复制文件名
fp:复制文件绝对路径, 按
cmd + shift + g
粘贴文件绝对路径可以快速选定文件上传fd:将指定文件移至回收站
fc:复制文件
fg:使用nc将服务器上的文件下载保存至本地,同时复制至剪贴板。进入文件所在目录,fg + 文件名即可。适用于二层大内网环境,直接copy下载服务器上文件或脚本,相比scp等操作,还是比较好用的。主要是线上linux服务器没有pbcopy这种便捷操作,没想到别的好办法
cf:比如在浏览博客看到一篇美文或者在服务器上看到一段优秀的代码,你想保存到本地日后品味,这时可以复制这段文章或代码,然后cf + 文件名,就会将内容写入 ~/temp 目录下创建的文件中,图片啥的都保存不了,比较鸡肋,凑合用
按
cmd + return
可以在finder中显示文件按
alt + return
可以在终端打开文件所在目录,默认使用iTerm,可以自行修改脚本指定终端按
shift
可以预览文件内容
◎下载地址:https://github.com/anzhihe/Efficient-office/tree/master/file-operation
Recommend
About Joyk
Aggregate valuable and interesting links.
Joyk means Joy of geeK