wbolster / emacs-python-pytest

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

PDB autocompletion #17

Open matthew-piziak opened 5 years ago

matthew-piziak commented 5 years ago

It would be nice to have dot-completion on locals, for example. Maybe some integration with realgud?

wbolster commented 2 years ago

tbh i would have no idea how to approach this without massively complicating things.

comint specific (not emacs-python-pytest specific) solutions will likely work for this package as well, btw

muffinmad commented 2 years ago

@matthew-piziak Take a look at https://github.com/muffinmad/emacs-pdb-capf ;)

muffinmad commented 2 years ago

Example configuration:

(add-hook 'python-pytest-mode-hook
          (lambda ()
            (add-hook 'completion-at-point-functions
                      'pdb-capf nil t)))