Live data from Hacker News

Quick tip for developers who use OS X

news.ycombinator.com

401–406 of 406 posts

Re: Quick tip for developers who use OS X

#401
post #253

Earlier quoted context omitted.

Thanks for this. I switched my input mode to VI and was greatly missing using Ctrl-L to clear the screen when in input mode. I hadn't known about the inputrc before. Adding this line below your "\C-p" line fixed that for me: "\C-l": clear-screen

Command-K also does the trick

Command-K won't play nicely with tmux panes though.

Re: Quick tip for developers who use OS X

#402
post #155
post #118

After making the switch to OS X in the last couple years after living in Linux and Windows before that, I think it's objective to say that keyboard shortcuts in OS X are much worse in both ease of use and consistency across applications.

Generally speaking, OS X is amazingly bad at all things UI given how good it is.

Examples? If you don't get on with the OS X UI then there is little help left for you.

Re: Quick tip for developers who use OS X

#403
post #105

Earlier quoted context omitted.

The only problem it really solves is if you've got non-relative paths in your HTML/CSS. I've used this a couple of times in those situations.

Just because that's the only problem you use it to solve doesn't mean that's the only problem it solves.

Sorry, wasn't trying to belittle anything (I've actually written a Mac menu bar app that does this exact thing which a couple of designer friends use).

Re: Quick tip for developers who use OS X

#404
post #400

Earlier quoted context omitted.

I've been wanting to use 'jj' to enter normal mode on the command line for some time. This solution actually didn't work for me, but adding the following to my .zshrc did: bindkey -M viins 'jj' vi-cmd-mode

That is because zsh does not make use of readline. I ran into this issue myself recently, since I use bash on my personal machines and zsh on my work ones.

Super off-topic, but I bet you'd be far happier if you used only one.

Re: Quick tip for developers who use OS X

#405

Earlier quoted context omitted.

OK I didn't know Apple had made that a standard -- so I agree with the GP that it's dumb. If I can't easily type a shortcut with one hand, it shouldn't be a standard shortcut. I'm suggesting the standard paste should behave as expected, not adhere to some literal definition the user doesn't care about. If I copy a passage of text from one document and paste it into another, I generally want it to look like it belongs…

I think implementing "obvious intentional styling" is an AI problem. Suppose you copy a header, click in a normal paragraph, and paste. Keep styling information? Case 2: copy styled text from Keynote, and paste. Keep styling? Maybe, the logic in a word processor should be to keep character styling, but not paragraph styling, but I think there will be many edge cases (for example, the user might be using the word proc…

You can't program away edge cases, but the current standard behavior fails in the bog standard common case.
Post reply on HN