V2EX = way to explore
V2EX 是一个关于分享和探索的地方
Sign Up Now
For Existing Member  Sign In
yudianzhiyu
V2EX  ›  macOS

MAC 在任何软件里只要输入 x m l 三个字符就会自动替换为以下的字符串

  •  
  •   yudianzhiyu · Jun 17, 2017 · 2951 views
    This topic created in 3236 days ago, the information mentioned may be changed or developed.

    现在笔记本遇到一个奇怪的问题,只要连续输入 x m l 三个字符 就会自动替换为以下字符串。不论是在浏览器还是终端还是在任何编辑器里。

    <plist version="1.0"> <dict> <key>Label</key> <string>wake-alert</string> <key>ProgramArguments</key> <array> <string>/bin/bash</string> <string>-c</string> <string>z=/tmp/wake; test -s $z || { date > $z; say w; }; tail -1 /Library/Logs/DirectoryService/DirectoryService.server.log | grep -v Sleep || > $z </string> </array> <key>WatchPaths</key> <array> <string>/Library/Logs/DirectoryService/DirectoryService.server.log</string> </array> <key>ExitTimeOut</key> <integer>2</integer> <key>ThrottleInterval</key> <integer>1</integer> </dict> </plist>
    5 replies    2017-06-17 20:03:26 +08:00
    wangtuyi
        1
    wangtuyi  
       Jun 17, 2017
    Dvel
        2
    Dvel  
       Jun 17, 2017
    Alfred 的 Snippets 功能?
    AvenirX
        3
    AvenirX  
       Jun 17, 2017 via iPhone
    Karabiner? Quiver?
    C0VN
        4
    C0VN  
       Jun 17, 2017
    出现过类似的情况 https://www.v2ex.com/t/337856#reply2
    cxbig
        5
    cxbig  
       Jun 17, 2017
    Mac 有自带的 简单文本替换功能,如 1 楼所示
    另外很多常用工具也具备这种 能力,Alfred、Dash 等
    一个个排查就知道了
    About   ·   Help   ·   Advertise   ·   Blog   ·   API   ·   FAQ   ·   Solana   ·   4686 Online   Highest 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 41ms · UTC 00:12 · PVG 08:12 · LAX 17:12 · JFK 20:12
    ♥ Do have faith in what you're doing.