You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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.
Open the file (on macOS it's at ~/Library/Application\ Support/Sublime\ Text\ 3/Packages/TypeScript/Default.sublime-keymap)
Go to line 130 and comment out the rule for "alt+,":
},// In case when auto match is enabled, only format if not within {}// {// "keys": [ "alt+,"],// "command": "typescript_signature_popup",// "context": [// { "key": "selector", "operator": "equal", "operand": "source.ts, source.tsx, source.js, source.jsx" },// { "key": "tooltip_supported", "operator": "equal", "operand": true}// ]// },{
Wrote this script to fix this automatically from my zshfiles because this issue is the worst. It overwrites the keymap file, stripping the alt+, shortcut
constfs=require('fs')tryOrExit(main)functionmain(){const[keymapFile]=process.argv.slice(2)constkeymapJson=readFileOrExit(keymapFile)// strip comments 🤷♂️constkeymapStripped=keymapJson.replace(/\/\/.*/mg,'')constkeymap=parseJsonOrExit(keymapStripped)constnextKeymap=getNextKeymap(keymap)constnextKeymapJson=JSON.stringify(nextKeymap,null,2)writeFileOrExit(keymapFile,nextKeymapJson+'\n')}functionreadFileOrExit(file){returntryOrExit(()=>fs.readFileSync(file,'utf8'))}functionwriteFileOrExit(file,contents){returntryOrExit(()=>fs.writeFileSync(file,contents,'utf8'))}functionparseJsonOrExit(json){returntryOrExit(()=>JSON.parse(json))}functiongetNextKeymap(keymap){returnkeymap.filter(definition=>(!Array.isArray(definition.keys)||definition.keys.length!==1||definition.keys[0]!=='alt+,'))}functiontryOrExit(fn){try{returnfn()}catch(_err){// rule of silenceprocess.exit(0)}}
Activity
benwiley4000 commentedon Feb 12, 2020
I have the same issue. @rouxfeur did you find a workaround? This prevents me from using this plugin with Sublime.
benwiley4000 commentedon Feb 12, 2020
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.
benwiley4000 commentedon Feb 12, 2020
I do have a workaround which is to comment out that shortcut from the keyboard shortcuts file in the package source directory.
~/Library/Application\ Support/Sublime\ Text\ 3/Packages/TypeScript/Default.sublime-keymap)"alt+,":SlovakianCanon commentedon May 14, 2020
Spent so much time trying to figure this out, it should really be addressed. The workaround by Ben Wiley (@benwiley4000) does work until then.
benwiley4000 commentedon May 14, 2020
SlovakianCanon yep, it came back for me today because my workaround gets overwritten every time the plugin updates.
bevacqua commentedon Mar 2, 2021
Wrote this script to fix this automatically from my zshfiles because this issue is the worst. It overwrites the keymap file, stripping the
alt+,shortcutUsage:
Example: bevacqua/dotfiles@585dfdd