CJTozer / SublimeDiffView

Side-by-Side Git, SVN and Bazaar Diff Viewer for Sublime Text 3
https://packagecontrol.io/packages/DiffView
MIT License
20 stars 7 forks source link

`diff_running` context spans windows and eats keybindings as a result #72

Open rkoval opened 4 years ago

rkoval commented 4 years ago

My primary use case for SublimeDiffView is to open up a diff in a new window while having another window open for file browsing. However, while the diff is open, in my non-diff window, I can no longer use my escape key normally. The diff_running context key appears to be populated globally, so it attempts to run the diff_cancel command in my non-diff window (which does nothing).

Is there any way to restrict this diff_running context to the currently open window or view such that it doesn't interfere with keybindings app-wide?

As a wordaround, I may just disable the escape keybinding manually, as I normally just close out the window to close my diff. I think this will cause diff_running to still be active; however, I don't think it will conflict with anything else running (although please correct me if I'm wrong).