@Wildcard sure; I'm doing my best to live up to the name :) Sorry to hear about the major surgery, but glad to hear they're on the road to recovery. I've been playing with the page break / no-page-break idea, and still need to get some signature lines put out there. Nothing major to report.
How would one use gsub() to remove a character (zero in this case) after another character (the dash symbol) in a specific column? The column has a year, month, day format as follows; 2006-02-01. The desired output would be 2006-2-1.
@Kusalananda when you migrated that question from meta to main, did you get any indication that post with an identical title existed on main? (just checking, if you didn't, it feels like a bug, or at least something that you should be alerted about)
@muru No, no indication. I deleted the Meta post and the migrated question when I discovered that the user had re-posted the question on the main site.
In hindsight, I should have looked at the user's questions on the main site before migrating.
@FaheemMitha I have so far not seen a Dvorak keyboard anywhere for sale. But then again I haven't looked too hard for one. I rearranged the keys on three keyboards (one laptop and two "ordinary" ones) and I've used stickers on two laptop keyboards to relabel them as Dvorak.
Rearranging the keys on ordinary keyboards is usually really simple. On laptops it's a bit fiddly and you run the risk of damaging the key caps. Stickers made for relabelling keyboards may wear out, but so far, none have actually come off.
I thought it's supposedly good to have commonly used keys in the middle. And I'm not sure if backspace and enter count to that. I mean, I usually hit enter only once per line, and there are many letters that appear more than once in an average line...
does Das Keyboard always come with that low (US-style?) enter key like the photos seem to indicate?
right, but how do I then bind a command using that prefix2 and a key that is uniquely different from using the default prefix and pressing that same key? do I have to create a custom key table for that instead of using prefix 2?
it seems like when I try to bind anything using prefix2 that it just does the command that is already linked to prefix for that key
@tehnyaz As far as I know, the secondary prefix is just another key combo that acts just like the primary prefix. What is it that you're trying to do and what have you tried so far? Maybe this would be better suited as a question on the main site?
Yes, as far as I know, the secondary prefix is just another key combo that acts like the prefix. It may be useful in situations where you have nested tmux sessions, for example when you log into a system form a tmux session and there start another one.
Having a distinct secondary prefix on the "inner" tmux would allow you to more easily manipulate that tmux session.
@Kusalananda you can get a WASD keyboard. (That's a brand, not a layout.) Or the CODE keyboard, which is a collaboration between WASD keyboards and Jeff Atwood. You can customize what the keys will look like—and there's a hardware DIP switch which will make the keyboard Dvorak instead of QWERTY.
@Kusalananda I like the WASD keyboards approach to media keys. They're actually very usable. AND they're standard keyboard keys, easily reachable for one-handed use, but they're mechanical keys rather than something else.
Kinda weird to pay top dollar for a mechanical keyboard, and have the media keys be some other type of switch that will last far fewer than the 50 million key presses the rest of the keyboard will stand up to....
I use a CODE keyboard with Cherry MX Green switches.
@JeffSchaller the keynote is how much time you spend using a keyboard. Making that smooth and enjoyable with professional equipment is very sensible. Assuming you're not completely struggling financially, of course, and that your computer work brings in the money (or most of it) in the family.
@Wildcard a hardware switch to change the keyboard layout is something I really don't get. Because that just has to depend on the OS having some particular keyboard layout set, others be damned.
one might get away with it if the switch only shuffles the letters around, and all you have is QWERTY-based keymaps
which reminds me of some horrid remote console setup where the keypresses were sent as scancodes at some point (the remote emulating a hardware keyboard), so the software had to convert back from characters to scancodes
which basically only worked with the local desktop set to a US keymap
@ilkkachu incidentally, WASD is working on firmware to allow arbitrarily programmable keyboard customization. But I don't know to what extent that would work with foreign layouts.
@Wildcard well, usually you have a known mapping from keys to scan codes, so the keymaps in the OS work based on that. The button that gives - and _ in the US keymap gives + and ? in the Nordic keymap, but the scan code is the same. But if the keyboard were to shuffle the scan codes around, the keymaps on the OS level would need to be modified to be aware of that.
Anyway, having the translation in the hardware isn't really necessary, since every OS already has that in software...
@ilkkachu I think the point is more if you deal with lots of different computers. In which case having it in the hardware is awesome, and the scan code to character mapping only needs to account for the lowest common denominator i.e. the de facto standard for the country.
@ilkkachu I just remembered, the WASD keyboards come in two models, one is US and the other is ISO. I have the US model.
@Kusalananda it's actually nice. For example, I have the switch flipped that makes the caps lock key into an extra Ctrl. I don't have to worry about doing that in software.