I wonder if hardcoding the layouts in switch_lang.py is a flawed approach? To configure this manually for every user, you could just ask each user to type out the English alphabet with their keyboard layout set to the relevant foreign script.
Or take the current contents of switch_lang.py as a default, but allow an override and clearly sign-post how to access the override when the user rejects the suggestions of switch_lang.
I'm using a laptop from the UK with a British laptop keyboard, which I switch to Greek for writing equations.
(Ref #776)
The output of
thefuck --version
(something likeThe Fuck 3.1 using Python 3.5.0 and Bash 4.4.12(1)-release
):Your system (Debian 7, ArchLinux, Windows, etc.):
How to reproduce the bug:
The output of The Fuck with
THEFUCK_DEBUG=true
exported (typically executeexport THEFUCK_DEBUG=true
in your shell before The Fuck):Anything else you think is relevant:
I wonder if hardcoding the layouts in
switch_lang.py
is a flawed approach? To configure this manually for every user, you could just ask each user to type out the English alphabet with their keyboard layout set to the relevant foreign script.Or take the current contents of
switch_lang.py
as a default, but allow an override and clearly sign-post how to access the override when the user rejects the suggestions of switch_lang.I'm using a laptop from the UK with a British laptop keyboard, which I switch to Greek for writing equations.