Code Monkey home page Code Monkey logo

inputswitcher's Introduction

* What is InputSwitcher?

InputSwitcher is an utility software to save the input source state of each window on Leopard.  It cannot work on Tiger or below.

* How to Install

You need SIMBL at first.  Please download it from the url and install it:

  - http://www.culater.net/software/SIMBL/SIMBL.php

And copy these files as well.

  - InputSwitcher.app -> /Applications
  - InputSwitcherClient.bundle -> ~/Library/Application Support/SIMBL/Plugins

Then you start InputSwitcher.app and restart other applications, it will be working.  You can see it saves the input source states as pushing cmd+space or cmd+option+space on each application and move the focus to the other applications.

* How to Uninstall

Remove the login item for InputSwitcher in [System Preferences] -> [Accounts] -> [Login Items].

And delete these files.

  - /Applications/InputSwitcher.app
  - ~/Library/Application Support/SIMBL/Plugins/InputSwitcherClient.bundle

Then stop InputSwitcher.app on ActitivyMonitor.  That's all.

* How It Works

On Leopard, it doesn't save the input source state of each window any more.  For example, if you changed the input source for Japanese on an application, and you moved to another application, the input source remains Japanese.  In another word, the input source state becomes a global state on Leopard.

InputSwitcherClient.bundle gets into each application process via SIMBL to notify their activate and deactivate events to InputSwitcher.app.

InputSwitcher.app remembers the input source states of all applications.  When it receives an activate event, it restores the previous input source state.  For an deactive event, it saves the input source state.

Therefore all applications can keep the input source state even on Leopard.

Due to the current implementation, there are several constraints.

It works only on Cocoa applications.  So applications listed below woundn't work.

  - Finder
  - Thunderbird
  - iTunes

But for such a kind of applications, InputSwitcher saves the global state and apply it to them.  So it should not be a problem ordinally.

Especially Thunderbird seems to have a problem.  Sometimes it locks the input source state after changing the input source state on activate.  Therefore InputSwitcher doesn't restore the input source state only when the focus moved to Thunderbird from other applications.  It's a workaround for Thunderbird.

*** Please send your bug report to Apple

The root cause of this problem is that Apple removed the feature from Leopard.  That's the problem.

InputSwitcher fairly works well, but in some cases it doesn't work.  I tried to make it always working better, but it could not be perfect.

Please send your bug report to Apple Bug Reporter to put the feature back.  The more Apple receives bug reports, the easier the developers in Apple can decide to do it.

https://bugreport.apple.com/

* The Author

Satoshi Nakagawa <psychs AT limechat DOT net>
http://limechat.net/psychs/
#limechat on irc.freenode.net

* License

The MIT License

Copyright (c) 2007 Satoshi Nakagawa

Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in
all copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
THE SOFTWARE.

inputswitcher's People

Contributors

psychs avatar

Stargazers

 avatar

Watchers

 avatar James Cloos avatar

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.