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

MAC OSX右键菜单能否添加类似于“在终端中打开当前目录”的快捷方式

  •  
  •   moonfly · 2013-09-04 22:08:59 +08:00 · 31975 次点击
    这是一个创建于 3886 天前的主题,其中的信息可能已经有所发展或是发生改变。
    主要应用场景:
    当我在某一个角落找到一个文件,并用finder打开了这个很深层次的当前目录后;想要scp这个文件到远程主机,习惯在终端下用scp命令,但是需要cd 很长一串的路径;
    所以如果可以在当前目录上通过右键菜单直接启动终端,并且自动定位到当前目录,这会是多么幸福的一件事情!
    不知道能不能实现,或者有类似的工具或插件可以做到!
    15 条回复    2014-11-22 22:50:56 +08:00
    little_cup
        1
    little_cup  
       2013-09-04 22:17:03 +08:00
    XtraFinder可以
    moonfly
        2
    moonfly  
    OP
       2013-09-04 22:20:31 +08:00
    @little_cup 这个XtraFinder的使用方式和体验跟系统的Finder差别大吗?能否应用到整个系统的所有目录和文件?
    hitigon
        3
    hitigon  
       2013-09-04 22:25:43 +08:00   ❤️ 1
    XtraFinder +1
    还有个小工具叫 Go2Shell https://itunes.apple.com/us/app/go2shell/id445770608?mt=12
    FanError
        4
    FanError  
       2013-09-04 22:33:39 +08:00
    moonfly
        5
    moonfly  
    OP
       2013-09-04 22:36:49 +08:00
    @hitigon 去看了下,go2shell貌似很符合我的心意!~~感谢!
    另外XtarFinder我还没去了解,不知道会不会比go2shell更好呢!
    dorentus
        6
    dorentus  
       2013-09-04 22:40:17 +08:00   ❤️ 2
    http://apple.stackexchange.com/a/42450/40485

    系统偏好设置 -> 键盘 -> 快捷键 -> 服务,勾选「新建位于文件夹位置的终端窗口」(后面的键盘快捷键可以不选),然后在 Finder 里面选中文件夹右键菜单的「服务」下面就会有「新建位于文件夹位置的终端窗口」这一子菜单了。
    ETiV
        7
    ETiV  
       2013-09-04 22:52:01 +08:00 via iPhone
    @dorentus 这招有能用 iTerm 打开的方法吗?不用Terminal
    moonfly
        8
    moonfly  
    OP
       2013-09-04 22:52:09 +08:00
    @dorentus Good idea!
    看来真实小瞧MAC OSX了!原来还有这么多秘籍的!首选不用安装插件和app实现的方式!赞一个!
    dorentus
        9
    dorentus  
       2013-09-04 22:58:38 +08:00
    @ETiV 按照我上面贴的那个回答里面的自己创建 Automator Service 脚本的方法应该可以实现吧,不过我对 Apple Script 不熟,估计是把

    tell application "Terminal"

    换成

    tell application "iTerm"

    这样就可以了。
    5key
        10
    5key  
       2013-09-04 23:00:01 +08:00
    5key
        11
    5key  
       2013-09-04 23:01:36 +08:00
    最终是这样的。
    xatest
        12
    xatest  
       2013-09-04 23:20:59 +08:00

    ForkLift支持,可以替代Finder用〜
    itfanr
        13
    itfanr  
       2014-11-14 18:52:48 +08:00
    Go2shell 感觉不错!
    loling
        14
    loling  
       2014-11-22 22:48:29 +08:00
    @5key 你的那个页面404了!
    loling
        15
    loling  
       2014-11-22 22:50:56 +08:00
    @dorentus Yosemite下貌似失效了噢
    关于   ·   帮助文档   ·   博客   ·   API   ·   FAQ   ·   我们的愿景   ·   实用小工具   ·   3240 人在线   最高记录 6543   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 31ms · UTC 14:29 · PVG 22:29 · LAX 07:29 · JFK 10:29
    Developed with CodeLauncher
    ♥ Do have faith in what you're doing.