Giter Club home page Giter Club logo

switchkey's Introduction

switchkey

SwitchKey

Automatically use the correct input source.

Ever hassled by wrong input source when switching application?
SwitchKey can automatically activate your choice for you.

Download & Install

Manually:

Download (macOS):
Latest
Uncompress, then drag & drop into your Applications folder.

Via Homebrew (thanks to @fanvinga):

brew install --cask switchkey

Usage

switchkey-ui

  • Save current input source choice for frontmost application:
    click "Add Current".

  • Enable/disable automatic switch for saved application:
    check/uncheck the checkbox on the right.

  • Remove saved choice:
    select the one to be deleted, then press delete key.

Not working? See below.

First Run

Upon first launch, SwitchKey will ask for accessibility permission.
SwitchKey will open accessibility page, and exit.
After you grant permission, re-launch SwitchKey again.
The same will happen if you reject the permission later.

switchkey-ui

Purchase

I wrote this because I tried some other tools.
They are either buggy or too cumbersome to configure.
I payed money and time for them.
So you don't have to pay for them anymore.

Bug Report & Feature Request

Welcome! Please click here.

switchkey's People

Contributors

fanvinga avatar itsuhane avatar stonelyu avatar trgoofi avatar tru2dagame avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

switchkey's Issues

如何设置“聚焦搜索”的默认输入法?

cmd+空格,调度出来的“聚焦搜索”无法通过“addcurrnet”进行设置默认的输入法。
因为我习惯在“聚焦搜索”中使用英文输入法进行输入关键字启动软件

无法修改输入法

  1. 无法修改已保存的输入法与应用的对应关系
    例如 Safari对应百度输入法, 想要修改为对应搜狗输入法, 不知道如何更改设置

  2. 无法删除以保存的输入法对应关系

最新版对pages无效

我记忆的是清歌五笔输入法,但始终没有实现自动切换的效果,有时候是abc、有时候是rime。

输入法图标显示为黑块

如截图显示,应用对应的输入法图标是一个黑块(保存时当前输入法为英文)。这个是正常的还是显示问题?

Screen Shot 2019-05-09 at 10 14 52 AM

无法开机自启

勾选了 开机自启,但是无法开机自启,手动启动软件后,那个勾选的没选中,用户群组登陆项有app,但是无法启动

Sportlight

Thank you very much have developed 'SwitchKey',
I have some question in use it,
how can I add 'Spotlight, Alfred, etc' like these apps?

Thanks.

advice

It's a great program, hopefully it supports 'toggle alfred' input Settings。

thanks!

请问开发者还会继续更新吗?

UI 设计上建议更新下,间距太大,浪费很多空间,如果能增加可以选择就更好了(类似 App Store 里那一款)
且开机不能自启动

crash when startup

System: Macos Monterey(12.0.1)
Chip: Apple M1

crash log:

-------------------------------------
Translated Report (Full Report Below)
-------------------------------------

Process:               SwitchKey [38256]
Path:                  /Applications/SwitchKey.app/Contents/MacOS/SwitchKey
Identifier:            itsuhane.tools.SwitchKey
Version:               1.1.3 (9)
Code Type:             ARM-64 (Native)
Parent Process:        launchd [1]
User ID:               501

Date/Time:             2021-12-06 14:07:37.9329 +0800
OS Version:            macOS 12.0.1 (21A559)
Report Version:        12
Anonymous UUID:        E1F07EB6-4214-19D5-7361-1F3B07B4463E

Sleep/Wake UUID:       7C606F26-E559-484D-A595-266243AFE2A1

Time Awake Since Boot: 380000 seconds
Time Since Wake:       50 seconds

System Integrity Protection: enabled

Crashed Thread:        0  Dispatch queue: com.apple.main-thread

Exception Type:        EXC_BREAKPOINT (SIGTRAP)
Exception Codes:       0x0000000000000001, 0x00000001cf5cca1c
Exception Note:        EXC_CORPSE_NOTIFY

Termination Reason:    Namespace SIGNAL, Code 5 Trace/BPT trap: 5
Terminating Process:   exc handler [38256]

Application Specific Information:
SwitchKey/AppDelegate.swift:175: Fatal error


Kernel Triage:
VM - pmap_enter failed with resource shortage
VM - pmap_enter failed with resource shortage
VM - pmap_enter failed with resource shortage


Thread 0 Crashed::  Dispatch queue: com.apple.main-thread
0   libswiftCore.dylib            	       0x1cf5cca1c _assertionFailure(_:_:file:line:flags:) + 628
1   libswiftCore.dylib            	       0x1cf5cca1c _assertionFailure(_:_:file:line:flags:) + 628
2   SwitchKey                     	       0x10409b054 0x104098000 + 12372
3   SwitchKey                     	       0x10409b3ac 0x104098000 + 13228
4   CoreFoundation                	       0x1c25ed160 __CFNOTIFICATIONCENTER_IS_CALLING_OUT_TO_AN_OBSERVER__ + 28
5   CoreFoundation                	       0x1c2690ae4 ___CFXRegistrationPost_block_invoke + 52
6   CoreFoundation                	       0x1c2690a50 _CFXRegistrationPost + 456
7   CoreFoundation                	       0x1c25bbe10 _CFXNotificationPost + 720
8   Foundation                    	       0x1c34755e0 -[NSNotificationCenter postNotificationName:object:userInfo:] + 96
9   AppKit                        	       0x1c51547fc -[NSApplication _postDidFinishNotification] + 340
10  AppKit                        	       0x1c5154514 -[NSApplication _sendFinishLaunchingNotification] + 236
11  AppKit                        	       0x1c5151f14 -[NSApplication(NSAppleEventHandling) _handleAEOpenEvent:] + 580
12  AppKit                        	       0x1c5151afc -[NSApplication(NSAppleEventHandling) _handleCoreEvent:withReplyEvent:] + 780
13  Foundation                    	       0x1c34a2834 -[NSAppleEventManager dispatchRawAppleEvent:withRawReply:handlerRefCon:] + 344
14  Foundation                    	       0x1c34a2670 _NSAppleEventManagerGenericHandler + 96
15  AE                            	       0x1c8d7c75c 0x1c8d70000 + 51036
16  AE                            	       0x1c8d7c0b4 0x1c8d70000 + 49332
17  AE                            	       0x1c8d74f84 aeProcessAppleEvent + 488
18  HIToolbox                     	       0x1cb17ddfc AEProcessAppleEvent + 68
19  AppKit                        	       0x1c514bed8 _DPSNextEvent + 1848
20  AppKit                        	       0x1c514a390 -[NSApplication(NSEvent) _nextEventMatchingEventMask:untilDate:inMode:dequeue:] + 1332
21  AppKit                        	       0x1c513c3b0 -[NSApplication run] + 596
22  AppKit                        	       0x1c510da84 NSApplicationMain + 1064
23  SwitchKey                     	       0x10409f25c 0x104098000 + 29276
24  dyld                          	       0x1042bd0f4 start + 520

Thread 1:
0   libsystem_pthread.dylib       	       0x1c25282bc start_wqthread + 0

Thread 2:
0   libsystem_pthread.dylib       	       0x1c25282bc start_wqthread + 0

Thread 3:
0   libsystem_pthread.dylib       	       0x1c25282bc start_wqthread + 0


Thread 0 crashed with ARM Thread State (64-bit):
    x0: 0xe000000000000000   x1: 0x000000012c8137f0   x2: 0x000000012c80e5d0   x3: 0x0000000000000004
    x4: 0x0000000052295294   x5: 0x0000000000000004   x6: 0x0000000000000000   x7: 0x000000000000003e
    x8: 0x0000000000000103   x9: 0x0000000000000103  x10: 0x00000000000e7fa0  x11: 0x0000000000179f41
   x12: 0x00000000000063a2  x13: 0x00000000d51c1f20  x14: 0x00000001041d5438  x15: 0x00000000d51c1f2f
   x16: 0x00000000d51c1ecc  x17: 0x00000000000063a2  x18: 0x0000000000000000  x19: 0x00000001040a63ec
   x20: 0xe000000000000000  x21: 0x0000000000000002  x22: 0x000000000000000b  x23: 0x000000000000001b
   x24: 0x00000000000000af  x25: 0x00000001040a63d0  x26: 0x0000000000000000  x27: 0x0000000000000000
   x28: 0x400000012cb942a0   fp: 0x000000016bd65fa0   lr: 0x00000001cf5cca1c
    sp: 0x000000016bd65ed0   pc: 0x00000001cf5cca1c cpsr: 0x60000000
   far: 0x0000000116fa4000  esr: 0xf2000001 (Breakpoint) brk 1

Binary Images:
       0x1cf592000 -        0x1cf9e4fff libswiftCore.dylib (*) <f1ea4e09-e952-3bf4-b198-075ca1378456> /usr/lib/swift/libswiftCore.dylib
       0x104098000 -        0x1040a7fff itsuhane.tools.SwitchKey (1.1.3) <76da24a9-0cea-377f-9316-1436f15b832e> /Applications/SwitchKey.app/Contents/MacOS/SwitchKey
       0x1c2574000 -        0x1c2ab7fff com.apple.CoreFoundation (6.9) <b2ff96d0-ae99-31ef-9014-fc9964b4f3e0> /System/Library/Frameworks/CoreFoundation.framework/Versions/A/CoreFoundation
       0x1c346b000 -        0x1c3858fff com.apple.Foundation (6.9) <de039f1b-ffe5-3644-a8cf-7ba52c32cd73> /System/Library/Frameworks/Foundation.framework/Versions/C/Foundation
       0x1c510a000 -        0x1c5fbbfff com.apple.AppKit (6.9) <518f4e68-c324-320f-9d7f-85c224eae972> /System/Library/Frameworks/AppKit.framework/Versions/C/AppKit
       0x1c8d70000 -        0x1c8de1fff com.apple.AE (924) <ace6e13c-98f1-383f-8df5-987ff5f75b71> /System/Library/Frameworks/CoreServices.framework/Versions/A/Frameworks/AE.framework/Versions/A/AE
       0x1cb13c000 -        0x1cb46bfff com.apple.HIToolbox (2.1.1) <98ea191e-b6f8-3036-b267-eeadb5f03c7d> /System/Library/Frameworks/Carbon.framework/Versions/A/Frameworks/HIToolbox.framework/Versions/A/HIToolbox
       0x1042b8000 -        0x104317fff dyld (*) <86a8ba48-8bb4-3b30-9cda-051f73c74f44> /usr/lib/dyld
       0x1c2526000 -        0x1c2532fff libsystem_pthread.dylib (*) <4786e19a-9312-38e6-80ef-9c1394548118> /usr/lib/system/libsystem_pthread.dylib

External Modification Summary:
  Calls made by other processes targeting this process:
    task_for_pid: 0
    thread_create: 0
    thread_set_state: 0
  Calls made by this process:
    task_for_pid: 0
    thread_create: 0
    thread_set_state: 0
  Calls made by all processes on this machine:
    task_for_pid: 72
    thread_create: 0
    thread_set_state: 4360

VM Region Summary:
ReadOnly portion of Libraries: Total=888.1M resident=0K(0%) swapped_out_or_unallocated=888.1M(100%)
Writable regions: Total=670.2M written=0K(0%) resident=0K(0%) swapped_out=0K(0%) unallocated=670.2M(100%)

                                VIRTUAL   REGION 
REGION TYPE                        SIZE    COUNT (non-coalesced) 
===========                     =======  ======= 
Activity Tracing                   256K        1 
CG image                            64K        4 
ColorSync                          480K       23 
CoreGraphics                        32K        2 
Dispatch continuations            64.0M        1 
Foundation                          16K        1 
Kernel Alloc Once                   32K        1 
MALLOC                           116.3M       38 
MALLOC guard page                  192K       11 
MALLOC_MEDIUM (reserved)         480.0M        4         reserved VM address space (unallocated)
STACK GUARD                       56.1M        4 
Stack                             9808K        4 
VM_ALLOCATE                        1.0G        5 
__AUTH                            2162K      218 
__AUTH_CONST                      13.6M      385 
__DATA                             9.8M      376 
__DATA_CONST                      13.8M      393 
__DATA_DIRTY                      1267K      151 
__FONT_DATA                          4K        1 
__LINKEDIT                       570.9M        7 
__OBJC_CONST                      2364K      185 
__OBJC_RO                         81.8M        1 
__OBJC_RW                         3088K        1 
__TEXT                           317.2M      408 
__UNICODE                          588K        1 
dyld private memory               1024K        1 
mapped file                      151.3M       29 
shared memory                      848K       12 
===========                     =======  ======= 
TOTAL                              2.9G     2268 
TOTAL, minus reserved VM space     2.4G     2268 



-----------
Full Report
-----------

{"app_name":"SwitchKey","timestamp":"2021-12-06 14:07:40.00 +0800","app_version":"1.1.3","slice_uuid":"76da24a9-0cea-377f-9316-1436f15b832e","build_version":"9","platform":1,"bundleID":"itsuhane.tools.SwitchKey","share_with_app_devs":0,"is_first_party":0,"bug_type":"309","os_version":"macOS 12.0.1 (21A559)","incident_id":"0D61CC1C-B861-4B01-AE21-59FE77D89077","name":"SwitchKey"}
{
  "uptime" : 380000,
  "procLaunch" : "2021-12-06 14:07:35.4863 +0800",
  "procRole" : "Default",
  "version" : 2,
  "userID" : 501,
  "deployVersion" : 210,
  "modelCode" : "Macmini9,1",
  "procStartAbsTime" : 9307491054004,
  "coalitionID" : 53814,
  "osVersion" : {
    "train" : "macOS 12.0.1",
    "build" : "21A559",
    "releaseType" : "User"
  },
  "captureTime" : "2021-12-06 14:07:37.9329 +0800",
  "incident" : "0D61CC1C-B861-4B01-AE21-59FE77D89077",
  "bug_type" : "309",
  "pid" : 38256,
  "procExitAbsTime" : 9307549682964,
  "translated" : false,
  "cpuType" : "ARM-64",
  "procName" : "SwitchKey",
  "procPath" : "\/Applications\/SwitchKey.app\/Contents\/MacOS\/SwitchKey",
  "bundleInfo" : {"CFBundleShortVersionString":"1.1.3","CFBundleVersion":"9","CFBundleIdentifier":"itsuhane.tools.SwitchKey"},
  "storeInfo" : {"deviceIdentifierForVendor":"619F7FFA-2521-551E-AA24-13316BE40861","thirdParty":true},
  "parentProc" : "launchd",
  "parentPid" : 1,
  "coalitionName" : "itsuhane.tools.SwitchKey",
  "crashReporterKey" : "E1F07EB6-4214-19D5-7361-1F3B07B4463E",
  "wakeTime" : 50,
  "sleepWakeUUID" : "7C606F26-E559-484D-A595-266243AFE2A1",
  "sip" : "enabled",
  "isCorpse" : 1,
  "exception" : {"codes":"0x0000000000000001, 0x00000001cf5cca1c","rawCodes":[1,7773932060],"type":"EXC_BREAKPOINT","signal":"SIGTRAP"},
  "termination" : {"flags":0,"code":5,"namespace":"SIGNAL","indicator":"Trace\/BPT trap: 5","byProc":"exc handler","byPid":38256},
  "ktriageinfo" : "VM - pmap_enter failed with resource shortage\nVM - pmap_enter failed with resource shortage\nVM - pmap_enter failed with resource shortage\n",
  "asi" : {"libswiftCore.dylib":["SwitchKey\/AppDelegate.swift:175: Fatal error"]},
  "extMods" : {"caller":{"thread_create":0,"thread_set_state":0,"task_for_pid":0},"system":{"thread_create":0,"thread_set_state":4360,"task_for_pid":72},"targeted":{"thread_create":0,"thread_set_state":0,"task_for_pid":0},"warnings":0},
  "faultingThread" : 0,
  "threads" : [{"triggered":true,"id":5965404,"threadState":{"x":[{"value":16140901064495857664},{"value":5041633264},{"value":5041612240},{"value":4},{"value":1378439828},{"value":4},{"value":0},{"value":62},{"value":259},{"value":259},{"value":950176},{"value":1548097},{"value":25506},{"value":3575389984},{"value":4363998264},{"value":3575389999},{"value":3575389900},{"value":25506},{"value":0},{"value":4362757100},{"value":16140901064495857664},{"value":2},{"value":11},{"value":27},{"value":175},{"value":4362757072},{"value":0},{"value":0},{"value":4611686023472693920}],"flavor":"ARM_THREAD_STATE64","lr":{"value":7773932060},"cpsr":{"value":1610612736},"fp":{"value":6104178592},"sp":{"value":6104178384},"esr":{"value":4060086273,"description":"(Breakpoint) brk 1"},"pc":{"value":7773932060,"matchesCrashFrame":1},"far":{"value":4680466432}},"queue":"com.apple.main-thread","frames":[{"imageOffset":240156,"symbol":"_assertionFailure(_:_:file:line:flags:)","symbolLocation":628,"imageIndex":0},{"imageOffset":240156,"symbol":"_assertionFailure(_:_:file:line:flags:)","symbolLocation":628,"imageIndex":0},{"imageOffset":12372,"imageIndex":1},{"imageOffset":13228,"imageIndex":1},{"imageOffset":495968,"symbol":"__CFNOTIFICATIONCENTER_IS_CALLING_OUT_TO_AN_OBSERVER__","symbolLocation":28,"imageIndex":2},{"imageOffset":1166052,"symbol":"___CFXRegistrationPost_block_invoke","symbolLocation":52,"imageIndex":2},{"imageOffset":1165904,"symbol":"_CFXRegistrationPost","symbolLocation":456,"imageIndex":2},{"imageOffset":294416,"symbol":"_CFXNotificationPost","symbolLocation":720,"imageIndex":2},{"imageOffset":42464,"symbol":"-[NSNotificationCenter postNotificationName:object:userInfo:]","symbolLocation":96,"imageIndex":3},{"imageOffset":305148,"symbol":"-[NSApplication _postDidFinishNotification]","symbolLocation":340,"imageIndex":4},{"imageOffset":304404,"symbol":"-[NSApplication _sendFinishLaunchingNotification]","symbolLocation":236,"imageIndex":4},{"imageOffset":294676,"symbol":"-[NSApplication(NSAppleEventHandling) _handleAEOpenEvent:]","symbolLocation":580,"imageIndex":4},{"imageOffset":293628,"symbol":"-[NSApplication(NSAppleEventHandling) _handleCoreEvent:withReplyEvent:]","symbolLocation":780,"imageIndex":4},{"imageOffset":227380,"symbol":"-[NSAppleEventManager dispatchRawAppleEvent:withRawReply:handlerRefCon:]","symbolLocation":344,"imageIndex":3},{"imageOffset":226928,"symbol":"_NSAppleEventManagerGenericHandler","symbolLocation":96,"imageIndex":3},{"imageOffset":51036,"imageIndex":5},{"imageOffset":49332,"imageIndex":5},{"imageOffset":20356,"symbol":"aeProcessAppleEvent","symbolLocation":488,"imageIndex":5},{"imageOffset":269820,"symbol":"AEProcessAppleEvent","symbolLocation":68,"imageIndex":6},{"imageOffset":270040,"symbol":"_DPSNextEvent","symbolLocation":1848,"imageIndex":4},{"imageOffset":263056,"symbol":"-[NSApplication(NSEvent) _nextEventMatchingEventMask:untilDate:inMode:dequeue:]","symbolLocation":1332,"imageIndex":4},{"imageOffset":205744,"symbol":"-[NSApplication run]","symbolLocation":596,"imageIndex":4},{"imageOffset":14980,"symbol":"NSApplicationMain","symbolLocation":1064,"imageIndex":4},{"imageOffset":29276,"imageIndex":1},{"imageOffset":20724,"symbol":"start","symbolLocation":520,"imageIndex":7}]},{"id":5965520,"frames":[{"imageOffset":8892,"symbol":"start_wqthread","symbolLocation":0,"imageIndex":8}]},{"id":5965521,"frames":[{"imageOffset":8892,"symbol":"start_wqthread","symbolLocation":0,"imageIndex":8}]},{"id":5965522,"frames":[{"imageOffset":8892,"symbol":"start_wqthread","symbolLocation":0,"imageIndex":8}]}],
  "usedImages" : [
  {
    "source" : "P",
    "arch" : "arm64e",
    "base" : 7773691904,
    "size" : 4534272,
    "uuid" : "f1ea4e09-e952-3bf4-b198-075ca1378456",
    "path" : "\/usr\/lib\/swift\/libswiftCore.dylib",
    "name" : "libswiftCore.dylib"
  },
  {
    "source" : "P",
    "arch" : "arm64",
    "base" : 4362698752,
    "CFBundleShortVersionString" : "1.1.3",
    "CFBundleIdentifier" : "itsuhane.tools.SwitchKey",
    "size" : 65536,
    "uuid" : "76da24a9-0cea-377f-9316-1436f15b832e",
    "path" : "\/Applications\/SwitchKey.app\/Contents\/MacOS\/SwitchKey",
    "name" : "SwitchKey",
    "CFBundleVersion" : "9"
  },
  {
    "source" : "P",
    "arch" : "arm64e",
    "base" : 7555465216,
    "CFBundleShortVersionString" : "6.9",
    "CFBundleIdentifier" : "com.apple.CoreFoundation",
    "size" : 5521408,
    "uuid" : "b2ff96d0-ae99-31ef-9014-fc9964b4f3e0",
    "path" : "\/System\/Library\/Frameworks\/CoreFoundation.framework\/Versions\/A\/CoreFoundation",
    "name" : "CoreFoundation",
    "CFBundleVersion" : "1855.105"
  },
  {
    "source" : "P",
    "arch" : "arm64e",
    "base" : 7571156992,
    "CFBundleShortVersionString" : "6.9",
    "CFBundleIdentifier" : "com.apple.Foundation",
    "size" : 4120576,
    "uuid" : "de039f1b-ffe5-3644-a8cf-7ba52c32cd73",
    "path" : "\/System\/Library\/Frameworks\/Foundation.framework\/Versions\/C\/Foundation",
    "name" : "Foundation",
    "CFBundleVersion" : "1855.105"
  },
  {
    "source" : "P",
    "arch" : "arm64e",
    "base" : 7601168384,
    "CFBundleShortVersionString" : "6.9",
    "CFBundleIdentifier" : "com.apple.AppKit",
    "size" : 15409152,
    "uuid" : "518f4e68-c324-320f-9d7f-85c224eae972",
    "path" : "\/System\/Library\/Frameworks\/AppKit.framework\/Versions\/C\/AppKit",
    "name" : "AppKit",
    "CFBundleVersion" : "2113"
  },
  {
    "source" : "P",
    "arch" : "arm64e",
    "base" : 7664500736,
    "CFBundleShortVersionString" : "924",
    "CFBundleIdentifier" : "com.apple.AE",
    "size" : 466944,
    "uuid" : "ace6e13c-98f1-383f-8df5-987ff5f75b71",
    "path" : "\/System\/Library\/Frameworks\/CoreServices.framework\/Versions\/A\/Frameworks\/AE.framework\/Versions\/A\/AE",
    "name" : "AE",
    "CFBundleVersion" : "924"
  },
  {
    "source" : "P",
    "arch" : "arm64e",
    "base" : 7702036480,
    "CFBundleShortVersionString" : "2.1.1",
    "CFBundleIdentifier" : "com.apple.HIToolbox",
    "size" : 3342336,
    "uuid" : "98ea191e-b6f8-3036-b267-eeadb5f03c7d",
    "path" : "\/System\/Library\/Frameworks\/Carbon.framework\/Versions\/A\/Frameworks\/HIToolbox.framework\/Versions\/A\/HIToolbox",
    "name" : "HIToolbox"
  },
  {
    "source" : "P",
    "arch" : "arm64e",
    "base" : 4364926976,
    "size" : 393216,
    "uuid" : "86a8ba48-8bb4-3b30-9cda-051f73c74f44",
    "path" : "\/usr\/lib\/dyld",
    "name" : "dyld"
  },
  {
    "source" : "P",
    "arch" : "arm64e",
    "base" : 7555145728,
    "size" : 53248,
    "uuid" : "4786e19a-9312-38e6-80ef-9c1394548118",
    "path" : "\/usr\/lib\/system\/libsystem_pthread.dylib",
    "name" : "libsystem_pthread.dylib"
  }
],
  "sharedCache" : {
  "base" : 7551975424,
  "size" : 3072180224,
  "uuid" : "a6162d66-93e3-3251-93cc-b11f7c8c830e"
},
  "vmSummary" : "ReadOnly portion of Libraries: Total=888.1M resident=0K(0%) swapped_out_or_unallocated=888.1M(100%)\nWritable regions: Total=670.2M written=0K(0%) resident=0K(0%) swapped_out=0K(0%) unallocated=670.2M(100%)\n\n                                VIRTUAL   REGION \nREGION TYPE                        SIZE    COUNT (non-coalesced) \n===========                     =======  ======= \nActivity Tracing                   256K        1 \nCG image                            64K        4 \nColorSync                          480K       23 \nCoreGraphics                        32K        2 \nDispatch continuations            64.0M        1 \nFoundation                          16K        1 \nKernel Alloc Once                   32K        1 \nMALLOC                           116.3M       38 \nMALLOC guard page                  192K       11 \nMALLOC_MEDIUM (reserved)         480.0M        4         reserved VM address space (unallocated)\nSTACK GUARD                       56.1M        4 \nStack                             9808K        4 \nVM_ALLOCATE                        1.0G        5 \n__AUTH                            2162K      218 \n__AUTH_CONST                      13.6M      385 \n__DATA                             9.8M      376 \n__DATA_CONST                      13.8M      393 \n__DATA_DIRTY                      1267K      151 \n__FONT_DATA                          4K        1 \n__LINKEDIT                       570.9M        7 \n__OBJC_CONST                      2364K      185 \n__OBJC_RO                         81.8M        1 \n__OBJC_RW                         3088K        1 \n__TEXT                           317.2M      408 \n__UNICODE                          588K        1 \ndyld private memory               1024K        1 \nmapped file                      151.3M       29 \nshared memory                      848K       12 \n===========                     =======  ======= \nTOTAL                              2.9G     2268 \nTOTAL, minus reserved VM space     2.4G     2268 \n",
  "legacyInfo" : {
  "threadTriggered" : {
    "queue" : "com.apple.main-thread"
  }
},
  "trialInfo" : {
  "rollouts" : [
    {
      "rolloutId" : "60da5e84ab0ca017dace9abf",
      "factorPackIds" : {

      },
      "deploymentId" : 240000008
    },
    {
      "rolloutId" : "607844aa04477260f58a8077",
      "factorPackIds" : {
        "SIRI_MORPHUN_ASSETS" : "6103050cbfe6dc472e1c982a"
      },
      "deploymentId" : 240000066
    },
    {
      "rolloutId" : "5ffde50ce2aacd000d47a95f",
      "factorPackIds" : {

      },
      "deploymentId" : 240000076
    },
    {
      "rolloutId" : "5fc94383418129005b4e9ae0",
      "factorPackIds" : {

      },
      "deploymentId" : 240000162
    },
    {
      "rolloutId" : "601d9415f79519000ccd4b69",
      "factorPackIds" : {
        "SIRI_TEXT_TO_SPEECH" : "6194416dea7ed64a7812a429"
      },
      "deploymentId" : 240000322
    },
    {
      "rolloutId" : "602ad4dac86151000cf27e46",
      "factorPackIds" : {
        "SIRI_DICTATION_ASSETS" : "61a69939b1c7c7620ce6e408"
      },
      "deploymentId" : 240000285
    }
  ],
  "experiments" : [

  ]
}
}

没有添加按钮

在我切换一次黑暗模式后会出现,但是退出软件再打开依然丢失,catalina 10.15.3

bugs opening mpv with terminal=no

mpv 开关 terminal=no 设置后,通过命令行启动后,switchkey无法正常识别并设置输入法状态,不断点击添加,会出现无数个截图所示的 mpv,不过每个都无法重用,再打开 mpv 依然是错误的输入法状态
image

增加输入法状态显示功能

你好开发者,

很感谢你的这款App,对我来说很有用!非常感谢!
不知道可不可以增加输入法状态显示功能呢?也是一大需求呀。

再次感谢。

为什么很久不更新了?

一句话答案:当前版本应该只会更新到这里,总结了问题以及一些新的场景的需求之后我打算做新的(主)版本。

太长不看版:
新的版本在🐦做🐦了🐦,简单说一下这些时间都在做啥。

基本功能方面,对于不少人遇到的特定app无法识别的问题,背后的原因是多种多样的,我会尝试解决一部分(比如 #5 #31),像 #4 里提到的需要一些比较针对性的方法,应该会选择个其它的手段来解决。
自动启动方面也会换用更稳定的方法(#15 #46),另外如启动后完全隐藏(#6)等功能也会加入。

新功能方面目前可以讲的还不多,一些可以从下面的预览里看一看猜一猜,还有一些我也在结合自己平时使用的习惯在调整。

目前还没有太多可以预览的,界面也许会长这样吧,但是完全不一样也是有可能的。
CleanShot 2021-11-10 at 14 02 03@2x
界面的更新以及伴随的功能的改进应该会解决例如UI bug(#39 #48)、默认值(#45 #47)、分组(#7)等等的问题。

但目前精力有限,还请大家再等待一段时间,新的版本依旧是免费并开源的。

Switch bug for firefox

When start SwitchKey before the firefox,the input for firefox can not switch back after using another app which has added to SwitchKey,firefox still using the input for another app.It works correct when start SwitchKey after firefox.
The firefox version is 84.0.2.
如果在使用火狐之前启动SwitchKey,使用火狐的时候,SwitchKey不能在从其它程序切换回火狐的时候正确切换输入法,输入法仍然是上一个程序的设置。如果在火狐启动之后再启动SwitchKey则没有问题,比较奇怪的bug。

软件开启后过一段时间会失效

总所周知,mac一般都不关机处理,但打开了软件用了几天后,总会突然发现软件的自动切换功能失效,要重启软件才恢复正常。

Not working

os: macos Catalina 10.15.5
切换应用程序输入法并不按照设置的自动切换。

launchpad bugs

最新版,以及 10.15
四指合拢或者点击切到 launchpad 界面后,如果此时还是 中文输入法状态,开始几次 “直接敲字母” 搜索 app 还是正常的,累积两次到多次后,会出现输入法卡住,点击launchpad 最上面 Search 框,之前敲的字母都还保存在输入法队列,一股脑上屏。

个人觉得如果能加入 launchpad 到 switchkey 切换触发就能解决这个bug -- 或者默认为英文就好,不过目前不知道怎么加 -- launchpad 在 switchkey 里没有窗口列表的设置入口

auto quit

After three days, I found a problem
Every morning to turn on the computer, found the SwitchKey automatically exit, this is what happened?
MacOS version: 10.12.6

从设定的软件切出时恢复原输入法的功能

现状:
未设定的软件X -> 已设定的软件A -> 未设定的软件Y:保留A指定的输入法

期望:
未设定的软件X -> 已设定的软件A -> 未设定的软件Y:恢复到软件X时的输入法状态

原因:
在写文档和写代码窗口来回切换时,总是被编辑器的英文输入法打断文档的输入

在Mac芯片下授权辅助权限后,再次打开switchkey会直接闪退

在Mac芯片下授权辅助权限后,再次打开switchkey会直接闪退

硬件概览:

型号名称: MacBook Pro
型号标识符: MacBookPro18,3
芯片: Apple M1 Pro
核总数: 8(6性能和2能效)
内存: 32 GB
系统固件版本: 7429.81.3
操作系统加载程序版本: 7429.81.3

系统软件概览:

系统版本: macOS 12.2.1 (21D62)
内核版本: Darwin 21.3.0
启动宗卷: Macintosh HD
启动模式: 正常

Doesn't work in JetBrains IDEA

It works in Wechat, Chrome, SublimeText, Iterm2, Pycharm, etc. But it doesn't work in IDEA.

SwitchKey 1.1.1
macOS 10.14.5
System Input, Baidu input

Spotlight Search

It is indeed an excellent and ideal application for me.

But, after I set the default input source for each application, I find out that although I set English as the default for Finder when I try to invoke Spotlight search in some other applications such as WeChat, its default input source will still be the current input source like Chinese but not English which is I set for the Finder.

Do I use it wrong? Or it is a bug? Is it practicable to fix it?

Anyway, thanks for your coding, your application has already helped me a lot!

同步功能

是否考虑添加 iCloud 同步配置功能?

UI bug

如图所示:
系统版本:macOS Big Sur 11.1 (20C69)
软件版本:v1.1.3
机器型号:M1 Mac mini

是否可以作个设定,默认状态,用来规避 bug

目前发现两个情况 switchkey 会出现无法识别和切换

  1. Launchpad
    image
    打开的全屏状态无法识别,也无法设定输入法状态
  2. 在terminal 里 command line 打开的 app 无法正确识别,比如 mpv,譬如 mpv http://some_stream &这样打开的 mpv 窗口 switchkey 可以识别设置,但切换窗口时输入法状态无法跟随切换

这样的情况,是否可以设置 【默认状态】 来规避上面两个 bug,只要在类似这两个情况下,可以不设置输入法状态,只用默认

自启动太早容易崩溃

Process: SwitchKey [6196]
Path: /Applications/SwitchKey.app/Contents/MacOS/SwitchKey
Identifier: itsuhane.tools.SwitchKey
Version: 1.1.2 (8)
Code Type: X86-64 (Native)
Parent Process: ??? [1]
Responsible: SwitchKey [6196]
User ID: 501

Date/Time: 2020-11-23 16:07:11.080 +0800
OS Version: macOS 11.0.1 (20B29)
Report Version: 12
Bridge OS Version: 5.0.1 (18P2561)
Anonymous UUID: 3C64E586-83DD-43BE-A324-FA4AAFD629BA

Time Awake Since Boot: 3000 seconds

System Integrity Protection: enabled

Crashed Thread: 0 Dispatch queue: com.apple.main-thread

Exception Type: EXC_BAD_INSTRUCTION (SIGILL)
Exception Codes: 0x0000000000000001, 0x0000000000000000
Exception Note: EXC_CORPSE_NOTIFY

Termination Signal: Illegal instruction: 4
Termination Reason: Namespace SIGNAL, Code 0x4
Terminating Process: exc handler [6196]

Application Specific Information:
Fatal error: file /Users/jinyu/Desktop/apple-projects/SwitchKey/SwitchKey/AppDelegate.swift, line 175

Thread 0 Crashed:: Dispatch queue: com.apple.main-thread
0 libswiftCore.dylib 0x00007fff2c6f5124 assertionFailure(:_:file:line🎏) + 532
1 itsuhane.tools.SwitchKey 0x0000000106b5b465 0x106b58000 + 13413
2 itsuhane.tools.SwitchKey 0x0000000106b5b81d 0x106b58000 + 14365
3 com.apple.CoreFoundation 0x00007fff203fefdc CFNOTIFICATIONCENTER_IS_CALLING_OUT_TO_AN_OBSERVER + 12
4 com.apple.CoreFoundation 0x00007fff2049a89b ___CFXRegistrationPost_block_invoke + 49
5 com.apple.CoreFoundation 0x00007fff2049a80f _CFXRegistrationPost + 454
6 com.apple.CoreFoundation 0x00007fff203cfbce _CFXNotificationPost + 723
7 com.apple.Foundation 0x00007fff2113babe -[NSNotificationCenter postNotificationName:object:userInfo:] + 59
8 com.apple.AppKit 0x00007fff22c2a0f1 -[NSApplication _postDidFinishNotification] + 305
9 com.apple.AppKit 0x00007fff22c29e3f -[NSApplication _sendFinishLaunchingNotification] + 208
10 com.apple.AppKit 0x00007fff22c2703a -[NSApplication(NSAppleEventHandling) _handleAEOpenEvent:] + 541
11 com.apple.AppKit 0x00007fff22c26c90 -[NSApplication(NSAppleEventHandling) _handleCoreEvent:withReplyEvent:] + 665
12 com.apple.Foundation 0x00007fff21167056 -[NSAppleEventManager dispatchRawAppleEvent:withRawReply:handlerRefCon:] + 308
13 com.apple.Foundation 0x00007fff21166ec6 _NSAppleEventManagerGenericHandler + 80
14 com.apple.AE 0x00007fff261d10b9 0x7fff261c4000 + 53433
15 com.apple.AE 0x00007fff261d07d4 0x7fff261c4000 + 51156
16 com.apple.AE 0x00007fff261c9440 aeProcessAppleEvent + 452
17 com.apple.HIToolbox 0x00007fff28685f12 AEProcessAppleEvent + 54
18 com.apple.AppKit 0x00007fff22c21412 _DPSNextEvent + 2048
19 com.apple.AppKit 0x00007fff22c1f74b -[NSApplication(NSEvent) _nextEventMatchingEventMask:untilDate:inMode:dequeue:] + 1366
20 com.apple.AppKit 0x00007fff22c11bda -[NSApplication run] + 586
21 com.apple.AppKit 0x00007fff22be5f31 NSApplicationMain + 816
22 itsuhane.tools.SwitchKey 0x0000000106b602d9 0x106b58000 + 33497
23 libdyld.dylib 0x00007fff2032c631 start + 1

Thread 1:
0 libsystem_pthread.dylib 0x00007fff2030d458 start_wqthread + 0

Thread 2:
0 libsystem_pthread.dylib 0x00007fff2030d458 start_wqthread + 0

Thread 3:
0 libsystem_pthread.dylib 0x00007fff2030d458 start_wqthread + 0

Thread 4:
0 libsystem_pthread.dylib 0x00007fff2030d458 start_wqthread + 0

Thread 5:
0 libsystem_pthread.dylib 0x00007fff2030d458 start_wqthread + 0

Thread 6:
0 libsystem_pthread.dylib 0x00007fff2030d458 start_wqthread + 0

Thread 0 crashed with X86 Thread State (64-bit):
rax: 0x00000000a5815850 rbx: 0x0000000106b695d0 rcx: 0x0000000000000050 rdx: 0x00000000a5a16051
rdi: 0xe000000000000000 rsi: 0x000060000299e800 rbp: 0x00007ffee90a6200 rsp: 0x00007ffee90a61b0
r8: 0x000000000000007f r9: 0x00000000000007fb r10: 0x0000000000002800 r11: 0x0000000000000080
r12: 0x0000000000000000 r13: 0x000000000000000b r14: 0x0000000000000000 r15: 0x0000000106b6961a
rip: 0x00007fff2c6f5124 rfl: 0x0000000000010286 cr2: 0x000000010fb3f000

Logical CPU: 4
Error Code: 0x00000000
Trap Number: 6

Thread 0 instruction stream:
41 0f b6 c7 48 89 03 49-c7 46 10 01 00 00 00 41 A...H..I.F.....A
bf 01 00 00 00 48 8b 7d-d0 e9 19 01 00 00 48 89 .....H.}......H.
4d c0 4c 89 65 c8 4c 89-e7 41 89 f4 e8 5b 8a 34 M.L.e.L..A...[.4
00 41 0f b6 cc 48 8d 7d-c0 48 89 de 48 8b 55 10 .A...H.}.H..H.U.
4d 89 f8 4d 89 e9 45 31-e4 41 56 ff 75 20 e8 29 M..M..E1.AV.u .)
18 00 00 48 83 c4 10 48-8b 7d c8 e8 cc 8a 34 00 ...H...H.}....4.
[0f]0b 44 89 f9 c1 e9 06-44 89 f8 83 e0 3f c1 e0 ..D.....D....?.. <==
08 41 81 ff 00 08 00 00-73 0d 09 c8 ba c1 81 00 .A......s.......
00 48 8b 7d d0 eb 38 83-e1 3f 09 c8 44 89 f9 c1 .H.}..8..?..D...
e9 0c c1 e0 08 41 81 ff-ff ff 00 00 48 8b 7d d0 .....A......H.}.
77 09 09 c8 ba e1 81 81-00 eb 14 83 e1 3f 09 c8 w............?..
41 c1 ef 12 c1 e0 08 44-09 f8 ba f1 81 81 81 8d A......D........

Thread 0 last branch register state not available.

10.15.2 don't have add button

hi:
I have two issue at my mbp (10.15.2):
1, when I click the menu icon ,obviously there is a blank but with no buttho(like add ), but it can be clicked and the function work.
![https://github.com/douqq/src/blob/master/pic/SwitchKey%20no%20button.png]
2, My most wanted feature is to set spotlight always use english input , but when I open spotlight search bar(cmd+space) ,then I click switchkey menu icon ,the spotlight close. so how to achieve this function

需要切换输入源是显示HUB

工具很好用,辛苦了。

我直接说我需要解决的问题,因为我用 tab来切换输入源,系统的tab切换输入源有时候没有反映,可能是系统bug,在我切换输入源的时候希望能显示一个类似于Mac切换输入源的 HUB

感谢。

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.