macvim-dev / macvim-dev/macvim
Support App Intents and app shortcuts
Dieses Issue hat noch niemand übernommen.
- Vorherrschende Sprache
- Vim Script
- Sterne
- 7.9k
- Forks
- 691
- PR-Merge-Kennzahlen
- Keine gemergten PRs in 30 T.
Beschreibung
macOS 13 Ventura added a new API called App Intents (https://developer.apple.com/documentation/appintents). MacVim should support that to allow for integration into other apps and automation.
TODO: Think about what kind of intents to expose. We already exposes 2 macOS "Services" (a pretty old API) today: one for opening MacVim in a specific folder, and another for opening MacVim from a particular selected text. We can add those two to App Intents as well.
Other than those two, some ideas for feature set:
- create/open files
- query/filter opened files, properties, plugins, and more.
- process files with Vim script
- run generic Vim script
A lot of the above can already be done with Vim's +clientserver and using mvim -c in a ZSH script. Adding dedicated shortcuts does seem nicer as it would provide an easier and more structured interfaces for stringing together commands in Shortcuts.app. But we should make sure that whatever we add does provide genuine value to the user.
In addition to app intents (which could be used to compose shortcuts), we should provide default app shortcuts that can be used as is.
Also, interestingly, it doesn't seem like a lot of apps have added support for this, and exactly 0 text editors / IDEs seem to support it.
Beitragsleitfaden
Erste Schritte
- Lies das ganze Issue und danach den Beitragsleitfaden des Projekts.
- Schreib ins Issue, dass du es übernimmst — das erspart doppelte Arbeit.
- Forke das Repository und arbeite in einem Branch.
- Öffne einen Pull Request, der die Issue-Nummer nennt.
Rechercherichtung
Beginne mit der Dokumentation zu Apple’s App Intents und den bestehenden macOS Services von MacVim zum Öffnen eines Ordners oder des ausgewählten Texts. Der Umfang ist noch nicht festgelegt: Für den Abschluss ist eine vereinbarte Menge an Intents sowie Standard-Tastenkürzel erforderlich, die einen echten Mehrwert bieten, zusammen mit Unterstützung für die ausgewählten Workflows.
Vom Indexierungsmodell aus dem Issue-Text verfasst.
Bewertung
- Tech-Stack
- macos, vim
- Bereich
- desktop
- Issue-Typ
- Feature
- Schwierigkeit
- 5/5
- Geschätzter Aufwand
- Über eine Woche
- Aktivitätsstatus
- Veraltet
- Klarheit
- Muss geklärt werden
- Anfängerfreundlichkeit
- 25/100