希望可以实现同一个 APP页面内点击不同区域切换不同输入法(例如在VScode中点击AI Agent 窗口切换中文输入法,点击 terminal 窗口切换英文输入)

Open
#121 1 comment 2 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Assessment

Difficulty
4/5
Estimated time
3-5 days
Newbie friendliness
40/100
Issue type
Feature
Clarity
Mostly clear
Activity status
Quiet
Tech stack
macos, swift
Domain
desktop

Research direction

Start with how InputSourcePro currently decides when to switch input sources (active-app observation in the Swift sources) and the comment thread plus the two screenshots in the issue for the intended behavior. The hard part is detecting which region inside one app was clicked, so investigate which macOS APIs (event taps, accessibility, window geometry) the project already uses. Done looks like clicking two different areas of one app provably switches to two different input sources, verified manually since there is no test named in the issue.

Written by the indexing model from the issue text.

Description

在有些场景,需要频繁在同一个软件内做中英文切换,非常需要这个功能
如使用IDE编程,代码页面用的是英文,AI Agent 窗口用的是中文。

以下是我设想的两种实现方案,
Image

Image
Dominant language
Swift
Stars
3.6k
Forks
144
Avg merge
4h 16m
Merged PRs (30d)
3

Getting set up

This project ships no dev container, Dockerfile or contributing guide, so setting up is up to you: start from its README, and see our first-contribution guide for the general steps.

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

More from runjuu/InputSourcePro

All issues in runjuu/InputSourcePro

Similar issues

More Swift issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.