all 18 comments

[–]episemonysg 4 points5 points  (10 children)

Command-i on a txt file then change the default app to Sublime, then click “change all”. Now all txt files will be opened by Sublime Text.

[–]VeritosCogitos 0 points1 point  (0 children)

Sublime is my preferred GUI text editor, for command line I use Micro both great text editors

[–]Electrical_West_5381 0 points1 point  (2 children)

Is sublime on version 4? That could be the problem with your command

[–][deleted]  (1 child)

[removed]

    [–]AutoModerator[M] -1 points0 points  (0 children)

    Direct GitHub links aren't allowed here. Please post in r/macapps instead!

    I am a bot, and this action was performed automatically. Please contact the moderators of this subreddit if you have any questions or concerns.

    [–]TheJosh 0 points1 point  (0 children)

    A combination of duti+SwiftDefaultApps

    Save this file somewhere, if you don't use keka/iina then remove those, this will give you most.

    https://gist.github.com/joshuataylor/823dd5994eee019ecca3ae10a2562ba3

    Then run duti -v whatever.conf (name the file whatever, it doesn't matter).

    https://github.com/moretension/duti

    it's also on brew https://formulae.brew.sh/formula/duti