-
-
Notifications
You must be signed in to change notification settings - Fork 683
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add an option so that opening a file from macOS’s "external editor" mechanism does not bring macvim to foreground #1408
Comments
Right. Let me think about this a little and see if it makes sense to make a PR to upstream Vim instead (so all gvim implementation benefits). Just curious, what do you use |
Thanks for your swift answer! I made a mistake, sorry. When launching an lldb session with When lldb hits a breakpoint ( I have reworked the original ticket. Is there an option, or a script I can run in macvim to dump system calls when this happens? |
mvim --remote-silent
does not bring macvim to foreground
Is there a reason why you don't want the editor to come to the foreground? Why would you want to edit the file but not have it come to focus? I'm still not understanding what feature in lldb is actually opening MacVim. From what I can tell the As for how this works, I'm guessing it's just using the |
When debugging using
The flag only tells lldb to
As I try to describe the issue with further details, I realise that it may be intractable from macvim standpoint. lldb should not open each and every file and line it encounters, and a user command should really do that only for interesting places, which means that macvim is probably fine as-is. |
Ok I think I might have been misunderstanding what Upon testing, it does seem like lldb does use the If you use Xcode for example, you will see that it won't steal focus. I can take a look to see how to fix it. |
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.The text was updated successfully, but these errors were encountered: