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
まだ誰も着手していません。
- 主要言語
- Vim Script
- スター
- 7.9k
- フォーク
- 691
- PR マージ指標
- 30日以内にマージされた PR はありません
説明
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.
コントリビューションガイド
はじめの一歩
- issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
- 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
- リポジトリをフォークし、ブランチを切って変更します。
- issue 番号を参照したプルリクエストを送ります。
調査の方向性
まず、MacVim の macOS における external-editor または remote-command の処理と、breakpoint または frame が変化したときにアプリケーションをアクティブ化する箇所を追跡します。完了条件は、設定可能なオプションによってデフォルトでは現在のフォアグラウンド動作を維持しつつ、リモートファイルを開く際には lldb にフォーカスを残せることです。これを external-editor ワークフローで検証します。
索引モデルが issue の本文から書いたものです。
評価
- 技術スタック
- macos, vim
- 領域
- desktop
- issue の種類
- 機能追加
- 難易度
- 4/5
- 見積もり時間
- 3〜5日
- 活発さ
- 停滞
- 明瞭さ
- おおむね明確
- 初心者へのやさしさ
- 35/100