Skip to main content
16 events
when toggle format what by license comment
Jun 5 at 9:57 comment added devdanke A crucial piece of the puzzle is finding the correct app id for your replacement editor. This call finds it: osascript -e 'id of app "Visual Studio Code"' It helped me find the app id the editor I use, VSCodium. Find more helpful details at darraghoriordan.com/2021/09/15/vscode-default-text-files-mac
Dec 5, 2023 at 4:11 comment added Josh Hibschman Probably worth mentioning you can go by file type, like duti -s com.sublimetext.4 .sh all -- this fixed Xcode owning these for me
Nov 20, 2023 at 19:31 comment added Nathan I did not want to use any python tools, and this allows for all programming language extensions only using unix tools: curl "https://raw.githubusercontent.com/github/linguist/master/lib/linguist/languages.yml" | grep " - \"\." | sort -u | awk '{print $2}' | tr -d '"' | xargs -L 1 -I "{}" duti -s com.sublimetext.4 {} all
Jun 13, 2023 at 23:11 comment added HanSooloo I have a conf file for which TextEdit shows up as the default editor. The above with public.plain-text didn't change the editor. Is there a way to change that? Maybe a way to see the default / fall-back editor option?
S Aug 29, 2022 at 5:43 history suggested Justin Ohms CC BY-SA 4.0
update to reference current version of sublime
Aug 29, 2022 at 5:40 review Suggested edits
S Aug 29, 2022 at 5:43
Aug 11, 2022 at 11:04 comment added sming @sickerin - that article is amazing. Saved me a lot of rote clicking for sure.
Jun 14, 2022 at 23:57 comment added Joel Teply check your version, the current build 4167 was version 4: com.sublimetext.4
Oct 10, 2021 at 14:17 comment added sickerin I found this really well-written article. You can run this to set this for almost all extensions brew install duti python-yq curl "https://raw.githubusercontent.com/github/linguist/master/lib/linguist/languages.yml" \ | yq -r "to_entries | (map(.value.extensions) | flatten) - [null] | unique | .[]" \ | xargs -L 1 -I "{}" duti -s com.microsoft.VSCode {} all alexpeattie.com/blog/…
Jan 10, 2021 at 1:24 comment added floer32 For convenience -- If you want to use MacVim instead, replace com.sublimetext.3 with com.vim.macvim. If you want to use VS Code instead, replace it with com.microsoft.VSCode.
S Apr 1, 2020 at 9:59 history suggested Borek Bernard CC BY-SA 4.0
Add info about 'public.data'
Apr 1, 2020 at 9:08 review Suggested edits
S Apr 1, 2020 at 9:59
Dec 16, 2019 at 16:17 history edited grg CC BY-SA 4.0
duti.org no longer exists, thanks @sorin
S Jun 11, 2016 at 6:36 history suggested jadik CC BY-SA 3.0
commands provided did not work... this on a virgin installation of mac 10.11.5, and brand-new brew. After researching the problem, it seems the syntax wasn't appropriate. The modified commands are literal and functional.
Jun 11, 2016 at 3:53 review Suggested edits
S Jun 11, 2016 at 6:36
Mar 11, 2014 at 14:52 history answered Lri CC BY-SA 3.0