News for hackers. Stuff that matters.
Re:Why keyboard shortcuts don't work on non-US layouts and h... by sleavey on Thursday April 08, 2021 @05:13PM (#26743816)
> For example, on my German layout, / is produced via Shift+7.

This is my #1 annoyance with German keyboards as someone who learned a UK layout and who needs to do lots of programming and terminal hacking (#2 is the swapping of Y and Z). I take it this layout was invented before Unix and its heavy use of forward slashes, but it does show how shortcuts are rather discriminatory. I know more than a few Germans who use UK or US keyboards because they dislike this unhappy feature.

Re:Why keyboard shortcuts don't work on non-US layouts and h... by lxgr on Thursday April 08, 2021 @05:20PM (#26743891)
> I take it this layout was invented before Unix and its heavy use of forward slashes

My guess would be that Unix chose many of its special characters and keyboard shortcuts precisely because they were easy to type on a US keyboard.

Re:Why keyboard shortcuts don't work on non-US layouts and h... by young_unixer on Thursday April 08, 2021 @05:17PM (#26743862)
I'm Chilean and I use the ANSI US layout because /, < and > are much easier to type than using ISO keyboards.

When I need to type Spanish characters like áéíóú, ñ, etc. I switch to latin american ISO layout using WIN + Spacebar and then switch back.

Re:Why keyboard shortcuts don't work on non-US layouts and h... by Svip on Thursday April 08, 2021 @05:21PM (#26743900)
Why not just use US Intl, and use ALT GR to produce á, é, í, ó, ú and ñ, along with æ, ø and å?

I have a strange ISO/ANSI US keyboard, with an ANSI left shift and an ISO enter key.

Re:Why keyboard shortcuts don't work on non-US layouts and h... by young_unixer on Thursday April 08, 2021 @05:24PM (#26743938)
I didn't know about the US intl layout when I decided to make the switch, and I don't know if it's worth to learn it now.
Re:Why keyboard shortcuts don't work on non-US layouts and h... by Svip on Thursday April 08, 2021 @05:27PM (#26743959)
I used to switch between US and DK layouts, it's just so much easier to just have one layout. In my opinion, learning US Intl is worth it. Besides, it's pretty predictable for Spanish characters: á = altgr+a, é = altgr+e and so on.
Re:Why keyboard shortcuts don't work on non-US layouts and h... by type0 on Friday April 09, 2021 @04:59AM (#26748244)
Yeah it's great for Spanish. But I found that knowing (and using) native layout is more valuable to me because when I need to type on someone else's keyboard I'm not lost and can still touch type. If you never need to do this US international is indeed superior layout.

Trying to remember more than two layouts becomes confusing very fast. AZERTY and QWERZ are the two worst ones, fortunately I never need to use those.

Re:Why keyboard shortcuts don't work on non-US layouts and h... by Symbiote on Friday April 09, 2021 @03:40AM (#26747706)
The British/Irish ISO layouts are reasonable. They are very close to the US layout, but gain the additional key.
Re:Why keyboard shortcuts don't work on non-US layouts and h... by numpad0 on Friday April 09, 2021 @06:29AM (#26748752)
I don’t think UK/ISO and US are close? Especially backquote between LShift and Z feels awkward if you’re used to ANSI.
Re:Why keyboard shortcuts don't work on non-US layouts and h... by Symbiote on Sunday April 11, 2021 @12:01PM (#26771264)
These keys are in different positions: "@#~\|

These keys are present on the UK keyboard, but not the US: £¬

Compared to every other common ISO keyboard layout, ISO UK and ANSI are very similar. For non-programmers, ", @ and (nowadays) # are the ones that matter. For a programmer used to an ISO keyboard, the UK layout may well be a better choice than the US ANSI one. (US ISO would be a good choice, but the extra key seems to duplicate symbols already present on the layout).

Re:Why keyboard shortcuts don't work on non-US layouts and h... by mqus on Friday April 09, 2021 @06:20AM (#26748698)
In intellij this was a bit frustrating to me, you can do ctrl-shift-`/` to block-comment (in german keyboard: ctrl+shift+shift+7). How do I double-shift?

I know you can configure that in IJ but I'm too lazy to do that, especially if there are many keys to remap.

So now I have a keyboard with UK Layout.

Re:Why keyboard shortcuts don't work on non-US layouts and h... by scns on Friday April 09, 2021 @02:26AM (#26747287)
Check out the neo layout, optimized for programming, writing german and english.
Re:Why keyboard shortcuts don't work on non-US layouts and h... by sleavey on Friday April 09, 2021 @04:30AM (#26748040)
I solved it by buying a UK layout keyboard for home. At work I confuse the hell out of people by using a German keyboard but UK layout.
Re:Why keyboard shortcuts don't work on non-US layouts and h... by sdlion on Thursday April 08, 2021 @05:22PM (#26743913)
Same problem with latin american keyboards found just a few kilometers south the US. If I remember correctly, the default modifier key in VIM is next to imposible to press on a l-a keyboard. It was ` ?
Re:Why keyboard shortcuts don't work on non-US layouts and h... by toxik on Thursday April 08, 2021 @05:29PM (#26743983)
You mean the default prefix key. You really really don’t need to use prefix keys, like at all, in normal Vim use.