wbolster / emacs-python-pytest

run pytest inside emacs
BSD 3-Clause "New" or "Revised" License
147 stars 25 forks source link

Allow customization of dispatch popup defaults #53

Closed jpablobr closed 2 years ago

jpablobr commented 2 years ago

Hey, I've been using this package and I think it's pretty nice! But noticed I was constantly changing the options mostly to disable "--color" and add "--capture=no"/"--quiet", so just thought others might find this PR useful.

It add a python-pytest-dispatch-defaults defcustom to allow users to modify it via M-x customize-variable or setq.

Cheers

pkryger commented 2 years ago

Not at the computer ATM so I cannot verify this but AFAIR python-pytest uses transient for dispatch so all of its features should be available. If I recall correctly any transient defaults can be set up in the UI and then preserved with C-x C-s. Should that work, would it be sufficient for your use case?

jpablobr commented 2 years ago

I didn't know about the C-x C-s, that's exactly what I was looking for! Thanks, no need for this PR then - I'll close it. Cheers