Join GitHub today
GitHub is home to over 40 million developers working together to host and review code, manage projects, and build software together.
Sign upSeparate virtual buffer pass through mode for each buffer #33
Comments
This comment has been minimized.
This comment has been minimized.
|
Comment 3 by jteh on 2008-03-27 06:08 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Reported by jteh on 2008-02-26 03:30
Currently, there is only one global virtual buffer pass through mode. This is fine if one is working with only one document. However, when working with multiple documents, it is often desirable to have different active modes for each document. For example, one might wish to fill in a form in one document while simply reading another, with the appropriate mode preserved for each document. Currently, one must constantly manually enable and disable pass through mode when switching documents.
Speaking the current mode whenever one switches to a document is undesirable. Ideally, the mode should only be spoken when switching documents causes it to change. Thus, a cache of the last mode needs to be kept and the mode will only be spoken if the cached value is different to the mode for the current buffer. In terms of implementation, there will probably be a function such as
virtualBufferHandler.reportVirtualBufferPassThroughModewhich is called on each gainFocus event. This will be responsible for maintaining and checking the cached mode and speaking it as appropriate.