Coder Social home page Coder Social logo

无法开启tooltip about pyim HOT 6 CLOSED

tumashu avatar tumashu commented on August 18, 2024
无法开启tooltip

from pyim.

Comments (6)

tumashu avatar tumashu commented on August 18, 2024

你有没有安装 pos-tip包? chinese-pyim使用这个包来显示备选词。。。

from pyim.

tumashu avatar tumashu commented on August 18, 2024

不是有效词库那个不用管它。。。。。一般用一会就不出现了

from pyim.

qizhihere avatar qizhihere commented on August 18, 2024

@tumashu 已经安装pos-tip了
并且其他包是可以正常使用popup的(比如google翻译和有道翻译)

popup-youdao-dict

popup-google-dict

from pyim.

tumashu avatar tumashu commented on August 18, 2024

这个函数的返回值,用来最终确定是否使用tooltip,你可以逐步运行一下,看问题出在哪一个地方。

(defun pyim-use-tooltip-p ()
  "当这个函数返回值为 t 时,Chinese-pyim 使用 tooltip 显示选词框,
返回值为 nil 时,使用 minibuffer 显示选词框。"
  (and pyim-use-tooltip
       (not (or noninteractive
                emacs-basic-display
                (not (display-graphic-p))
                (not (fboundp 'x-show-tip))))))

from pyim.

qizhihere avatar qizhihere commented on August 18, 2024

运行了一下,问题出在这里(not (display-graphic-p)),因为我是在终端下运行的,所以这里就是t了。运行gui的emacs就不存在这个问题了。看了之前你们的讨论,类似自动补全的方式就挺好的,显示在下面确实看着不习惯。。。
complete

from pyim.

qizhihere avatar qizhihere commented on August 18, 2024

终端下的话无法显示popup,我先看看用company的补全如何。

from pyim.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.