gonewest818 / dimmer.el

Interactively highlight which buffer is active by dimming the others.
GNU General Public License v3.0
267 stars 14 forks source link

Can I **not** dim other windows when I'm using the minibuffer? #17

Closed ghost closed 4 years ago

ghost commented 6 years ago

That's a great package that solves something that had been bothering me for a while, so thanks you!!

I see that you made the dimmer-exclusion-regexp so I can prevent a window to be dimmed, and that is awesome, but I'd also like to be able to make a particular window not cause the same to others when it is focused. In my case, I don't want to dim any window when I'm using the minibuffer. Is that possible right now?

Just to clarify: when I open the minibuffer, it does not dim the other windows immediately, but when I start typing. I use Ivy/Counsel. Here's my complete environment just in case.

sshaw commented 5 years ago

I was looking for this too. Would be a very nice feature.

gonewest818 commented 4 years ago

This is now possible with the code just merged into master, which should appear in the next update to MELPA. I do need to update the documentation to make this new feature more obvious.

I'd appreciate some testing if you're still using dimmer.el. Wait for the next MELPA build (watch the build badges on the README), and when you've updated the package you can then configure something like this:

      (setq dimmer-fraction 0.33)
      (setq dimmer-exclusion-predicates
            '(helm--alive-p
              window-minibuffer-p))
      (setq dimmer-exclusion-regexp-list
            '("^\\*[h|H]elm.*\\*"
              "^\\*Minibuf-[0-9]+\\*"
              "^.\\*which-key\\*$"
              "^.\\*Echo.*\\*"))

See how that works for you...

gonewest818 commented 4 years ago

Actually this is a duplicate of #10, and since that issue has additional content to it, I'm closing this and referring you there.