Skip to content

Don't auto-load default maps #1

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

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

cristoper
Copy link

When the plugin loads it was setting the default maps for every
buffer whether an audio file had been loaded with TranscibeAudio or not
so that typing, for example, in insert mode would insert the text "(transcribe-seek-forward)" literally.

Worse, because the default mappings map , loading the plugin
rendered the backspace key inoperative for any terminal that sends
backspace as ^H.

This changeset causes the default mappings to be set only the first time :TranscribeAudio is used per buffer. It is how I've fixed things for my setup for now, but there may be a more standard way of handling plugin default mappings.

When the plugin was loading, it was setting the default maps for every
buffer whether an audio file had been loaded with TranscibeAudio or not
so that typing, for example, <C-l> in insert mode would insert the text "<plug>(transcribe-seek-forward)" literally.

Worse, because the default mappings map <C-h>, loading the plugin
rendered the backspace key inoperative for any terminal that sends
backspace as ^H.

This changeset  causes the default mappings to be set only the first time :TranscribeAudio is used per buffer.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant