helix-fcitx-focus
Keep fcitx5 in English outside insert mode and restore your input method when you return to it
Keep fcitx5 in English outside insert mode and restore your input method when you return to it
Steel plugin for Helix that keeps fcitx5 in English outside insert mode and restores the previous active input method when entering insert mode.
This is useful for Chinese/Japanese/Korean input workflows where normal-mode keys should stay ASCII, while insert mode should resume the input method you were using before leaving insert mode.
steel-event-system branch.Install the plugin with Forge:
forge pkg install --git https://github.com/mtul0729/helix-fcitx-focus
Then load the plugin from ~/.config/helix/init.scm:
(require "helix-fcitx-focus/cogs/fcitx-focus.scm")
This repository also exposes a flake package and Home Manager module for declarative installations:
{
inputs.helix-fcitx-focus.url = "github:mtul0729/helix-fcitx-focus";
outputs =
{ helix-fcitx-focus, ... }:
{
# In a Home Manager module:
home-manager.users.example =
{ pkgs, ... }:
{
imports = [
helix-fcitx-focus.homeManagerModules.default
];
programs.helix.plugins.helix-fcitx-focus.enable = true;
xdg.configFile."helix/init.scm".text = ''
(require "helix-fcitx-focus/cogs/fcitx-focus.scm")
'';
};
};
}
For local development from this repository:
nix develop
cargo steel-lib
mkdir -p ~/.local/share/steel/cogs/helix-fcitx-focus/cogs
cp cogs/fcitx-focus.scm ~/.local/share/steel/cogs/helix-fcitx-focus/cogs/
Licensed under either of Apache License, Version 2.0 or MIT license at your option.
README from mtul0729/helix-fcitx-focus · Apache License 2.0