【问题标题】:How to make the auto-complete information more compact in emacs-jedi?如何让 emacs-jedi 中的自动补全信息更加紧凑?
【发布时间】:2013-04-22 19:02:30
【问题描述】:

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

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 的自动完成弹出菜单进行比较。

【问题讨论】:

    标签: python emacs jedi


    【解决方案1】:

    有一个 popup.el 的拉取请求(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)


    编辑:

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

    【讨论】:

    • 由于我认为这个请求应该很常见,我不确定这个函数是否已经存在于某个地方。
    猜你喜欢
    • 2013-01-20
    • 1970-01-01
    • 2013-09-06
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 2017-08-18
    • 1970-01-01
    相关资源
    最近更新 更多