代码之家  ›  专栏  ›  技术社区  ›  Eastsun

如何使emacs-jedi中的自动完成信息更加紧凑?

  •  3
  • Eastsun  · 技术社区  · 11 年前

    我已经学习python大约一个月了,我使用emacs2.3和jedi来编写python代码。 绝地武士做得很好,我非常喜欢。然而,我想让自动完成菜单更加紧凑: enter image description here 我们可以看到,由于自动完成菜单太长,自动完成信息有一些冗余,并隐藏了文档信息。 而不是:

    array                          Import: from numpy.core.numeric import array i
    array_str                                       Function: numeric.array_str f
    array_type Statement: array_type = [{balabalabalaxxxxxxxxxxxxxxxxxxxxxxx }] s
    

    我想要这样的东西:

    array               numpy.core.numeric i
    array_str            numeric.array_str f
    array_type              [{xxxxxx... }] s
    

    这里是PyCharm的自动完整弹出菜单,以供比较。 enter image description here

    1 回复  |  直到 11 年前
        1
  •  1
  •   tkf    11 年前

    有一个对popup.el的pull请求(emacs jedi依赖于auto-complete.el,auto-complete.el依赖于popup.el)来解决这个问题: https://github.com/auto-complete/popup-el/pull/28

    您可能需要观看此提取请求。审查过程即将结束。

    同时,如果你不想隐藏弹出文档,你可以使用pos-tip.el( http://www.emacswiki.org/emacs/pos-tip.el )


    编辑:

    我认为让摘要信息更加紧凑是一个很好的建议。为什么不在绝地武士的问题跟踪器中发布一个功能请求: https://github.com/davidhalter/jedi