-
Notifications
You must be signed in to change notification settings - Fork 234
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
Plugin blocks Alt+, #736
Comments
I have the same issue. @rouxfeur did you find a workaround? This prevents me from using this plugin with Sublime. |
This problem is not just for QWERTZ, it also exists for QWERTY Canadian Multilingual layout (English+French), which is used for any "Canadian French language" Mac keyboard. |
I do have a workaround which is to comment out that shortcut from the keyboard shortcuts file in the package source directory.
|
Spent so much time trying to figure this out, it should really be addressed. The workaround by @benwiley4000 does work until then. |
@SlovakianCanon yep, it came back for me today because my workaround gets overwritten every time the plugin updates. |
Wrote this script to fix this automatically from my zshfiles because this issue is the worst. It overwrites the keymap file, stripping the const fs = require('fs')
tryOrExit(main)
function main() {
const [keymapFile] = process.argv.slice(2)
const keymapJson = readFileOrExit(keymapFile)
// strip comments 🤷♂️
const keymapStripped = keymapJson.replace(/\/\/.*/mg, '')
const keymap = parseJsonOrExit(keymapStripped)
const nextKeymap = getNextKeymap(keymap)
const nextKeymapJson = JSON.stringify(nextKeymap, null, 2)
writeFileOrExit(keymapFile, nextKeymapJson + '\n')
}
function readFileOrExit(file) {
return tryOrExit(() => fs.readFileSync(file, 'utf8'))
}
function writeFileOrExit(file, contents) {
return tryOrExit(() => fs.writeFileSync(file, contents, 'utf8'))
}
function parseJsonOrExit(json) {
return tryOrExit(() => JSON.parse(json))
}
function getNextKeymap(keymap) {
return keymap.filter(definition => (
!Array.isArray(definition.keys) ||
definition.keys.length !== 1 ||
definition.keys[0] !== 'alt+,'
))
}
function tryOrExit(fn) {
try {
return fn()
} catch (_err) {
// rule of silence
process.exit(0)
}
} Usage:
Example: bevacqua/dotfiles@585dfdd |
When
Alt+,
is pressed,typescript_signature_popup
command is called, preventing me from typing<
symbol on QWERTZ keyboard.The text was updated successfully, but these errors were encountered: