Hacker News new | past | comments | ask | show | jobs | submit login

> Now tmux feels like a regular desktop app and truly boosts the productivity in the terminal. What do you think?

I think it's really nice. Well done!

> Mod+V: split vertically

> Mod+B: split horizontally (“bisect”)

That's smart. I love it!

% and " tend to feel... just weird. I can see the visual cue, but it's always been weird to me nonetheless.




I’ve always done:

> Mod+| for vertical split

> Mod+- for horizontal split

I’ve been using it like that for years, but haven’t seen it in too many places like that. It just feels super logical since the symbols look like the split!


Makes so much sense, indeed!

Mod+- might be zoom out though, depending on your underlying terminal app / OS. (e.g. on Linux, I use Meta++ and Meta+- to zoom the whole screen in accessibility mode, and Ctrl with the same keys changes the terminal font size)

I may have to find a way to change one of those because I like your idea very much.

FWIW, I'm always looking for the "perfect" keyboard-only shortcut layout. At one time using AutoHotKey on Windows (long time ago), I juggled with 5 levels of mods and had encoded pretty much all of math, greek, ASCII art and whatnot I could ever use. It was awesome. AHK is the one program I truly, dearly miss on Linux. (at least on KDE, and Gnome afaik, there's just no substitute for the breadth of features and behaviors of AHK).


Could not agree more. I throw in underscore and backslash for good measure too:

  bind-key | split-window -h
  bind-key \ split-window -h
  bind-key - split-window -v
  bind-key _ split-window -v


This is really helpful. I hadn't thought about adding bindings that work without shift. I just tried this and had to escape the slash to get the second binding to work:

  bind-key \\ split-window -h


Actually, it depends on your tmux version. Looks like

  bind-key '\' split-window -h
is more portable between versions.


That’s it right there. I basically have the same thing. Worst comes to worst, Since they are visually so close, when I started, I never forgot what did what.


I've been using those for some time, before I met German keyboards with weird layouts. Now I try to stick to alphanumeric symbols only.


I was born in France, so grew up with one of the weirdest ISO layout: "AZERTY".[1]

The worst offense is not even A-Z but rather symbols — take the key "ù" for instance: it's a non-mod key that is used for 1 single word in the entire French language. Literally, ONE WORD in the dictionary. And you need to Shift that 'ù' key to get '%'. How stupid is that...

I won't even comment on the weird 'M' position, which shortens the bottom row (index hits no letter, it's a symbol...) Like WTF, seriously.

Also, top row requires Shift for numbers... (no modifier yields symbols...) What a strange, impractical decision. Every number requires pressing a modifier, but underscore or '&' do not... Sure, yeah, OK.

Should we talk about period '.' requiring a Shift, but not ';' No, no we shouldn't. It's not like a period is common in language...

I thus call it 'weirdest', because it's as far as it gets from ANSI, and it has to be the worst ISO I've ever tried altogether. The question is, why do it so differently? Why not change as little as necessary based on ANSI? Was it a misguided sense of cultural appropriation? Did they like torturing typists and programmers alike?

So one day, as I was learning programming, I decided to stop fighting my keyboard, to preserve my sanity (and limit RSI).

QWERTY US (ANSI) is simply the best for tech (IT, prog). Not necessarily inherently (although it's very good for language), but because of the chicken-and-the-egg: most software is designed by/for US companies and programmers, so symbols like e.g. []{}|/ are used in programming, bash, tools, because they are easy to use on a QWERTY keyboard. And I vastly prefer the 1-row wide Enter to the inverted-L shaped ISO style (less RSI-inducing on the right pinky).

For non-US programmers, there's life before, and after switching to ANSI-US. I'm not even kidding, it's a life-changer in simplicity, comfort (ergonomics) and generally intuition— e.g. there's a reason why ()[]{} are close by. And it lets one buy keyboards anywhere (you'll always find QWERTY, but good luck finding ISO-XX in country YY.

Thank you to anyone who read this. I hope you feel the pain. Now revel in the fact that you weren't born in France and did not have to suffer the computer illiteracy and impractical engineering design of an entire generation before you.

/rant

I don't know if French AZERTY is funny or appalling, I'll let you be the judge of that; I just need to vent 25 years of frustration every now and then, even 10+ years later.

____

[1]: https://upload.wikimedia.org/wikipedia/commons/b/b9/KB_Franc...


I wanted to chime in and revel in your company... Something similar (but never as bad as your painful description of AZERTY) happens with Spanish keyboards, and there are even varieties for different Latin American countries. As you mentioned, I finally found ever lasting peace when I switched to an ANSI-US keyboard, and never looked back. Thankfully my current employer defaults to these keyboards; it used to be a chore to provision them some years ago.

So, in short, I hear you brother!


Thank you, so much, for this. Flawed-ISO-keybros!

Different kinds of layouts for spanish language is asinine. But hey, this reminds me, Quebec and France also have different layouts. Why keep it simple, when you can complicate everyone's life?

A toast to ANSI and your smart employer!


That’s exactly what I’ve done too. In fact I’ve ran that for so long that I’d forgotten it is the default until I read this thread.


Honestly, for me the split keys are just muscle memory at this point, same as 'hjkl' in Vim. Same with my prefix- I used backticks for the longest time, and now I use Ctrl-Space, but I generally don't think about it anymore. (Along the same lines, I screw up and occasionally type "jj" or ":wq" in message boxes out of force of habit from Vim.)

It's weird- as I'm typing this comment, I tried issuing "Ctrl-Space %" a couple times just to test, and I get a very slight mental "misstep" because the comment box isn't splitting in half!


> I screw up and occasionally type "jj" or ":wq" in message boxes out of force of habit from Vim

Oh, I do this all the time as well! Adding `alias :q=exit` to my zshrc and other tools where I can custom commands just made it beneficial for me instead of a hassle.




Consider applying for YC's Spring batch! Applications are open till Feb 11.

Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: