LoginSignup
4
3

More than 5 years have passed since last update.

選択したテキストをMacVimで編集するAutomator

Posted at

超単純。

image

declare -x scratchfile=/tmp/"$(osascript -e 'tell application "System Events" to get name of (path to frontmost application)')"-"$(date '+%s')"-"$$"
cat - > "$scratchfile"
mvim -f +"set noconfirm noswapfile" && cat "$scratchfile"
  • 選択したテキストを一時ファイルに保存。
  • MacVimで編集。
  • 元のテキストと置き換える。

ダウンロード

4
3
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
4
3