GithubHelp home page GithubHelp logo

Comments (5)

tumashu avatar tumashu commented on August 15, 2024

没仔细研究,你可以试试下面的配置

(define-key pyim-mode-map (kbd "C-\\") #'eh-pyim-select-word)

(defun eh-pyim-select-word ()
  (interactive)
  (funcall-interactively #'pyim-select-word)
  (let ((word (pyim-outcome-get)))
    (funcall-interactively #'toggle-input-method)
    (insert word)))

from pyim.

zhenhua-wang avatar zhenhua-wang commented on August 15, 2024

这样可以返回预选的汉字,请问可不可以实现返回字母? 比如我输入nihao,切换回英文时也返回nihao这五个字母。

另外,请问在exwm中有类似insert的函数吗

from pyim.

tumashu avatar tumashu commented on August 15, 2024

如果你使用exwm, 这个功能就不容易弄了,你应该去研究exwm-xim.el

from pyim.

zhenhua-wang avatar zhenhua-wang commented on August 15, 2024

好的,谢谢回复

from pyim.

tumashu avatar tumashu commented on August 15, 2024

也可以换个思路,让 pyim 常开,然后在 pyim 内部动态切换中英文输入,这样处理的话,因为在一个输入法里面,所以就比在两个输入法里面好弄,不过也需要看使用场合。

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.