You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I am wondering whether there is a way to hide certain members of a user-defined module.
Indeed, I write Python modules, and these import other packages, which I would like not appear in the autocomplete provided by Jedi. Initially, I tried hiding all the imports with a leading underscore (to mark them as protected/hidden) but this did not work.
The text was updated successfully, but these errors were encountered:
It is jedi specification, not emacs-jedi. emacs-jedi shows candidates which are collected by jedi.
NOTE: I suppose you can hide symbols which start with _ by following code. (advice-add can be used on Emacs 24.4 or higher version).
(advice-add 'jedi:ac-direct-matches
:before (lambda ()
(setqjedi:complete-reply
(cl-loop for r in jedi:complete-reply
for word = (plist-get r :word)
unless (string-match-p "\\`_" word)
collect r))))
I am wondering whether there is a way to hide certain members of a user-defined module.
Indeed, I write Python modules, and these import other packages, which I would like not appear in the autocomplete provided by Jedi. Initially, I tried hiding all the imports with a leading underscore (to mark them as protected/hidden) but this did not work.
The text was updated successfully, but these errors were encountered: