Finder 中 “我的所有文件” 被 node_modules 文件刷屏

2017-01-09 11:02:33 +08:00
 AvenirX

有办法把这些文件隐藏显示吗?

2812 次点击
所在节点    macOS
11 条回复
minamike
2017-01-09 13:18:14 +08:00
选中一个或多个文件
运行以下 AppleScript

tell application "Finder" to set s to selection as alias list
if s is {} then return
set out to ""
repeat with f in s
set out to out & "\"" & POSIX path of f & "\"" & " "
end repeat

property hideFolders : true
if hideFolders then
do shell script "chflags hidden" & " " & out
set hideFolders to false
else
do shell script "chflags nohidden" & " " & out
set hideFolders to true
end if
ichubei
2017-01-09 13:30:34 +08:00
mac 小白同问:
finder 里面有.js package.json xxx.h xxx.m xxx.java xxx.xml 这些都是什么呀 ? 多大 16533 个文件之多。
just4test
2017-01-09 14:33:15 +08:00
从来都觉得我的所有文件没用。
iv2ex
2017-01-09 16:41:52 +08:00
从左侧栏中删除我的所有文件
iv2ex
2017-01-09 16:44:53 +08:00
取消勾选,眼不见为净。
justfly
2017-01-09 16:48:09 +08:00
这东西就是面向那些拍拍照片,看看视频,不知 terminal 为何物的用户的吧。
tairan2006
2017-01-09 17:02:07 +08:00
“我的所有文件”是个傻逼选项,建议隐藏掉。。
LukeXuan
2017-01-09 17:41:14 +08:00
http://superuser.com/questions/322142/how-do-i-hide-files-from-all-my-files-in-mac-os-x-v10-7-lion

我一般会把代码的 dir exclude 掉 只用来找文档类图片类的
AvenirX
2017-01-10 11:10:33 +08:00
谢谢大家! @LukeXuan 提供的方法是我最想要的 <br><br>
@minamike<br>一直觉得 AppleScript 是个神器,但一直没下定决心去看😂。 你上手大概用了多久啊?<br><br>
@just4test @atearsan @justfly @tairan2006 <br>以前我也是一直隐藏了,后来发现还是挺好用的。我经常会写点东西,让后上网下些图片文稿等资料。文件就分开在文稿,图片,下载里,用所有文件的话查看很方便。<br><br>
@ichubei<br>是有人用你的电脑做了 js , java 开发吗?
AvenirX
2017-01-10 11:12:49 +08:00
诶哟。。。
minamike
2017-01-10 12:13:25 +08:00
@AvenirX 我也没上手 想要哪个功能就 Google 一下 stack overflow 之类的论坛总会找到类似的代码 自己修改一下就好了😂

这是一个专为移动设备优化的页面(即为了让你能够在 Google 搜索结果里秒开这个页面),如果你希望参与 V2EX 社区的讨论,你可以继续到 V2EX 上打开本讨论主题的完整版本。

https://www.v2ex.com/t/333232

V2EX 是创意工作者们的社区,是一个分享自己正在做的有趣事物、交流想法,可以遇见新朋友甚至新机会的地方。

V2EX is a community of developers, designers and creative people.

© 2021 V2EX