macvim-dev / macvim-dev/macvim
Add an option so that opening a file from macOS’s "external editor" mechanism does not bring macvim to foreground
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
In macOS, I am setting the default editor for source code files to open with macvim be default so that macvim can be the editor when debugging on lldb with lldb --editor. However, whenever a breakpoint is hit, or a frame changed, the focus automatically goes from lldb to macvim. I wish I could keep the focus on lldb instead.
Describe the solution you'd like
Maybe there could be an option called macvim_dont_bring_to_foreground, set to 0 by default, that enables the current behavior (bringing macvim to foreground when a remote command arrives), and can be set to 1 to disable the foreward bringing).
Describe alternatives you've considered
I have considered using vim in the terminal instead, by the server part of +clientserver is disabled.
Additional context
Add any other context or screenshots about the feature request here.
EDIT: lldb don’t use $EDITOR but the host’s external editor instead.
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 damit, MacVims macOS-external-editor- oder remote-command-Verarbeitung nachzuverfolgen und zu ermitteln, wo die Anwendung aktiviert wird, wenn sich ein Breakpoint oder Frame ändert. Die Aufgabe ist erledigt, wenn eine konfigurierbare Option standardmäßig das aktuelle Verhalten im Vordergrund beibehält und gleichzeitig ermöglicht, dass lldb bei Remote-Dateiöffnungen fokussiert bleibt; verifiziere dies über den external-editor-Workflow.
Vom Indexierungsmodell aus dem Issue-Text verfasst.
Bewertung
- Tech-Stack
- macos, vim
- Bereich
- desktop
- Issue-Typ
- Feature
- Schwierigkeit
- 4/5
- Geschätzter Aufwand
- 3-5 Tage
- Aktivitätsstatus
- Veraltet
- Klarheit
- Größtenteils klar
- Anfängerfreundlichkeit
- 35/100