启动 Obsidian 关闭显卡加速

/Applications/Obsidian.app/Contents/MacOS/Obsidian --disable-gpu
/Applications/Notion.app/Contents/MacOS/Notion --disable-gpu
open -a "obsidian" --args --disable-gpu

禁用或启用自动生成

可通过Terminal输入以下命令来禁止或恢复在网络文件夹上自动生成.DS_Store:

  • 禁止.DS_store生成:
defaults write com.apple.desktopservices DSDontWriteNetworkStores -bool TRUE
  • 恢复.DS_store生成:
defaults delete com.apple.desktopservices DSDontWriteNetworkStores

让mac系统原生支持HOME和END键的功能

打开终端输入下面的命令创建并编辑 DefaultKeyBinding.dict 文件

mkdir -p ~/Library/KeyBindings
vi ~/Library/KeyBindings/DefaultKeyBinding.dict

往DefaultKeyBinding.dict添加下面的内容

{
    /* Remap Home / End keys */
    /* Home Button*/
    "\UF729" = "moveToBeginningOfLine:"; 
    /* End Button */
    "\UF72B" = "moveToEndOfLine:"; 
    /* Shift + Home Button */
    "$\UF729" = "moveToBeginningOfLineAndModifySelection:"; 
    /* Shift + End Button */
    "$\UF72B" = "moveToEndOfLineAndModifySelection:"; 
    /* Cmd + Home Button */
    "@\UF729" = "moveToBeginningOfDocument:"; 
    /* Cmd + End Button */
    "@\UF72B" = "moveToEndOfDocument:"; 
     /* Shift + Cmd + Home Button */
    "$@\UF729" = "moveToBeginningOfDocumentAndModifySelection:";
    /* Shift + Cmd + End Button*/
    "$@\UF72B" = "moveToEndOfDocumentAndModifySelection:"; 
}

保存退出后重启系统即可

esc> :wq!

功能键说明

代码键位
~Option key
$Shift key
^^Control key
@Command key
# keys on number pad

添加新评论