|
729 | 729 | }, |
730 | 730 | { |
731 | 731 | "author_association": "CONTRIBUTOR", |
732 | | - "body": "> The best thing I can think of is that, Neovim provides API to customize how to switch IM.\n\nVim has such thing, they are `:h 'imactivatefunc'` and `:h 'imstatusfunc'`. But according to `:h vim_diff` in Nvim, those options were _intentionally_ removed (and I don't know why)", |
733 | | - "created_at": "2025-06-06T17:15:56Z", |
734 | | - "html_url": "https://github.com/neovim/neovim/issues/1708#issuecomment-2949921678", |
735 | | - "id": 2949921678, |
| 732 | + "body": "> > As a CJK user, imsearch and iminsert never actually work for me on Linux. I always use https://github.com/vim-scripts/fcitx.vim to control the state of my IM.\n> \n> It works only Windows environment.\n\n@justinmk @Shougo Today I have a bit free time so I tried this in local Vim (**without** GTK, xim) in my Kubuntu machine (which is of course Linux as well) and `'imdisable'`, `'iminsert'`, `'imsearch'` all work. Here is my minimal Vimscript config\n```vimscript\nif $QT_IM_MODULE == 'ibus'\n let s:eng_im = 'xkb:us::eng'\n let s:GetCurrentImLang = {-> trim(system('ibus engine')) }\n let s:SwitchIm = {im -> system($'ibus engine {im}')}\nelseif $QT_IM_MODULE == 'fcitx'\n let s:eng_im = 'keyboard-us'\n let s:GetCurrentImLang = {-> trim(system('fcitx5-remote -n'))}\n let s:SwitchIm = {im -> system($'fcitx5-remote -s {im}')}\nendif\n\nfunc! s:ImStatusFunc()\n return s:GetCurrentImLang() !=# s:eng_im\nendfunc\n\nfunction! s:ImActivateFunc(enable)\n let enable = a:enable\n if !enable\n call s:SwitchIm(s:eng_im)\n else\n call s:SwitchIm('bamboo') \" Replace 'bamboo' with your favorite language/keyboard name\n endif\nendfunction\n\nif $QT_IM_MODULE == 'ibus' || $QT_IM_MODULE == 'fcitx'\n set imactivatefunc=s:ImActivateFunc imstatusfunc=s:ImStatusFunc\n set iminsert=2\nendif\n```\nThe above config only test `'iminsert'` and `'imsearch'`. To test `'imdisable'`, just replace `set iminsert=2` with `set imdisable`.\n\nSo the key here is to set `'imactivatefunc'` and `'imstatusfunc'`. However, these options were removed from Nvim for a reason I am not aware", |
| 733 | + "created_at": "2025-06-16T10:41:18Z", |
| 734 | + "html_url": "https://github.com/neovim/neovim/issues/1708#issuecomment-2976048588", |
| 735 | + "id": 2976048588, |
736 | 736 | "issue_url": "https://api.github.com/repos/neovim/neovim/issues/1708", |
737 | | - "node_id": "IC_kwDOAPphoM6v1DuO", |
| 737 | + "node_id": "IC_kwDOAPphoM6xYuXM", |
| 738 | + "performed_via_github_app": null, |
| 739 | + "reactions": { |
| 740 | + "+1": 1, |
| 741 | + "-1": 0, |
| 742 | + "confused": 0, |
| 743 | + "eyes": 0, |
| 744 | + "heart": 0, |
| 745 | + "hooray": 0, |
| 746 | + "laugh": 0, |
| 747 | + "rocket": 0, |
| 748 | + "total_count": 1, |
| 749 | + "url": "https://api.github.com/repos/neovim/neovim/issues/comments/2976048588/reactions" |
| 750 | + }, |
| 751 | + "updated_at": "2025-06-16T15:51:01Z", |
| 752 | + "url": "https://api.github.com/repos/neovim/neovim/issues/comments/2976048588", |
| 753 | + "user": { |
| 754 | + "avatar_url": "https://avatars.githubusercontent.com/u/111893501?v=4", |
| 755 | + "events_url": "https://api.github.com/users/brianhuster/events{/privacy}", |
| 756 | + "followers_url": "https://api.github.com/users/brianhuster/followers", |
| 757 | + "following_url": "https://api.github.com/users/brianhuster/following{/other_user}", |
| 758 | + "gists_url": "https://api.github.com/users/brianhuster/gists{/gist_id}", |
| 759 | + "gravatar_id": "", |
| 760 | + "html_url": "https://github.com/brianhuster", |
| 761 | + "id": 111893501, |
| 762 | + "login": "brianhuster", |
| 763 | + "node_id": "U_kgDOBqtb_Q", |
| 764 | + "organizations_url": "https://api.github.com/users/brianhuster/orgs", |
| 765 | + "received_events_url": "https://api.github.com/users/brianhuster/received_events", |
| 766 | + "repos_url": "https://api.github.com/users/brianhuster/repos", |
| 767 | + "site_admin": false, |
| 768 | + "starred_url": "https://api.github.com/users/brianhuster/starred{/owner}{/repo}", |
| 769 | + "subscriptions_url": "https://api.github.com/users/brianhuster/subscriptions", |
| 770 | + "type": "User", |
| 771 | + "url": "https://api.github.com/users/brianhuster", |
| 772 | + "user_view_type": "public" |
| 773 | + } |
| 774 | + }, |
| 775 | + { |
| 776 | + "author_association": "MEMBER", |
| 777 | + "body": "Our view/assupmtion in 2014 was that input-method is an OS or GUI feature. not something that can/should be arbitrated by Nvim. \n\n> Neovim could support IM auto-switching on all platforms\n\nWe could consider supporting these `'im*'` features via a \"provider\" model. It looks like `'imactivatefunc'` and `'imstatusfunc'` fit that model, so I don't have a strong objection to restoring them. As long as it doesn't involve lots of platform-specific code or new build-time dependencies.", |
| 778 | + "created_at": "2025-06-16T11:53:30Z", |
| 779 | + "html_url": "https://github.com/neovim/neovim/issues/1708#issuecomment-2976271123", |
| 780 | + "id": 2976271123, |
| 781 | + "issue_url": "https://api.github.com/repos/neovim/neovim/issues/1708", |
| 782 | + "node_id": "IC_kwDOAPphoM6xZksT", |
| 783 | + "performed_via_github_app": null, |
| 784 | + "reactions": { |
| 785 | + "+1": 2, |
| 786 | + "-1": 0, |
| 787 | + "confused": 0, |
| 788 | + "eyes": 0, |
| 789 | + "heart": 0, |
| 790 | + "hooray": 0, |
| 791 | + "laugh": 0, |
| 792 | + "rocket": 0, |
| 793 | + "total_count": 2, |
| 794 | + "url": "https://api.github.com/repos/neovim/neovim/issues/comments/2976271123/reactions" |
| 795 | + }, |
| 796 | + "updated_at": "2025-06-16T11:53:30Z", |
| 797 | + "url": "https://api.github.com/repos/neovim/neovim/issues/comments/2976271123", |
| 798 | + "user": { |
| 799 | + "avatar_url": "https://avatars.githubusercontent.com/u/1359421?v=4", |
| 800 | + "events_url": "https://api.github.com/users/justinmk/events{/privacy}", |
| 801 | + "followers_url": "https://api.github.com/users/justinmk/followers", |
| 802 | + "following_url": "https://api.github.com/users/justinmk/following{/other_user}", |
| 803 | + "gists_url": "https://api.github.com/users/justinmk/gists{/gist_id}", |
| 804 | + "gravatar_id": "", |
| 805 | + "html_url": "https://github.com/justinmk", |
| 806 | + "id": 1359421, |
| 807 | + "login": "justinmk", |
| 808 | + "node_id": "MDQ6VXNlcjEzNTk0MjE=", |
| 809 | + "organizations_url": "https://api.github.com/users/justinmk/orgs", |
| 810 | + "received_events_url": "https://api.github.com/users/justinmk/received_events", |
| 811 | + "repos_url": "https://api.github.com/users/justinmk/repos", |
| 812 | + "site_admin": false, |
| 813 | + "starred_url": "https://api.github.com/users/justinmk/starred{/owner}{/repo}", |
| 814 | + "subscriptions_url": "https://api.github.com/users/justinmk/subscriptions", |
| 815 | + "type": "User", |
| 816 | + "url": "https://api.github.com/users/justinmk", |
| 817 | + "user_view_type": "public" |
| 818 | + } |
| 819 | + }, |
| 820 | + { |
| 821 | + "author_association": "MEMBER", |
| 822 | + "body": "> However, these options were removed from Nvim for a reason I am not aware\n\nThey weren't removed from Nvim, because they were never added in the first place.", |
| 823 | + "created_at": "2025-06-16T11:59:00Z", |
| 824 | + "html_url": "https://github.com/neovim/neovim/issues/1708#issuecomment-2976301996", |
| 825 | + "id": 2976301996, |
| 826 | + "issue_url": "https://api.github.com/repos/neovim/neovim/issues/1708", |
| 827 | + "node_id": "IC_kwDOAPphoM6xZsOs", |
| 828 | + "performed_via_github_app": null, |
| 829 | + "reactions": { |
| 830 | + "+1": 0, |
| 831 | + "-1": 0, |
| 832 | + "confused": 0, |
| 833 | + "eyes": 1, |
| 834 | + "heart": 0, |
| 835 | + "hooray": 0, |
| 836 | + "laugh": 0, |
| 837 | + "rocket": 0, |
| 838 | + "total_count": 1, |
| 839 | + "url": "https://api.github.com/repos/neovim/neovim/issues/comments/2976301996/reactions" |
| 840 | + }, |
| 841 | + "updated_at": "2025-06-16T11:59:00Z", |
| 842 | + "url": "https://api.github.com/repos/neovim/neovim/issues/comments/2976301996", |
| 843 | + "user": { |
| 844 | + "avatar_url": "https://avatars.githubusercontent.com/u/35768171?v=4", |
| 845 | + "events_url": "https://api.github.com/users/zeertzjq/events{/privacy}", |
| 846 | + "followers_url": "https://api.github.com/users/zeertzjq/followers", |
| 847 | + "following_url": "https://api.github.com/users/zeertzjq/following{/other_user}", |
| 848 | + "gists_url": "https://api.github.com/users/zeertzjq/gists{/gist_id}", |
| 849 | + "gravatar_id": "", |
| 850 | + "html_url": "https://github.com/zeertzjq", |
| 851 | + "id": 35768171, |
| 852 | + "login": "zeertzjq", |
| 853 | + "node_id": "MDQ6VXNlcjM1NzY4MTcx", |
| 854 | + "organizations_url": "https://api.github.com/users/zeertzjq/orgs", |
| 855 | + "received_events_url": "https://api.github.com/users/zeertzjq/received_events", |
| 856 | + "repos_url": "https://api.github.com/users/zeertzjq/repos", |
| 857 | + "site_admin": false, |
| 858 | + "starred_url": "https://api.github.com/users/zeertzjq/starred{/owner}{/repo}", |
| 859 | + "subscriptions_url": "https://api.github.com/users/zeertzjq/subscriptions", |
| 860 | + "type": "User", |
| 861 | + "url": "https://api.github.com/users/zeertzjq", |
| 862 | + "user_view_type": "public" |
| 863 | + } |
| 864 | + }, |
| 865 | + { |
| 866 | + "author_association": "CONTRIBUTOR", |
| 867 | + "body": "> Our view/assupmtion in 2014 was that input-method is an OS or GUI feature\n> they were never added in the first place.\n\nI get it now, (if I am not wrong), because Vim implements `'imactivatefunc'` and `'imstatusfunc'` in `gui_xim.c`, even though these 2 options don't require Vim compiled with `+xim` or any GUI features at all https://github.com/vim/vim/pull/2349", |
| 868 | + "created_at": "2025-06-16T16:13:55Z", |
| 869 | + "html_url": "https://github.com/neovim/neovim/issues/1708#issuecomment-2977241733", |
| 870 | + "id": 2977241733, |
| 871 | + "issue_url": "https://api.github.com/repos/neovim/neovim/issues/1708", |
| 872 | + "node_id": "IC_kwDOAPphoM6xdRqF", |
738 | 873 | "performed_via_github_app": null, |
739 | 874 | "reactions": { |
740 | 875 | "+1": 0, |
|
746 | 881 | "laugh": 0, |
747 | 882 | "rocket": 0, |
748 | 883 | "total_count": 0, |
749 | | - "url": "https://api.github.com/repos/neovim/neovim/issues/comments/2949921678/reactions" |
| 884 | + "url": "https://api.github.com/repos/neovim/neovim/issues/comments/2977241733/reactions" |
750 | 885 | }, |
751 | | - "updated_at": "2025-06-07T03:23:28Z", |
752 | | - "url": "https://api.github.com/repos/neovim/neovim/issues/comments/2949921678", |
| 886 | + "updated_at": "2025-06-16T16:26:42Z", |
| 887 | + "url": "https://api.github.com/repos/neovim/neovim/issues/comments/2977241733", |
753 | 888 | "user": { |
754 | 889 | "avatar_url": "https://avatars.githubusercontent.com/u/111893501?v=4", |
755 | 890 | "events_url": "https://api.github.com/users/brianhuster/events{/privacy}", |
|
773 | 908 | } |
774 | 909 | } |
775 | 910 | ], |
776 | | - "comments": 17, |
| 911 | + "comments": 20, |
777 | 912 | "comments_url": "https://api.github.com/repos/neovim/neovim/issues/1708/comments", |
778 | 913 | "created_at": "2014-12-19T22:51:00Z", |
779 | 914 | "events_url": "https://api.github.com/repos/neovim/neovim/issues/1708/events", |
|
794 | 929 | "locked": false, |
795 | 930 | "milestone": { |
796 | 931 | "closed_at": null, |
797 | | - "closed_issues": 722, |
| 932 | + "closed_issues": 723, |
798 | 933 | "created_at": "2014-05-10T20:43:04Z", |
799 | 934 | "creator": { |
800 | 935 | "avatar_url": "https://avatars.githubusercontent.com/u/1359421?v=4", |
|
824 | 959 | "labels_url": "https://api.github.com/repos/neovim/neovim/milestones/6/labels", |
825 | 960 | "node_id": "MDk6TWlsZXN0b25lNjU1MDM3", |
826 | 961 | "number": 6, |
827 | | - "open_issues": 633, |
| 962 | + "open_issues": 629, |
828 | 963 | "state": "open", |
829 | 964 | "title": "backlog", |
830 | | - "updated_at": "2025-06-09T14:14:52Z", |
| 965 | + "updated_at": "2025-06-14T23:59:40Z", |
831 | 966 | "url": "https://api.github.com/repos/neovim/neovim/milestones/6" |
832 | 967 | }, |
833 | 968 | "node_id": "MDU6SXNzdWU1MjUzNzY1Mw==", |
|
856 | 991 | "timeline_url": "https://api.github.com/repos/neovim/neovim/issues/1708/timeline", |
857 | 992 | "title": "remove 'imcmdline', 'imdisable', 'imsearch'", |
858 | 993 | "type": null, |
859 | | - "updated_at": "2025-06-07T03:23:29Z", |
| 994 | + "updated_at": "2025-06-16T16:26:42Z", |
860 | 995 | "url": "https://api.github.com/repos/neovim/neovim/issues/1708", |
861 | 996 | "user": { |
862 | 997 | "avatar_url": "https://avatars.githubusercontent.com/u/1359421?v=4", |
|
0 commit comments