
Security News
Software Engineering Daily Podcast: Feross on AI, Open Source, and Supply Chain Risk
Socket CEO Feross Aboukhadijeh joins Software Engineering Daily to discuss modern software supply chain attacks and rising AI-driven security risks.
input-paste
Advanced tools
在linux平台上,有一些桌面應用程式會遇到不能打中文的情況,像是\ Sublime Text <https://www.sublimetext.com/3>\ 、\ Spotify <https://www.spotify.com/tw/download/linux/>
在不去對應用程式做hack的情況下(像是\ 這個 <https://github.com/lyfeyaj/sublime-text-imfix>__)
就只能用最簡單的copy-paste方法了
這個非常簡單的小工具就是跳出小方塊讓你輸入並自動貼上
PyGObject (aka PyGI) <https://wiki.gnome.org/Projects/PyGObject>__以下示範是在debian/ubuntu上(其他版本將相依性安裝即可)
if run in python2:
.. code:: bash
$ sudo apt-get install python-gi python-xlib
$ pip install input-paste
if run in python3:
.. code:: bash
$ sudo apt-get install python3-gi python3-xlib
$ pip install input-paste
接下來,設定系統熱鍵能夠執行\ input-paste\ 即可
點擊應用程式輸入框並\ 維持游標位置,叫出\ input-paste\ 輸入文字後
按Enter/Ctrl+Enter就會將文字貼上游標位置,或按Esc/Alt+F4關閉\ input-paste
Sometimes, we can't type Chinese in application on Linux(or UNIX-like) system.
Without hacking it in low-level(like
this <https://github.com/lyfeyaj/sublime-text-imfix>__), we should
utilize clipboard to solve this problem.
This tool will bring convenience to you.
PyGObject (aka PyGI) <https://wiki.gnome.org/Projects/PyGObject>__Following is on debian/ubuntu system.
if run in python2:
.. code:: bash
$ sudo apt-get install python-gi python-xlib
$ pip install input-paste
if run in python3:
.. code:: bash
$ sudo apt-get install python3-gi python3-xlib
$ pip install input-paste
Next, set up hotkey in your system to execute input-paste.
Click input box in your application, and retain the cursor position.
Invoke input-paste with hotkey, and type some words in it.
Press Enter/Ctrl+Enter to copy text to your cursor position,
or press Esc/Alt+F4 to close input-paste.
FAQs
Linux上利用剪貼簿協助打中文的工具
We found that input-paste demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Security News
Socket CEO Feross Aboukhadijeh joins Software Engineering Daily to discuss modern software supply chain attacks and rising AI-driven security risks.

Security News
GitHub has revoked npm classic tokens for publishing; maintainers must migrate, but OpenJS warns OIDC trusted publishing still has risky gaps for critical projects.

Security News
Rust’s crates.io team is advancing an RFC to add a Security tab that surfaces RustSec vulnerability and unsoundness advisories directly on crate pages.