News for hackers. Stuff that matters.
Re:What's the deal with Ctrl+Left and Ctrl+Right? by FLGMwt on Wednesday August 16, 2017 @10:07AM (#15027541)
This is one of the most infuriating things about Macs for me. Maybe Vim/Emacs aside, I've found word jumping and Home/End operations to be absolutely consistent on Windows, but just about every OSX app seems to have a different shortcut.

As the author points out, the exact cursor position in some apps is different on Windows, but he shortcut is always CTRL+{direction}

Re:What's the deal with Ctrl+Left and Ctrl+Right? by m12k on Wednesday August 16, 2017 @10:15AM (#15027608)
Really? On Mac I've found it very consistent that alt+left/right jumps forward/back one word, alt+up/down jumps to start/end of paragraph, cmd+left/right jumps to end of line, cmd+up/down goes to beginning or end of all text (like Home/End). This is the case for me in Sublime, RubyMine, Xcode, Firefox, Chrome and any other app I've used in recent years - which apps are you using that don't follow these conventions?
Re:What's the deal with Ctrl+Left and Ctrl+Right? by colanderman on Wednesday August 16, 2017 @10:27AM (#15027701)
In Chrome on OS X it differs whether I'm casting my screen or not, whether Ctrl+←/→ move me to the start/end of a line or document. (I can't figure out how to move to the end of a line while Chromecasting. It is beyond frustrating.)
Re:What's the deal with Ctrl+Left and Ctrl+Right? by tlb on Wednesday August 16, 2017 @11:59AM (#15028526)
^e for end-of-line, ^a for beginning-of-line. ^p for previous-line, ^n for next-line. All far more ergonomic than arrow keys.
Re:What's the deal with Ctrl+Left and Ctrl+Right? by seanp2k2 on Wednesday August 16, 2017 @03:38PM (#15030522)
http://www.bigsmoke.us/readline/shortcuts they're just GNU Readline shortcuts of copies of those :)
Re:What's the deal with Ctrl+Left and Ctrl+Right? by seanp2k2 on Wednesday August 16, 2017 @03:39PM (#15030529)
Esp when you remap caps lock to control as the Lord intended it to be.
Re:What's the deal with Ctrl+Left and Ctrl+Right? by afarrell on Wednesday August 16, 2017 @10:47AM (#15027857)
Re:What's the deal with Ctrl+Left and Ctrl+Right? by egwynn on Wednesday August 16, 2017 @10:57AM (#15027927)
Terminals are, generally, expected to behave like terminals, which brings along a host of legacy compatibility things about how keyboards used to work over the past 40 years. Not saying that’s an excuse, or that they shouldn’t try to, but balancing “sane modern defaults” vs “sane-ish defaults from the 70s that everyone’s used to now” is hard.

EDIT: To elaborate a little… Terminals pre-date arrow keys, which is partly why there are lots of default “movement” keybindings that don’t use them (ctrl-a, ctrl-e, ctrl-b, ctrl-f, ctrl-n, ctrl-p, etc.).

Re:What's the deal with Ctrl+Left and Ctrl+Right? by EricLemieux on Wednesday August 16, 2017 @10:28AM (#15027705)
iterm2, at least that's what it defaulted to for me, uses ctrl + direction instead of alt + direction.
Re:What's the deal with Ctrl+Left and Ctrl+Right? by whipoodle on Wednesday August 16, 2017 @10:58AM (#15027941)
Mmm, I'd give the points for consistency to the Mac here. I bet still, in 2017, there are text inputs in Windows apps that draw a little rectangular character when you type Ctrl + Backspace instead of doing the right thing.
Re:What's the deal with Ctrl+Left and Ctrl+Right? by nitrogen on Wednesday August 16, 2017 @11:15AM (#15028101)
In my experience apps frequently hard-code their keyboard behavior (Slack, Gimp), and websites hard-code shortcuts (Gmail, Atlassian products) based on detected OS, so even if you set up shortcut overrides like Ctrl-V to paste, some apps will glitch or simply fail in odd ways.
Re:What's the deal with Ctrl+Left and Ctrl+Right? by bhauer on Wednesday August 16, 2017 @11:15AM (#15028109)
The lack of consistent behavior for Home and End is one of the things that irked me when using Macs back in the late 1990s. Back then, first-party Apple keyboards included Home and End keys so it was fairly inexcusable.

Today, although the situation hasn't improved if you press Home or End, at least first-party Apple keyboards are essentially always laptop keyboards (even when sold for use on desktop computers). So you don't even have a Home or End key to press. I suppose that's an improvement.

Re:What's the deal with Ctrl+Left and Ctrl+Right? by mikejmoffitt on Wednesday August 16, 2017 @12:59PM (#15029079)
The Home/End usage on Mac OS seems completely worthless to me. I find Home/End useful for going to the start or end of a line respectively, so having it jump to the top or bottom of a document (and having the frameskippy scrolling slowly catch up) isn't helpful.
Re:What's the deal with Ctrl+Left and Ctrl+Right? by vvanders on Wednesday August 16, 2017 @10:51AM (#15027881)
Yes! This along with the lack of win + arrow drives me absolutely batty.
Re:What's the deal with Ctrl+Left and Ctrl+Right? by m12k on Wednesday August 16, 2017 @10:57AM (#15027933)
Yes, the win+arrow shortcut is one of the few window management things from Windows that I miss on Mac - so I use HyperDock to get that functionality (and the similar drag-and-snap-to-edge-of-screen window resizing). I have a feeling you can find free tools to do the same too if you search a bit as well
Re:What's the deal with Ctrl+Left and Ctrl+Right? by FLGMwt on Friday August 18, 2017 @04:14AM (#15044441)
This is my second hangup! A coworker of mine recommended https://www.spectacleapp.com/ which does a great job mimicking the Windows native docking commands.