V2EX = way to explore
V2EX 是一个关于分享和探索的地方
现在注册
已注册用户请  登录
AvenirX
V2EX  ›  macOS

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

  •  
  •   AvenirX · 2017-01-09 11:02:33 +08:00 · 2799 次点击
    这是一个创建于 2656 天前的主题,其中的信息可能已经有所发展或是发生改变。

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

    11 条回复    2017-01-10 12:13:25 +08:00
    minamike
        1
    minamike  
       2017-01-09 13:18:14 +08:00   ❤️ 1
    选中一个或多个文件
    运行以下 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
        2
    ichubei  
       2017-01-09 13:30:34 +08:00   ❤️ 1
    mac 小白同问:
    finder 里面有.js package.json xxx.h xxx.m xxx.java xxx.xml 这些都是什么呀 ? 多大 16533 个文件之多。
    just4test
        3
    just4test  
       2017-01-09 14:33:15 +08:00   ❤️ 1
    从来都觉得我的所有文件没用。
    iv2ex
        4
    iv2ex  
       2017-01-09 16:41:52 +08:00
    从左侧栏中删除我的所有文件
    iv2ex
        5
    iv2ex  
       2017-01-09 16:44:53 +08:00   ❤️ 1
    取消勾选,眼不见为净。
    justfly
        6
    justfly  
       2017-01-09 16:48:09 +08:00   ❤️ 1
    这东西就是面向那些拍拍照片,看看视频,不知 terminal 为何物的用户的吧。
    tairan2006
        7
    tairan2006  
       2017-01-09 17:02:07 +08:00
    “我的所有文件”是个傻逼选项,建议隐藏掉。。
    LukeXuan
        8
    LukeXuan  
       2017-01-09 17:41:14 +08:00   ❤️ 1
    http://superuser.com/questions/322142/how-do-i-hide-files-from-all-my-files-in-mac-os-x-v10-7-lion

    我一般会把代码的 dir exclude 掉 只用来找文档类图片类的
    AvenirX
        9
    AvenirX  
    OP
       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
        10
    AvenirX  
    OP
       2017-01-10 11:12:49 +08:00
    诶哟。。。
    minamike
        11
    minamike  
       2017-01-10 12:13:25 +08:00
    @AvenirX 我也没上手 想要哪个功能就 Google 一下 stack overflow 之类的论坛总会找到类似的代码 自己修改一下就好了😂
    关于   ·   帮助文档   ·   博客   ·   API   ·   FAQ   ·   我们的愿景   ·   实用小工具   ·   5662 人在线   最高记录 6543   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 27ms · UTC 02:33 · PVG 10:33 · LAX 19:33 · JFK 22:33
    Developed with CodeLauncher
    ♥ Do have faith in what you're doing.