Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Audio feedback for context switches #2

Open
equalsraf opened this issue Mar 4, 2017 · 0 comments
Open

Audio feedback for context switches #2

equalsraf opened this issue Mar 4, 2017 · 0 comments
Labels

Comments

@equalsraf
Copy link
Owner

Somethigs are easy enough to do, like buffer switches with auto commands

function SayFilename()
        let fname = expand('%')
        if fname == ''
                call SPDSay('No file')
        else
                call SPDSay(fname)
        endif
endfunction

" Say file name on buf switch
au BufEnter * call SayFilename()

Tab switches are doable too, but I don't find them that useful.

Note: spd-say usually cancels whatever is being spoken at the moment. Too many events firing at once might turn into gibberish (unless we wait synchronously).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant