Closed anki-code closed 1 year ago
@jnoortheen what do you think will this work path?
I am not able to find proper documentation for this variable. If it is available we can use from it. Otherwise it will not be able to detect the current app with focus. We will prefer $TERM_PROGRAM
over this. If that is not set, the code can use this.
Here is the doc - https://developer.apple.com/documentation/bundleresources/information_property_list/cfbundleidentifier
A bundle ID uniquely identifies a single app throughout the system. The bundle ID string must contain only alphanumeric characters (A–Z, a–z, and 0–9), hyphens (-), and periods (.). Typically, you use a reverse-DNS format for bundle ID strings. Bundle IDs are case-insensitive. The operating system uses the bundle ID to identify the app when applying specified preferences.
It looks useful.
Example for terminal in VSCode:
The same is working for any app.