I have read quite a few posts on the subject but nothing work on monterey. Most of the posts are old and the recently suggested "SwiftDefaultApps-master" does not install on my mac or is reported to crash system prefs.
The com.apple.launchservices.secure.plist has an entry for bbedit but it does not work to open text file type without extension.
<dict>
<key>LSHandlerContentTag</key>
<string>example</string>
<key>LSHandlerContentTagClass</key>
<string>public.filename-extension</string>
<key>LSHandlerPreferredVersions</key>
<dict>
<key>LSHandlerRoleAll</key>
<string>-</string>
</dict>
<key>LSHandlerRoleAll</key>
<string>com.barebones.bbedit</string>
</dict>
Any solution would be greatly appreciated.